3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function bar(Foo $baz) { $baz->bat(); } private function bat() { var_dump(__METHOD__); } } $a = new Foo(); $b = new Foo(); $a->bar($b);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ORq0n
function name:  (null)
number of ops:  10
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   NEW                                              $2      'Foo'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
   14     3        NEW                                              $5      'Foo'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !1, $5
   15     6        INIT_METHOD_CALL                                         !0, 'bar'
          7        SEND_VAR_EX                                              !1
          8        DO_FCALL                                      0          
          9      > RETURN                                                   1

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

End of function bar

Function bat:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ORq0n
function name:  bat
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   INIT_FCALL                                               'var_dump'
          1        SEND_VAL                                                 'Foo%3A%3Abat'
          2        DO_ICALL                                                 
   10     3      > RETURN                                                   null

End of function bat

End of class Foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
136.6 ms | 1395 KiB | 15 Q