3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Goofy { } class Woofy { public function __construct() { } } $a = 10; $b = 10; $goofy = new Goofy($a = 4); $woofy = new Woofy($b = 4); echo $a; echo PHP_EOL; echo $b;
based on mOgMa
Output for 7.1.0 - 7.2.0
4 4
Output for 5.3.18 - 7.0.20
10 4