3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public $a; } $t = new Test(); $t->a = $b = "test"; var_dump($t->a,$b);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sIqi8
function name:  (null)
number of ops:  12
compiled vars:  !0 = $t, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   NEW                                              $2      'Test'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
    9     3        ASSIGN                                           ~6      !1, 'test'
          4        ASSIGN_OBJ                                               !0, 'a'
          5        OP_DATA                                                  ~6
   11     6        INIT_FCALL                                               'var_dump'
          7        FETCH_OBJ_R                                      ~7      !0, 'a'
          8        SEND_VAL                                                 ~7
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Class Test: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.74 ms | 1394 KiB | 15 Q