3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array = array( 'string' => '!@#$%^&*()_+~`1234567890-=\'"\\/?', 'array' => array( 'test' ), 'int' => 1, 'double' => 1.25, 'boolean' => true ); $first_level = $array; $current_level =& $array; for($i = 10;$i--;) { $current_level['depth_test'] = $first_level; $current_level =& $current_level['depth_test']; } $d = 'return "test";'; $h = eval($d); var_dump($h);
based on Huhr6
Output for 4.3.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
string(4) "test"
Output for hhvm-3.10.0

Process exited with code 153.