3v4l.org

run code in 300+ PHP versions simultaneously
<?php $brin = 'Gynzy'; $salesorderid = 2562; $aantal = 4; $product_id = 45; $hallo = [ 'brin' => $brin, 'salesorderid' => $salesorderid // 'productlines' => [ // 'quantity' => $aantal, // 'product_id' => $product_id // ] ]; array_push($hallo['productlines'], ['quantity' => 5, 'product_id' => 678 ]); print_r ($hallo); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IGBjl
function name:  (null)
number of ops:  16
compiled vars:  !0 = $brin, !1 = $salesorderid, !2 = $aantal, !3 = $product_id, !4 = $hallo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Gynzy'
    4     1        ASSIGN                                                   !1, 2562
    5     2        ASSIGN                                                   !2, 4
    6     3        ASSIGN                                                   !3, 45
   11     4        INIT_ARRAY                                       ~9      !0, 'brin'
   12     5        ADD_ARRAY_ELEMENT                                ~9      !1, 'salesorderid'
   10     6        ASSIGN                                                   !4, ~9
   19     7        INIT_FCALL                                               'array_push'
          8        FETCH_DIM_W                                      $11     !4, 'productlines'
          9        SEND_REF                                                 $11
         10        SEND_VAL                                                 <array>
         11        DO_ICALL                                                 
   24    12        INIT_FCALL                                               'print_r'
         13        SEND_VAR                                                 !4
         14        DO_ICALL                                                 
   27    15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.93 ms | 1399 KiB | 17 Q