3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { public function foobar($a) { } } class bar extends foo { public function foobar($a, $b = null) { } } (new bar)->foobar(1, 2);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/C4RRe
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   NEW                                              $0      'bar'
          1        DO_FCALL                                      0          
          2        INIT_METHOD_CALL                                         $0, 'foobar'
          3        SEND_VAL_EX                                              1
          4        SEND_VAL_EX                                              2
          5        DO_FCALL                                      0          
          6      > RETURN                                                   1

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

End of function foobar

End of class foo.

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

End of function foobar

End of class bar.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.83 ms | 1398 KiB | 13 Q