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
Output for 5.3.18 - 5.6.38, hhvm-3.10.1 - 3.22.0, 7.0.15 - 7.0.31, 7.1.1 - 7.2.11
haha
Output for 7.0.0 - 7.0.14, 7.1.0
Notice: Undefined offset: 1 in /in/Fvgi6 on line 6