3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $recursive_array = array(); $recursive_array[] = &$recursive_array; $recursive_array2 = array(); $recursive_array2[] = &$recursive_array2; if ($recursive_array === $recursive_array2) { //Fatal error: Nesting level too deep - recursive dependency? echo 'true'; } echo 'false';
based on OBRmJ
Output for 4.3.2 - 5.6.28, 7.0.0 - 7.1.0
Fatal error: Nesting level too deep - recursive dependency? in /in/O03Hl on line 7
Process exited with code 255.
Output for hhvm-3.12.0
Assertion failure: /build/hhvm/src/hhvm-HHVM-3.12.0/hphp/runtime/base/runtime-error.cpp:48: void HPHP::raise_error(const string&): assertion `0' failed.
Process exited with code 134.
Output for hhvm-3.10.0
Fatal error: infinite recursion detected in /in/O03Hl on line 7
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Nesting level too deep - recursive dependency? in /in/O03Hl on line 7