3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = <<<STRING a:6:{s:5:"width";s:4:"3000";s:6:"height";s:4:"2100";s:14:"hwstring_small";s:23:"height=\'89\' width=\'128\'";s:4:"file";s:25:"2012/02/sopa_nicearma.jpg";s:5:"sizes";a:3:{s:9:"thumbnail";a:3:{s:4:"file";s:23:"sopa_nicearma-15x10.jpg";s:5:"width";s:2:"15";s:6:"height";s:2:"10";}s:6:"medium";a:3:{s:4:"file";s:25:"sopa_nicearma-300x210.jpg";s:5:"width";s:3:"300";s:6:"height";s:3:"210";}s:5:"large";a:3:{s:4:"file";s:25:"sopa_nicearma-700x490.jpg";s:5:"width";s:3:"700";s:6:"height";s:3:"490";}}s:10:"image_meta";a:10:{s:8:"aperture";s:1:"0";s:6:"credit";s:0:"";s:6:"camera";s:0:"";s:7:"caption";s:0:"";s:17:"created_timestamp";s:1:"0";s:9:"copyright";s:0:"";s:12:"focal_length";s:1:"0";s:3:"iso";s:1:"0";s:13:"shutter_speed";s:1:"0";s:5:"title";s:0:"";}} STRING; $array = unserialize(stripslashes($string)); unset($array['sizes']['thumbnail']); //print_r($array); echo "Old: $string\n"; echo "New: " , serialize($array);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Znhug
function name:  (null)
number of ops:  20
compiled vars:  !0 = $string, !1 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'a%3A6%3A%7Bs%3A5%3A%22width%22%3Bs%3A4%3A%223000%22%3Bs%3A6%3A%22height%22%3Bs%3A4%3A%222100%22%3Bs%3A14%3A%22hwstring_small%22%3Bs%3A23%3A%22height%3D%5C%2789%5C%27+width%3D%5C%27128%5C%27%22%3Bs%3A4%3A%22file%22%3Bs%3A25%3A%222012%2F02%2Fsopa_nicearma.jpg%22%3Bs%3A5%3A%22sizes%22%3Ba%3A3%3A%7Bs%3A9%3A%22thumbnail%22%3Ba%3A3%3A%7Bs%3A4%3A%22file%22%3Bs%3A23%3A%22sopa_nicearma-15x10.jpg%22%3Bs%3A5%3A%22width%22%3Bs%3A2%3A%2215%22%3Bs%3A6%3A%22height%22%3Bs%3A2%3A%2210%22%3B%7Ds%3A6%3A%22medium%22%3Ba%3A3%3A%7Bs%3A4%3A%22file%22%3Bs%3A25%3A%22sopa_nicearma-300x210.jpg%22%3Bs%3A5%3A%22width%22%3Bs%3A3%3A%22300%22%3Bs%3A6%3A%22height%22%3Bs%3A3%3A%22210%22%3B%7Ds%3A5%3A%22large%22%3Ba%3A3%3A%7Bs%3A4%3A%22file%22%3Bs%3A25%3A%22sopa_nicearma-700x490.jpg%22%3Bs%3A5%3A%22width%22%3Bs%3A3%3A%22700%22%3Bs%3A6%3A%22height%22%3Bs%3A3%3A%22490%22%3B%7D%7Ds%3A10%3A%22image_meta%22%3Ba%3A10%3A%7Bs%3A8%3A%22aperture%22%3Bs%3A1%3A%220%22%3Bs%3A6%3A%22credit%22%3Bs%3A0%3A%22%22%3Bs%3A6%3A%22camera%22%3Bs%3A0%3A%22%22%3Bs%3A7%3A%22caption%22%3Bs%3A0%3A%22%22%3Bs%3A17%3A%22created_timestamp%22%3Bs%3A1%3A%220%22%3Bs%3A9%3A%22copyright%22%3Bs%3A0%3A%22%22%3Bs%3A12%3A%22focal_length%22%3Bs%3A1%3A%220%22%3Bs%3A3%3A%22iso%22%3Bs%3A1%3A%220%22%3Bs%3A13%3A%22shutter_speed%22%3Bs%3A1%3A%220%22%3Bs%3A5%3A%22title%22%3Bs%3A0%3A%22%22%3B%7D%7D'
    5     1        INIT_FCALL                                               'unserialize'
          2        INIT_FCALL                                               'stripslashes'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $3      
          5        SEND_VAR                                                 $3
          6        DO_ICALL                                         $4      
          7        ASSIGN                                                   !1, $4
    6     8        FETCH_DIM_UNSET                                  $6      !1, 'sizes'
          9        UNSET_DIM                                                $6, 'thumbnail'
    8    10        ROPE_INIT                                     3  ~8      'Old%3A+'
         11        ROPE_ADD                                      1  ~8      ~8, !0
         12        ROPE_END                                      2  ~7      ~8, '%0A'
         13        ECHO                                                     ~7
    9    14        ECHO                                                     'New%3A+'
         15        INIT_FCALL                                               'serialize'
         16        SEND_VAR                                                 !1
         17        DO_ICALL                                         $10     
         18        ECHO                                                     $10
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.85 ms | 1462 KiB | 16 Q