3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $s ='O:8:"stdClass":10:{s:2:"-8";i:0;s:2:"-7";i:0;s:2:"-6";i:0;s:2:"-5";i:0;s:2:"-4";i:0;s:2:"-3";i:0;s:2:"-2";i:0;s:2:"-1";i:0;s:1:"0";i:100;s:1:"1";i:0;}'; $obj=unserialize($s); $ar =(array)$obj; echo $ar["-8"].', '.$ar['-8'].', '.$ar[-8]; ?>
based on TDNfd
Output for 5.4.0 - 5.6.28, 7.0.0 - 7.1.0
Notice: Undefined offset: -8 in /in/SegXQ on line 5 Notice: Undefined offset: -8 in /in/SegXQ on line 5 Notice: Undefined offset: -8 in /in/SegXQ on line 5 , ,
Output for hhvm-3.12.0
Notice: Undefined index: -8 in /in/SegXQ on line 5 Notice: Undefined index: -8 in /in/SegXQ on line 5 Notice: Undefined index: -8 in /in/SegXQ on line 5 , ,
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.3.9 - 5.3.29
Notice: Undefined index: -8 in /in/SegXQ on line 5 Notice: Undefined index: -8 in /in/SegXQ on line 5 Notice: Undefined offset: -8 in /in/SegXQ on line 5 , ,
Output for 4.3.3 - 4.4.9, 5.2.6 - 5.3.8
0, 0, 0
Output for 5.0.0 - 5.2.5
Notice: Undefined index: -8 in /in/SegXQ on line 5 Notice: Undefined index: -8 in /in/SegXQ on line 5 Notice: Undefined offset: -8 in /in/SegXQ on line 5 , ,
Output for 4.3.0 - 4.3.2
Notice: Undefined offset: -8 in /in/SegXQ on line 5 0, 0,