3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
251 ms | 1011 KiB | 16 Q