3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = (object) [ 'name' => ($name = 'john'), 'other' => $name.' , wellcome', ]; var_dump($data);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XmVc5
function name:  (null)
number of ops:  10
compiled vars:  !0 = $data, !1 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                           ~2      !1, 'john'
          1        INIT_ARRAY                                       ~3      ~2, 'name'
    5     2        CONCAT                                           ~4      !1, '+%2C+wellcome'
          3        ADD_ARRAY_ELEMENT                                ~3      ~4, 'other'
          4        CAST                                          8  ~5      ~3
    3     5        ASSIGN                                                   !0, ~5
    8     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
137.21 ms | 996 KiB | 14 Q