3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fixed = SplFixedArray::fromArray(range(1, 3)); $fixed->undefined = 'undefined'; $serialized = serialize($fixed); $unserialized = unserialize($serialized); var_dump($unserialized); var_export($unserialized);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kGNuG
function name:  (null)
number of ops:  25
compiled vars:  !0 = $fixed, !1 = $serialized, !2 = $unserialized
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_STATIC_METHOD_CALL                                  'SplFixedArray', 'fromArray'
          1        INIT_FCALL                                               'range'
          2        SEND_VAL                                                 1
          3        SEND_VAL                                                 3
          4        DO_ICALL                                         $3      
          5        SEND_VAR                                                 $3
          6        DO_FCALL                                      0  $4      
          7        ASSIGN                                                   !0, $4
    4     8        ASSIGN_OBJ                                               !0, 'undefined'
          9        OP_DATA                                                  'undefined'
    6    10        INIT_FCALL                                               'serialize'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                         $7      
         13        ASSIGN                                                   !1, $7
    7    14        INIT_FCALL                                               'unserialize'
         15        SEND_VAR                                                 !1
         16        DO_ICALL                                         $9      
         17        ASSIGN                                                   !2, $9
    8    18        INIT_FCALL                                               'var_dump'
         19        SEND_VAR                                                 !2
         20        DO_ICALL                                                 
    9    21        INIT_FCALL                                               'var_export'
         22        SEND_VAR                                                 !2
         23        DO_ICALL                                                 
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.42 ms | 1395 KiB | 23 Q