3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Blop { var $i = 0; } $a = new Blop; $b = $a; $c = &$a; $a->i = $a->i + 1; var_dump($a); var_dump($b); var_dump($c);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7Q7kU
function name:  (null)
number of ops:  19
compiled vars:  !0 = $a, !1 = $b, !2 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   NEW                                              $3      'Blop'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $3
    8     3        ASSIGN                                                   !1, !0
    9     4        ASSIGN_REF                                               !2, !0
   10     5        FETCH_OBJ_R                                      ~9      !0, 'i'
          6        ADD                                              ~10     ~9, 1
          7        ASSIGN_OBJ                                               !0, 'i'
          8        OP_DATA                                                  ~10
   12     9        INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                                 
   13    12        INIT_FCALL                                               'var_dump'
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                                 
   14    15        INIT_FCALL                                               'var_dump'
         16        SEND_VAR                                                 !2
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Class Blop: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.66 ms | 1394 KiB | 15 Q