3v4l.org

run code in 500+ 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); echo "\n"; // for comparison var_dump($fixed); var_export($fixed); echo "\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IMnI5
function name:  (null)
number of ops:  33
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        ECHO                                                         '%0A'
   12    25        INIT_FCALL                                                   'var_dump'
         26        SEND_VAR                                                     !0
         27        DO_ICALL                                                     
   13    28        INIT_FCALL                                                   'var_export'
         29        SEND_VAR                                                     !0
         30        DO_ICALL                                                     
         31        ECHO                                                         '%0A'
         32      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
161.35 ms | 2236 KiB | 18 Q