3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $in=array(1=>'a', 2=>'b', 3=>array('aa', 'bb')); $in[3]['cc']=&$in[3]; var_export($in);
Output for 5.4.7 - 5.6.28, 7.0.0 - 7.1.0
Warning: var_export does not handle circular references in /in/gmD6r on line 5 array ( 1 => 'a', 2 => 'b', 3 => array ( 0 => 'aa', 1 => 'bb', 'cc' => NULL, ), )
Output for 5.2.14 - 5.2.17, 5.3.3 - 5.4.6, hhvm-3.10.0 - 3.12.0
Fatal error: Nesting level too deep - recursive dependency? in /in/gmD6r on line 5
Process exited with code 255.
Output for 4.3.2 - 5.2.13, 5.3.0 - 5.3.2
array ( 1 => 'a', 2 => 'b', 3 => array ( 0 => 'aa', 1 => 'bb', 'cc' => array ( 0 => 'aa', 1 => 'bb', 'cc' => array ( 0 => 'aa', 1 => 'bb', 'cc' => array ( Fatal error: Nesting level too deep - recursive dependency? in /in/gmD6r on line 5
Process exited with code 255.
Output for 4.3.0 - 4.3.1
array ( 1 => 'a', 2 => 'b', 3 => array ( 0 => 'aa', 1 => 'bb', 'cc' => array ( 0 => 'aa', 1 => 'bb', 'cc' => array ( 0 => 'aa', 1 => 'bb', 'cc' => array ( Fatal error: Nesting level too deep - recursive dependency? in /in/gmD6r on line 5