3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $i="z";preg_match("%([!#-&\(-+-0-9=@^-`~])|([EIO-RT-UWY[-]eio-rt-uwy{-}])|([\"':-;ADF-HJ-LSadf-hj-ls])|([,.-/<>-?B-CM-NVXZb-cm-nvxz])%",$i,$m);echo array_flip($m)[$i];
Output for 5.4.11 - 7.2.6
4
Output for 5.3.21 - 5.3.29
Parse error: syntax error, unexpected '[', expecting ',' or ';' in /in/jeris on line 2
Process exited with code 255.