3v4l.org

run code in 300+ PHP versions simultaneously
<?php function toto($b) { return $b; } function eh($e) { ob_start('toto'); echo '123'; } function sh() { } register_shutdown_function('sh'); set_exception_handler('eh'); throw new Exception;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
filename:       /in/fDqpJ
function name:  (null)
number of ops:  10
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   INIT_FCALL                                               'register_shutdown_function'
          1        SEND_VAL                                                 'sh'
          2        DO_ICALL                                                 
   16     3        INIT_FCALL                                               'set_exception_handler'
          4        SEND_VAL                                                 'eh'
          5        DO_ICALL                                                 
   17     6        NEW                                              $2      'Exception'
          7        DO_FCALL                                      0          
          8      > THROW                                         0          $2
          9*     > RETURN                                                   1

Function toto:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fDqpJ
function name:  toto
number of ops:  3
compiled vars:  !0 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    5     1      > RETURN                                                   !0
    6     2*     > RETURN                                                   null

End of function toto

Function eh:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fDqpJ
function name:  eh
number of ops:  6
compiled vars:  !0 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
    9     1        INIT_FCALL                                               'ob_start'
          2        SEND_VAL                                                 'toto'
          3        DO_ICALL                                                 
   10     4        ECHO                                                     '123'
   11     5      > RETURN                                                   null

End of function eh

Function sh:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fDqpJ
function name:  sh
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E > > RETURN                                                   null

End of function sh

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.78 ms | 1396 KiB | 19 Q