3v4l.org

run code in 300+ PHP versions simultaneously
<?php a: print_r('bar'); try { throw new Exception('foo'); } catch(Exception $e) { goto a; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) 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
1 jumps found. (Code = 42) Position 1 = 0
Branch analysis from position: 0
filename:       /in/DWb6q
function name:  (null)
number of ops:  11
compiled vars:  !0 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'print_r'
          1        SEND_VAL                                                 'bar'
          2        DO_ICALL                                                 
    6     3        NEW                                              $2      'Exception'
          4        SEND_VAL_EX                                              'foo'
          5        DO_FCALL                                      0          
          6      > THROW                                         0          $2
          7*       JMP                                                      ->10
    7     8  E > > CATCH                                       last         'Exception'
    8     9    > > JMP                                                      ->0
    9    10*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.19 ms | 1394 KiB | 15 Q