3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $x = 'a:2:{i:0;O:9:"exception":1:{s:17:"'."\0".'Exception'."\0".'string";i:1;}i:1;R:3;}'; $x = unserialize($x); if ($x[1]) { echo 'haha'; }
based on fnWEU
Finding entry points
Branch analysis from position: 0
Jump found. (Code = 43) Position 1 = 7, Position 2 = 8
Branch analysis from position: 7
Jump found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
filename:       /in/Fvgi6
function name:  (null)
number of ops:  9
compiled vars:  !0 = $x
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%3Bi%3A1%3B%7Di%3A1%3BR%3A3%3B%7D'
   4     1        INIT_FCALL                                               'unserialize'
         2        SEND_VAR                                                 !0
         3        DO_ICALL                                         $2      
         4        ASSIGN                                                   !0, $2
   6     5        FETCH_DIM_R                                      $4      !0, 1
         6      > JMPZ                                                     $4, ->8
   7     7    >   ECHO                                                     'haha'
   8     8    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.3.0