3v4l.org

run code in 300+ PHP versions simultaneously
<?php function buildHash($test = 1) { if ($test > 10) { echo "made it"; } else { echo $test; } try { throw new Exception('error'); } catch (Exception $e) { buildHash(++$test); } } buildHash();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Og51G
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   INIT_FCALL                                               'buildhash'
          1        DO_FCALL                                      0          
          2      > RETURN                                                   1

Function buildhash:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 5
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
1 jumps found. (Code = 108) Position 1 = -2
Branch analysis from position: 5
1 jumps found. (Code = 108) Position 1 = -2
Found catch point at position: 11
Branch analysis from position: 11
2 jumps found. (Code = 107) Position 1 = 12, Position 2 = -2
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Og51G
function name:  buildHash
number of ops:  17
compiled vars:  !0 = $test, !1 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV_INIT                                        !0      1
    4     1        IS_SMALLER                                               10, !0
          2      > JMPZ                                                     ~2, ->5
    5     3    >   ECHO                                                     'made+it'
          4      > JMP                                                      ->6
    7     5    >   ECHO                                                     !0
   11     6    >   NEW                                              $3      'Exception'
          7        SEND_VAL_EX                                              'error'
          8        DO_FCALL                                      0          
          9      > THROW                                         0          $3
         10*       JMP                                                      ->16
   12    11  E > > CATCH                                       last         'Exception'
   13    12    >   INIT_FCALL_BY_NAME                                       'buildHash'
         13        PRE_INC                                          ~5      !0
         14        SEND_VAL_EX                                              ~5
         15        DO_FCALL                                      0          
   15    16      > RETURN                                                   null

End of function buildhash

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.54 ms | 1389 KiB | 14 Q