3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = []; $a = ['itemListElement' => ['@type' => 'ListItem', 'position' => '1', 'item' => ['name' => 'testName1']]]; $b = ['itemListElement' => ['@type' => 'ListItem', 'position' => '2', 'item' => ['name' => 'testName2']]]; array_push($a, $b); vardump($a);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/f0JvJ
function name:  (null)
number of ops:  11
compiled vars:  !0 = $array, !1 = $a, !2 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        ASSIGN                                                   !1, <array>
    8     2        ASSIGN                                                   !2, <array>
   11     3        INIT_FCALL                                               'array_push'
          4        SEND_REF                                                 !1
          5        SEND_VAR                                                 !2
          6        DO_ICALL                                                 
   13     7        INIT_FCALL_BY_NAME                                       'vardump'
          8        SEND_VAR_EX                                              !1
          9        DO_FCALL                                      0          
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.08 ms | 1394 KiB | 15 Q