3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = 'a:2:{i:0;O:9:"exception":1:{s:17:"'."\0".'Exception'."\0".'string";a:0:{}}i:1;R:3;}'; $y = unserialize($x); //for($i = 0; $i < 5; $i++) { // $v[$i] = 'hi'.$i; //} unset($y[1]); var_dump($y);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6k6ML
function name:  (null)
number of ops:  10
compiled vars:  !0 = $x, !1 = $y
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'a%3A2%3A%7Bi%3A0%3BO%3A9%3A%22exception%22%3A1%3A%7Bs%3A17%3A%22%00Exception%00string%22%3Ba%3A0%3A%7B%7D%7Di%3A1%3BR%3A3%3B%7D'
    4     1        INIT_FCALL                                               'unserialize'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !1, $3
   10     5        UNSET_DIM                                                !1, 1
   12     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.67 ms | 1394 KiB | 17 Q