3v4l.org

run code in 300+ PHP versions simultaneously
<?php $metadata = array('test' => 'test'); $test = var_export(serialize($metadata), true); $test2 = unserialize($test); $eval = 'return unserialize('.serialize($metadata).');'; echo eval($eval);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pHUaY
function name:  (null)
number of ops:  22
compiled vars:  !0 = $metadata, !1 = $test, !2 = $test2, !3 = $eval
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        INIT_FCALL                                               'var_export'
          2        INIT_FCALL                                               'serialize'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $5      
          5        SEND_VAR                                                 $5
          6        SEND_VAL                                                 <true>
          7        DO_ICALL                                         $6      
          8        ASSIGN                                                   !1, $6
    4     9        INIT_FCALL                                               'unserialize'
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                         $8      
         12        ASSIGN                                                   !2, $8
    5    13        INIT_FCALL                                               'serialize'
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                         $10     
         16        CONCAT                                           ~11     'return+unserialize%28', $10
         17        CONCAT                                           ~12     ~11, '%29%3B'
         18        ASSIGN                                                   !3, ~12
    7    19        INCLUDE_OR_EVAL                                  $14     !3, EVAL
         20        ECHO                                                     $14
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.11 ms | 1395 KiB | 19 Q