3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
192.67 ms | 1395 KiB | 17 Q