3v4l.org

run code in 300+ PHP versions simultaneously
<?php call_user_func(array(new MyClass_Mod, "msg")); class MyClass { function msg() { echo '<p>get_class(): ' . get_class() . '</p>'; } } class MyClass_Mod extends MyClass { }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/f0Knn
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $0      'MyClass_Mod'
          1        DO_FCALL                                      0          
          2        INIT_ARRAY                                       ~2      $0
          3        ADD_ARRAY_ELEMENT                                ~2      'msg'
          4        INIT_USER_CALL                                0          'call_user_func', ~2
          5        DO_FCALL                                      0          
   10     6      > RETURN                                                   1

Class MyClass:
Function msg:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/f0Knn
function name:  msg
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   GET_CLASS                                        ~0      
          1        CONCAT                                           ~1      '%3Cp%3Eget_class%28%29%3A+', ~0
          2        CONCAT                                           ~2      ~1, '%3C%2Fp%3E'
          3        ECHO                                                     ~2
    7     4      > RETURN                                                   null

End of function msg

End of class MyClass.

Class MyClass_Mod:
Function msg:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/f0Knn
function name:  msg
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   GET_CLASS                                        ~0      
          1        CONCAT                                           ~1      '%3Cp%3Eget_class%28%29%3A+', ~0
          2        CONCAT                                           ~2      ~1, '%3C%2Fp%3E'
          3        ECHO                                                     ~2
    7     4      > RETURN                                                   null

End of function msg

End of class MyClass_Mod.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.44 ms | 1394 KiB | 13 Q