3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array("1" => "PHP code tester Sandbox Online", "foo" => "bar", 5 , 5 => 89009, "case" => "Random Stuff", "PHP Version" => phpversion() ); $serialized = serialize($array); var_dump(unserialize($serialized));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6a2H4
function name:  (null)
number of ops:  20
compiled vars:  !0 = $array, !1 = $serialized
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_ARRAY                                       ~2      'PHP+code+tester+Sandbox+Online', 1
    5     1        ADD_ARRAY_ELEMENT                                ~2      'bar', 'foo'
          2        ADD_ARRAY_ELEMENT                                ~2      5
          3        ADD_ARRAY_ELEMENT                                ~2      89009, 5
    6     4        ADD_ARRAY_ELEMENT                                ~2      'Random+Stuff', 'case'
    7     5        INIT_FCALL                                               'phpversion'
          6        DO_ICALL                                         $3      
          7        ADD_ARRAY_ELEMENT                                ~2      $3, 'PHP+Version'
    4     8        ASSIGN                                                   !0, ~2
   10     9        INIT_FCALL                                               'serialize'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $5      
         12        ASSIGN                                                   !1, $5
   12    13        INIT_FCALL                                               'var_dump'
         14        INIT_FCALL                                               'unserialize'
         15        SEND_VAR                                                 !1
         16        DO_ICALL                                         $7      
         17        SEND_VAR                                                 $7
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.74 ms | 1395 KiB | 21 Q