3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface I { public function test($stuff, array $other_stuff); } class A implements I { public function test($stuff_n, array $other_stuff) { print $stuff_n; } } $a = new A(); $a->test('stuff', []);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5tCCK
function name:  (null)
number of ops:  9
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   DECLARE_CLASS                                            'a'
   13     1        NEW                                              $1      'A'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
   15     4        INIT_METHOD_CALL                                         !0, 'test'
          5        SEND_VAL_EX                                              'stuff'
          6        SEND_VAL_EX                                              <array>
          7        DO_FCALL                                      0          
          8      > RETURN                                                   1

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

End of function test

End of class I.

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

End of function test

End of class A.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.85 ms | 1398 KiB | 13 Q