3v4l.org

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

Function toto:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/t5jbF
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 sh:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/t5jbF
function name:  sh
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 sh

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.13 ms | 1395 KiB | 17 Q