3v4l.org

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

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

End of function printx

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
127.35 ms | 1397 KiB | 13 Q