3v4l.org

run code in 300+ PHP versions simultaneously
<?php $shop = array( array( Title => "rose", Price => 1.25, Number => 15 ), array( Title => "daisy", Price => 0.75, Number => 25, ), array( Title => "orchid", Price => 1.15, Number => 7 ) ); var_dump($shop); $shops = array( array("rose", 1.25 , 15), array("daisy", 0.75 , 25), array("orchid", 1.15 , 7) ); var_dump($shops);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2HQIT
function name:  (null)
number of ops:  30
compiled vars:  !0 = $shop, !1 = $shops
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   FETCH_CONSTANT                                   ~2      'Title'
          1        INIT_ARRAY                                       ~3      'rose', ~2
    3     2        FETCH_CONSTANT                                   ~4      'Price'
          3        ADD_ARRAY_ELEMENT                                ~3      1.25, ~4
    4     4        FETCH_CONSTANT                                   ~5      'Number'
          5        ADD_ARRAY_ELEMENT                                ~3      15, ~5
          6        INIT_ARRAY                                       ~6      ~3
    6     7        FETCH_CONSTANT                                   ~7      'Title'
          8        INIT_ARRAY                                       ~8      'daisy', ~7
    7     9        FETCH_CONSTANT                                   ~9      'Price'
         10        ADD_ARRAY_ELEMENT                                ~8      0.75, ~9
    8    11        FETCH_CONSTANT                                   ~10     'Number'
         12        ADD_ARRAY_ELEMENT                                ~8      25, ~10
         13        ADD_ARRAY_ELEMENT                                ~6      ~8
   10    14        FETCH_CONSTANT                                   ~11     'Title'
         15        INIT_ARRAY                                       ~12     'orchid', ~11
   11    16        FETCH_CONSTANT                                   ~13     'Price'
         17        ADD_ARRAY_ELEMENT                                ~12     1.15, ~13
   12    18        FETCH_CONSTANT                                   ~14     'Number'
         19        ADD_ARRAY_ELEMENT                                ~12     7, ~14
         20        ADD_ARRAY_ELEMENT                                ~6      ~12
    2    21        ASSIGN                                                   !0, ~6
   17    22        INIT_FCALL                                               'var_dump'
         23        SEND_VAR                                                 !0
         24        DO_ICALL                                                 
   19    25        ASSIGN                                                   !1, <array>
   25    26        INIT_FCALL                                               'var_dump'
         27        SEND_VAR                                                 !1
         28        DO_ICALL                                                 
         29      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.2 ms | 1395 KiB | 15 Q