3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a=123 $s="$a"; if(is_numeric($s)==1) die("numerico"); echo "strlen=".strlen($s); for($i=0;$i<strlen($s);$i++) if(is_numeric($s[$i])) echo $s[$i]." in posizione $i"; ?>

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
7.2.10.0110.00819.77
7.2.00.0060.00819.66
7.1.130.0030.01718.51
7.1.120.0070.00918.23
7.1.110.0080.00817.86
7.1.100.0000.01417.75
7.1.90.0110.00817.96
7.1.80.0030.01117.71
7.1.70.0080.00616.88
7.1.60.0250.01335.10
7.1.50.0240.01734.73
7.1.40.0240.01834.32
7.1.30.0240.01634.35
7.1.20.0270.00534.37
7.1.10.0030.01316.31
7.1.00.0090.01116.53

preferences:
144.52 ms | 1394 KiB | 7 Q