3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { function foofoo($bar = null) { $Bar = new Bar(); $Bar->barbar($bar); } } class Bar { function barbar($bar = 'bar') { var_dump($bar); } } $foo = new Foo(); $foo->foofoo();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aMtXm
function name:  (null)
number of ops:  6
compiled vars:  !0 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   19     0  E >   NEW                                              $1      'Foo'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   20     3        INIT_METHOD_CALL                                         !0, 'foofoo'
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

Class Foo:
Function foofoo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aMtXm
function name:  foofoo
number of ops:  8
compiled vars:  !0 = $bar, !1 = $Bar
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV_INIT                                        !0      null
    6     1        NEW                                              $2      'Bar'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !1, $2
    7     4        INIT_METHOD_CALL                                         !1, 'barbar'
          5        SEND_VAR_EX                                              !0
          6        DO_FCALL                                      0          
    8     7      > RETURN                                                   null

End of function foofoo

End of class Foo.

Class Bar:
Function barbar:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aMtXm
function name:  barbar
number of ops:  5
compiled vars:  !0 = $bar
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   RECV_INIT                                        !0      'bar'
   15     1        INIT_FCALL                                               'var_dump'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                                 
   16     4      > RETURN                                                   null

End of function barbar

End of class Bar.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.69 ms | 1395 KiB | 15 Q