3v4l.org

run code in 300+ PHP versions simultaneously
<?php $out = array('one', 'two', 'three'); echo 'Serialized: '.serialize($out).' '; //Couldn't use newline character, so I just wrapped it in quotes. Boom, baby. echo 'Unserialized: '.print_r(unserialize(serialize($out)), true);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/V1bL9
function name:  (null)
number of ops:  20
compiled vars:  !0 = $out
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        INIT_FCALL                                               'serialize'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $2      
          4        CONCAT                                           ~3      'Serialized%3A+', $2
          5        CONCAT                                           ~4      ~3, '%0A'
          6        ECHO                                                     ~4
    5     7        INIT_FCALL                                               'print_r'
          8        INIT_FCALL                                               'unserialize'
          9        INIT_FCALL                                               'serialize'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $5      
         12        SEND_VAR                                                 $5
         13        DO_ICALL                                         $6      
         14        SEND_VAR                                                 $6
         15        SEND_VAL                                                 <true>
         16        DO_ICALL                                         $7      
         17        CONCAT                                           ~8      'Unserialized%3A+', $7
         18        ECHO                                                     ~8
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.21 ms | 1395 KiB | 19 Q