3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = array("14CDF1","CDCCC0","5E9CF5","FFAFEE","30FC40","DF00FF","007EFC","FA9F01","00FFC0","4FD01F","C0F22F","4A9CE1","166FEC","4F991D","C0F22C","FAACC1","A9AC99","DFD01F","C0FC3A","A99F01","0AC4C0","2DA01F","CC652F","FA9881","00CFC0","4FD41F","CC92CF"); $x = '1324341625312666243113212535'; for($i=0;$i<strlen($x);$i++) //print $a[$i].' '.$x[$i]."\n"; print $a[$i][(((int)$x[$i+1])-1)];
Output for 5.3.0 - 5.6.28, 7.0.0 - 7.1.0
CDCACDCACDCACDCACDCACDCACDC Notice: Uninitialized string offset: 28 in /in/YFjsE on line 7 Notice: Undefined offset: 27 in /in/YFjsE on line 7
Output for hhvm-3.10.0 - 3.12.0
CDCACDCACDCACDCACDCACDCACDC Notice: Undefined index: 27 in /in/YFjsE on line 7
Output for 5.2.10 - 5.2.17
CDCACDCACDCACDCACDCACDCACDC Notice: Uninitialized string offset: 28 in /in/YFjsE on line 7 Notice: Undefined offset: 27 in /in/YFjsE on line 7
Output for 4.3.0 - 5.2.9
CDCACDCACDCACDCACDCACDCACDC Notice: Uninitialized string offset: 28 in /in/YFjsE on line 7 Notice: Undefined offset: 27 in /in/YFjsE on line 7