3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = 0; ++$a; // 1 class Foo { function __construct() {} } new Foo(++$a); // 2 function bar() {} bar(++$a); // 3 class WTF { } new WTF(++$a); // 4 var_dump($a);
based on JcqsI
Output for 7.1.0 - 7.2.0
int(4)
Output for 5.3.18 - 7.0.20
int(3)