3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { private $test1; } class Test1 { public static function testing(Test $var) { $var->test1 = 'test'; var_dump($var); } } Test1::testing(new Test);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AbQB5
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   INIT_STATIC_METHOD_CALL                                  'Test1', 'testing'
          1        NEW                                              $0      'Test'
          2        DO_FCALL                                      0          
          3        SEND_VAR                                                 $0
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

Class Test: [no user functions]
Class Test1:
Function testing:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AbQB5
function name:  testing
number of ops:  7
compiled vars:  !0 = $var
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
    8     1        ASSIGN_OBJ                                               !0, 'test1'
          2        OP_DATA                                                  'test'
    9     3        INIT_FCALL                                               'var_dump'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                                 
   10     6      > RETURN                                                   null

End of function testing

End of class Test1.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.37 ms | 1386 KiB | 15 Q