3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = new SplFixedArray(5); $array[] = 'boo'; $array[] = 'baz'; $array[] = 'bing'; $array[] = 'foo'; $array[] = 'blah'; var_dump($array); var_dump(json_encode($array));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Cu3L3
function name:  (null)
number of ops:  24
compiled vars:  !0 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $1      'SplFixedArray'
          1        SEND_VAL_EX                                              5
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
    4     4        ASSIGN_DIM                                               !0
          5        OP_DATA                                                  'boo'
    5     6        ASSIGN_DIM                                               !0
          7        OP_DATA                                                  'baz'
    6     8        ASSIGN_DIM                                               !0
          9        OP_DATA                                                  'bing'
    7    10        ASSIGN_DIM                                               !0
         11        OP_DATA                                                  'foo'
    8    12        ASSIGN_DIM                                               !0
         13        OP_DATA                                                  'blah'
   10    14        INIT_FCALL                                               'var_dump'
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                                 
   12    17        INIT_FCALL                                               'var_dump'
         18        INIT_FCALL                                               'json_encode'
         19        SEND_VAR                                                 !0
         20        DO_ICALL                                         $10     
         21        SEND_VAR                                                 $10
         22        DO_ICALL                                                 
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.15 ms | 1395 KiB | 17 Q