3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php phpversion() <= "7.0.0" or die(); $a='apple'; $b='a'; $c='b'; $d='c'; echo "$$$$d\n"; // $$$c $obj = new StdClass; $obj->apple = 'sauce'; echo $obj->$$$$d; // sauce
based on uWW2q
Output for 7.0.1 - 7.2.0
Output for 5.3.21 - 7.0.0
$$$c sauce