3v4l.org

run code in 300+ PHP versions simultaneously
<?php function throw_exception() { echo "Hi!"; throw new Exception("Oh no, I died"); } throw_exception();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/quDLI
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'throw_exception'
          1        DO_FCALL                                      0          
          2      > RETURN                                                   1

Function throw_exception:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
filename:       /in/quDLI
function name:  throw_exception
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ECHO                                                     'Hi%21'
    5     1        NEW                                              $0      'Exception'
          2        SEND_VAL_EX                                              'Oh+no%2C+I+died'
          3        DO_FCALL                                      0          
          4      > THROW                                         0          $0
    6     5*     > RETURN                                                   null

End of function throw_exception

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
190.74 ms | 1401 KiB | 14 Q