3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { function b($c){echo $c;} } $a = new A; $d = [$a, 'b']; $d(3);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0HR2d
function name:  (null)
number of ops:  10
compiled vars:  !0 = $a, !1 = $d
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   NEW                                              $2      'A'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
    6     3        INIT_ARRAY                                       ~5      !0
          4        ADD_ARRAY_ELEMENT                                ~5      'b'
          5        ASSIGN                                                   !1, ~5
    8     6        INIT_DYNAMIC_CALL                                        !1
          7        SEND_VAL_EX                                              3
          8        DO_FCALL                                      0          
          9      > RETURN                                                   1

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

End of function b

End of class A.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.72 ms | 1393 KiB | 13 Q