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 XqiJV
Output for 7.0.0 - 7.2.0
Output for 5.3.21 - 5.6.28
$$$c sauce