3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php alph[]='Start'; foreach(range('a','z') as $val) { $alph[]=$val; } $makethisvalasarray='zaj'; $makethisvalasarray=str_split($makethisvalasarray); foreach($makethisvalasarray as $val) { $newarr[$alph[array_search($val,$alph)]]=array_search($val,$alph); } print_r($newarr);
Output for 5.3.0 - 5.4.24
Parse error: syntax error, unexpected '[' in /in/G8npG on line 2
Process exited with code 255.