3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = "Foo"; $b = (object)"Bar"; $c = array(&$a, &$b); $c[1] = (object)"Baz"; print_r($c); print_r($b);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RXiaG
function name:  (null)
number of ops:  16
compiled vars:  !0 = $a, !1 = $b, !2 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'Foo'
    3     1        CAST                                          8  ~4      'Bar'
          2        ASSIGN                                                   !1, ~4
    5     3        INIT_ARRAY                                       ~6      !0
          4        ADD_ARRAY_ELEMENT                                ~6      !1
          5        ASSIGN                                                   !2, ~6
    6     6        CAST                                          8  ~9      'Baz'
          7        ASSIGN_DIM                                               !2, 1
          8        OP_DATA                                                  ~9
    8     9        INIT_FCALL                                               'print_r'
         10        SEND_VAR                                                 !2
         11        DO_ICALL                                                 
    9    12        INIT_FCALL                                               'print_r'
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.92 ms | 1394 KiB | 15 Q