3v4l.org

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