3v4l.org

run code in 300+ PHP versions simultaneously
<?php function callback($data) { throw new Exception('test'); return $data . ' - called'; } ob_start('callback'); echo "hi";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nROov
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   INIT_FCALL                                               'ob_start'
          1        SEND_VAL                                                 'callback'
          2        DO_ICALL                                                 
    7     3        ECHO                                                     'hi'
          4      > RETURN                                                   1

Function callback:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
filename:       /in/nROov
function name:  callback
number of ops:  8
compiled vars:  !0 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    3     1        NEW                                              $1      'Exception'
          2        SEND_VAL_EX                                              'test'
          3        DO_FCALL                                      0          
          4      > THROW                                         0          $1
    4     5*       CONCAT                                           ~3      !0, '+-+called'
          6*       RETURN                                                   ~3
    5     7*     > RETURN                                                   null

End of function callback

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.29 ms | 1394 KiB | 15 Q