3v4l.org

run code in 300+ PHP versions simultaneously
<?php global $i; $x=$y=''; set_error_handler(function() { echo 'Depth:' . $i . PHP_EOL; die; }); for($i=0;true;++$i) { $x .= '['; $y .= ']'; eval('$a = ' . $x . $y . ';'); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 9
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 9
Branch analysis from position: 17
Branch analysis from position: 9
filename:       /in/AAem4
function name:  (null)
number of ops:  18
compiled vars:  !0 = $i, !1 = $x, !2 = $y
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   BIND_GLOBAL                                              !0, 'i'
    3     1        ASSIGN                                           ~3      !2, ''
          2        ASSIGN                                                   !1, ~3
          3        INIT_FCALL                                               'set_error_handler'
          4        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FAAem4%3A3%240'
          5        SEND_VAL                                                 ~5
          6        DO_ICALL                                                 
    4     7        ASSIGN                                                   !0, 0
          8      > JMP                                                      ->16
    5     9    >   ASSIGN_OP                                     8          !1, '%5B'
         10        ASSIGN_OP                                     8          !2, '%5D'
    6    11        CONCAT                                           ~10     '%24a+%3D+', !1
         12        CONCAT                                           ~11     ~10, !2
         13        CONCAT                                           ~12     ~11, '%3B'
         14        INCLUDE_OR_EVAL                                          ~12, EVAL
    4    15        PRE_INC                                                  !0
         16    > > JMPNZ                                                    <true>, ->9
    7    17    > > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FAAem4%3A3%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 79) Position 1 = -2
filename:       /in/AAem4
function name:  {closure}
number of ops:  5
compiled vars:  !0 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   CONCAT                                           ~1      'Depth%3A', !0
          1        CONCAT                                           ~2      ~1, '%0A'
          2        ECHO                                                     ~2
          3      > EXIT                                                     
          4*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FAAem4%3A3%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.22 ms | 1396 KiB | 15 Q