3v4l.org

run code in 300+ PHP versions simultaneously
<?php class SomeCollection extends ArrayObject {} $meh = unserialize('O:14:"SomeCollection":1:{i:0;s:4:"item";}'); var_dump('yay', $meh); var_dump($meh[0]); $meh = unserialize('C:14:"SomeCollection":36:{x:i:0;a:1:{i:0;s:4:"item";};m:a:0:{}}'); var_dump('yay', $meh);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SpJvE
function name:  (null)
number of ops:  21
compiled vars:  !0 = $meh
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   INIT_FCALL                                               'unserialize'
          1        SEND_VAL                                                 'O%3A14%3A%22SomeCollection%22%3A1%3A%7Bi%3A0%3Bs%3A4%3A%22item%22%3B%7D'
          2        DO_ICALL                                         $1      
          3        ASSIGN                                                   !0, $1
    7     4        INIT_FCALL                                               'var_dump'
          5        SEND_VAL                                                 'yay'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                                 
    8     8        INIT_FCALL                                               'var_dump'
          9        FETCH_DIM_R                                      ~4      !0, 0
         10        SEND_VAL                                                 ~4
         11        DO_ICALL                                                 
    9    12        INIT_FCALL                                               'unserialize'
         13        SEND_VAL                                                 'C%3A14%3A%22SomeCollection%22%3A36%3A%7Bx%3Ai%3A0%3Ba%3A1%3A%7Bi%3A0%3Bs%3A4%3A%22item%22%3B%7D%3Bm%3Aa%3A0%3A%7B%7D%7D'
         14        DO_ICALL                                         $6      
         15        ASSIGN                                                   !0, $6
   10    16        INIT_FCALL                                               'var_dump'
         17        SEND_VAL                                                 'yay'
         18        SEND_VAR                                                 !0
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Class SomeCollection: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.25 ms | 1395 KiB | 17 Q