3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class A { } $b = 1; new A($b = 2); var_dump($b);
Output for hhvm-3.18.5 - 3.22.0, 7.1.0 - 7.3.1
int(2)
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.0.27
int(1)