3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface foo { public function generate($length); } class bar implements foo { public function generate($size, $lol = null) { echo 'generate'; } } $bar = new bar(); $bar->generate();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4QrhY
function name:  (null)
number of ops:  7
compiled vars:  !0 = $bar
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_CLASS                                            'bar'
    4     1        NEW                                              $1      'bar'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
    5     4        INIT_METHOD_CALL                                         !0, 'generate'
          5        DO_FCALL                                      0          
          6      > RETURN                                                   1

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

End of function generate

End of class foo.

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

End of function generate

End of class bar.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.92 ms | 1394 KiB | 13 Q