Le mercredi 19 février 2020, 15:59:24 CET Christian Schneider a écrit : > Am 19.02.2020 um 15:52 schrieb Côme Chilliet > <come.chill...@fusiondirectory.org>: > > Is there any reason the engine is not running the same code or even > > compiling to the same opcodes $a++ and $a+=1? > > If it should never differ, why is it not the same operation? > > $a++ is magic, see example #1 at > https://www.php.net/manual/en/language.operators.increment.php > > And no, this should not be changed as it would be a major BC.
Right, $a+=1 is the same as ++$a, not $a++, my bad, I forgot about this. Is ++$a behaving differently than $a++ for NULL/FALSE/TRUE? -- Côme Chilliet FusionDirectory - https://www.fusiondirectory.org -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php