3v4l.org

run code in 300+ PHP versions simultaneously
<?php set_error_handler(function() { throw new \ErrorException(); }); try { fatal_error(); } catch (\Exception $e) { echo 'caught!'; } echo 'done';
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 7
Branch analysis from position: 7
2 jumps found. (Code = 107) Position 1 = 8, Position 2 = -2
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SLcPu
function name:  (null)
number of ops:  11
compiled vars:  !0 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'set_error_handler'
          1        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FSLcPu%3A2%240'
          2        SEND_VAL                                                 ~1
          3        DO_ICALL                                                 
    5     4        INIT_FCALL_BY_NAME                                       'fatal_error'
          5        DO_FCALL                                      0          
          6      > JMP                                                      ->9
    6     7  E > > CATCH                                       last         'Exception'
    7     8    >   ECHO                                                     'caught%21'
   10     9    >   ECHO                                                     'done'
         10      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FSLcPu%3A2%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
filename:       /in/SLcPu
function name:  {closure}
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $0      'ErrorException'
          1        DO_FCALL                                      0          
          2      > THROW                                         0          $0
          3*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FSLcPu%3A2%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
185.32 ms | 1399 KiB | 15 Q