3v4l.org

run code in 300+ PHP versions simultaneously
<?php set_time_limit(1); function bar() { try { echo "1\n"; } finally { try { throw new Exception(""); } catch (Exception $ab) { echo "2\n"; } finally { echo "3\n"; } echo "4\n"; } echo "5\n"; } bar();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7OFbQ
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   INIT_FCALL                                               'set_time_limit'
          1        SEND_VAL                                                 1
          2        DO_ICALL                                                 
   18     3        INIT_FCALL                                               'bar'
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

Function bar:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 162) Position 1 = 3, Position 2 = 2
Branch analysis from position: 3
1 jumps found. (Code = 108) Position 1 = -2
Branch analysis from position: 2
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 8
Branch analysis from position: 8
2 jumps found. (Code = 107) Position 1 = 9, Position 2 = -2
Branch analysis from position: 9
2 jumps found. (Code = 162) Position 1 = 12, Position 2 = 11
Branch analysis from position: 12
1 jumps found. (Code = 163) Position 1 = -2
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
1 jumps found. (Code = 163) Position 1 = -2
filename:       /in/7OFbQ
function name:  bar
number of ops:  18
compiled vars:  !0 = $ab
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ECHO                                                     '1%0A'
    6     1      > FAST_CALL                                                ->3
          2    > > JMP                                                      ->16
    8     3    >   NEW                                              $3      'Exception'
          4        SEND_VAL_EX                                              ''
          5        DO_FCALL                                      0          
          6      > THROW                                         0          $3
          7*       JMP                                                      ->10
    9     8  E > > CATCH                                       last         'Exception'
   10     9    >   ECHO                                                     '2%0A'
   11    10      > FAST_CALL                                                ->12
         11    > > JMP                                                      ->14
   12    12    >   ECHO                                                     '3%0A'
         13      > FAST_RET                                                 
   14    14    >   ECHO                                                     '4%0A'
         15      > FAST_RET                                                 
   16    16    >   ECHO                                                     '5%0A'
   17    17      > RETURN                                                   null

End of function bar

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.8 ms | 1399 KiB | 16 Q