3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo{ private $blah; function echoBlah(foo $foo) { echo $foo->blah; } function __construct($blah) { $this->blah = $blah; } } $f1 = new foo("OMG"); $f2 = new foo("WTF"); $f1->echoBlah($f2);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/V8Hht
function name:  (null)
number of ops:  12
compiled vars:  !0 = $f1, !1 = $f2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E >   NEW                                              $2      'foo'
          1        SEND_VAL_EX                                              'OMG'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $2
   19     4        NEW                                              $5      'foo'
          5        SEND_VAL_EX                                              'WTF'
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !1, $5
   21     8        INIT_METHOD_CALL                                         !0, 'echoBlah'
          9        SEND_VAR_EX                                              !1
         10        DO_FCALL                                      0          
         11      > RETURN                                                   1

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

End of function echoblah

Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/V8Hht
function name:  __construct
number of ops:  4
compiled vars:  !0 = $blah
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   RECV                                             !0      
   13     1        ASSIGN_OBJ                                               'blah'
          2        OP_DATA                                                  !0
   14     3      > RETURN                                                   null

End of function __construct

End of class foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.32 ms | 1394 KiB | 13 Q