3v4l.org

run code in 300+ PHP versions simultaneously
<?php $cars=array(array(bmw,20,10),array(benz,30,10),array(gator,20,40),array(ferrari,15,60)); echo $cars[0][0]."in stock".$cars[0][1]."sold".$cars[0][2]; echo $cars[1][0]."in stock".$cars[1][1]."sold".$cars[1][2]; echo $cars[3][0]."in stock".$cars[0][1]."sold".$cars[3][3];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iekLc
function name:  (null)
number of ops:  55
compiled vars:  !0 = $cars
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   FETCH_CONSTANT                                   ~1      'bmw'
          1        INIT_ARRAY                                       ~2      ~1
          2        ADD_ARRAY_ELEMENT                                ~2      20
          3        ADD_ARRAY_ELEMENT                                ~2      10
          4        INIT_ARRAY                                       ~3      ~2
          5        FETCH_CONSTANT                                   ~4      'benz'
          6        INIT_ARRAY                                       ~5      ~4
          7        ADD_ARRAY_ELEMENT                                ~5      30
          8        ADD_ARRAY_ELEMENT                                ~5      10
          9        ADD_ARRAY_ELEMENT                                ~3      ~5
         10        FETCH_CONSTANT                                   ~6      'gator'
         11        INIT_ARRAY                                       ~7      ~6
         12        ADD_ARRAY_ELEMENT                                ~7      20
         13        ADD_ARRAY_ELEMENT                                ~7      40
         14        ADD_ARRAY_ELEMENT                                ~3      ~7
         15        FETCH_CONSTANT                                   ~8      'ferrari'
         16        INIT_ARRAY                                       ~9      ~8
         17        ADD_ARRAY_ELEMENT                                ~9      15
         18        ADD_ARRAY_ELEMENT                                ~9      60
         19        ADD_ARRAY_ELEMENT                                ~3      ~9
         20        ASSIGN                                                   !0, ~3
    5    21        FETCH_DIM_R                                      ~11     !0, 0
         22        FETCH_DIM_R                                      ~12     ~11, 0
         23        CONCAT                                           ~13     ~12, 'in+stock'
         24        FETCH_DIM_R                                      ~14     !0, 0
         25        FETCH_DIM_R                                      ~15     ~14, 1
         26        CONCAT                                           ~16     ~13, ~15
         27        CONCAT                                           ~17     ~16, 'sold'
         28        FETCH_DIM_R                                      ~18     !0, 0
         29        FETCH_DIM_R                                      ~19     ~18, 2
         30        CONCAT                                           ~20     ~17, ~19
         31        ECHO                                                     ~20
    6    32        FETCH_DIM_R                                      ~21     !0, 1
         33        FETCH_DIM_R                                      ~22     ~21, 0
         34        CONCAT                                           ~23     ~22, 'in+stock'
         35        FETCH_DIM_R                                      ~24     !0, 1
         36        FETCH_DIM_R                                      ~25     ~24, 1
         37        CONCAT                                           ~26     ~23, ~25
         38        CONCAT                                           ~27     ~26, 'sold'
         39        FETCH_DIM_R                                      ~28     !0, 1
         40        FETCH_DIM_R                                      ~29     ~28, 2
         41        CONCAT                                           ~30     ~27, ~29
         42        ECHO                                                     ~30
    7    43        FETCH_DIM_R                                      ~31     !0, 3
         44        FETCH_DIM_R                                      ~32     ~31, 0
         45        CONCAT                                           ~33     ~32, 'in+stock'
         46        FETCH_DIM_R                                      ~34     !0, 0
         47        FETCH_DIM_R                                      ~35     ~34, 1
         48        CONCAT                                           ~36     ~33, ~35
         49        CONCAT                                           ~37     ~36, 'sold'
         50        FETCH_DIM_R                                      ~38     !0, 3
         51        FETCH_DIM_R                                      ~39     ~38, 3
         52        CONCAT                                           ~40     ~37, ~39
         53        ECHO                                                     ~40
         54      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.98 ms | 1399 KiB | 13 Q