3v4l.org

run code in 300+ PHP versions simultaneously
<?php $codse = <<<EOT class Foo{ function __wake(){ var_dump('hello world'); } } EOT; $t = serialize(new Foo()); $t = base64_encode($t); unserialize(base64_decode($t));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9ckih
function name:  (null)
number of ops:  18
compiled vars:  !0 = $codse, !1 = $t
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'class+Foo%7B%0A%09function+__wake%28%29%7B%0A%09%09var_dump%28%27hello+world%27%29%3B%0A++++%7D%0A%7D'
   10     1        INIT_FCALL                                               'serialize'
          2        NEW                                              $3      'Foo'
          3        DO_FCALL                                      0          
          4        SEND_VAR                                                 $3
          5        DO_ICALL                                         $5      
          6        ASSIGN                                                   !1, $5
   11     7        INIT_FCALL                                               'base64_encode'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                         $7      
         10        ASSIGN                                                   !1, $7
   12    11        INIT_FCALL                                               'unserialize'
         12        INIT_FCALL                                               'base64_decode'
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                         $9      
         15        SEND_VAR                                                 $9
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.41 ms | 1394 KiB | 21 Q