3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function belette($who) { echo "Belette $who!\n"; } class A { } class B { public function __construct($value) { } } $i = 0; new A($i++); new B($i++); var_dump($i);
based on oDea6
Output for 7.1.0 - 7.2.0
int(2)
Output for 5.3.21 - 7.0.20
int(1)