3v4l.org

run code in 300+ PHP versions simultaneously
<?php $serialized_array = serialize(array(1234=>"foobar")); echo "Serialized Array: $serialized_array" . PHP_EOL; $array = unserialize($serialzed_array); print_r($array); echo array_key_check(1234, $array) . PHP_EOL;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QK5nH
function name:  (null)
number of ops:  22
compiled vars:  !0 = $serialized_array, !1 = $array, !2 = $serialzed_array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'serialize'
          1        SEND_VAL                                                 <array>
          2        DO_ICALL                                         $3      
          3        ASSIGN                                                   !0, $3
    4     4        NOP                                                      
          5        FAST_CONCAT                                      ~5      'Serialized+Array%3A+', !0
          6        CONCAT                                           ~6      ~5, '%0A'
          7        ECHO                                                     ~6
    6     8        INIT_FCALL                                               'unserialize'
          9        SEND_VAR                                                 !2
         10        DO_ICALL                                         $7      
         11        ASSIGN                                                   !1, $7
    7    12        INIT_FCALL                                               'print_r'
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                                 
    8    15        INIT_FCALL_BY_NAME                                       'array_key_check'
         16        SEND_VAL_EX                                              1234
         17        SEND_VAR_EX                                              !1
         18        DO_FCALL                                      0  $10     
         19        CONCAT                                           ~11     $10, '%0A'
         20        ECHO                                                     ~11
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.63 ms | 1395 KiB | 19 Q