3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = new SplFixedArray(2); $x[1] = "a"; $x->{"1"} = "b"; $x->{"123"} = "c"; var_dump($x); var_dump(serialize($x)); var_dump(unserialize(serialize($x)));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uZH8a
function name:  (null)
number of ops:  29
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $1      'SplFixedArray'
          1        SEND_VAL_EX                                              2
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
    5     4        ASSIGN_DIM                                               !0, 1
          5        OP_DATA                                                  'a'
    6     6        ASSIGN_OBJ                                               !0, '1'
          7        OP_DATA                                                  'b'
    7     8        ASSIGN_OBJ                                               !0, '123'
          9        OP_DATA                                                  'c'
    9    10        INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                                 
   11    13        INIT_FCALL                                               'var_dump'
         14        INIT_FCALL                                               'serialize'
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                         $8      
         17        SEND_VAR                                                 $8
         18        DO_ICALL                                                 
   12    19        INIT_FCALL                                               'var_dump'
         20        INIT_FCALL                                               'unserialize'
         21        INIT_FCALL                                               'serialize'
         22        SEND_VAR                                                 !0
         23        DO_ICALL                                         $10     
         24        SEND_VAR                                                 $10
         25        DO_ICALL                                         $11     
         26        SEND_VAR                                                 $11
         27        DO_ICALL                                                 
         28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.43 ms | 1012 KiB | 16 Q