3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test{ public $var=null; function __construct($input) { $var = $input; } } $a = new Test(4); echo $a->$var;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NBksa
function name:  (null)
number of ops:  7
compiled vars:  !0 = $a, !1 = $var
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   NEW                                              $2      'Test'
          1        SEND_VAL_EX                                              4
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $2
   11     4        FETCH_OBJ_R                                      ~5      !0, !1
          5        ECHO                                                     ~5
          6      > RETURN                                                   1

Class Test:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NBksa
function name:  __construct
number of ops:  3
compiled vars:  !0 = $input, !1 = $var
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
    7     1        ASSIGN                                                   !1, !0
    8     2      > RETURN                                                   null

End of function __construct

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.57 ms | 1393 KiB | 13 Q