3v4l.org

run code in 500+ PHP versions simultaneously
<?php class Foo { public function bar() { $this->baz(function () {}); } } echo mime_content_type(__FILE__);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iZMTY
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   11     0  E >   INIT_FCALL                                                   'mime_content_type'
          1        SEND_VAL                                                     '%2Fin%2FiZMTY'
          2        DO_ICALL                                             $0      
          3        ECHO                                                         $0
          4      > RETURN                                                       1

Class Foo:
Function bar:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iZMTY
function name:  bar
number of ops:  5
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    7     0  E >   INIT_METHOD_CALL                                             'baz'
          1        DECLARE_LAMBDA_FUNCTION                              ~0      [0]
          2        SEND_VAL_EX                                                  ~0
          3        DO_FCALL                                          0          
    8     4      > RETURN                                                       null


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iZMTY
function name:  {closure:Foo::bar():7}
number of ops:  1
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    7     0  E > > RETURN                                                       null

End of Dynamic Function 0

End of function bar

End of class Foo.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
145.4 ms | 1510 KiB | 14 Q