3v4l.org

run code in 300+ PHP versions simultaneously
<?php $term = "100-200"; if ($term=="mpv" || $term=="bmw" || $term=="mg") echo strtoupper($term); else if (1 === preg_match('~[0-9]~', $string) echo "£$term"; else { echo ucfirst($term); } ?> <!-- if(1 === preg_match('~[0-9]~', $string)){ echo "£$string"; } ?> <?php if ($term=="mpv" || $term=="bmw" || $term=="mg") echo strtoupper($term); else { echo ucfirst($term); }?> -->

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)
5.4.260.0100.05718.84
5.4.250.0100.05718.79
5.4.240.0100.05318.65
5.4.230.0030.08018.96
5.4.220.0130.06019.02
5.4.210.0130.04718.79
5.4.200.0130.05318.99
5.4.190.0130.06318.74
5.4.180.0030.06018.98
5.4.170.0200.04718.99
5.4.160.0200.05718.78
5.4.150.0200.07018.78
5.4.140.0200.05016.33
5.4.130.0130.06716.38
5.4.120.0200.06016.27
5.4.110.0170.04716.52
5.4.100.0200.04716.39
5.4.90.0070.06316.33
5.4.80.0170.04316.46
5.4.70.0100.07016.37
5.4.60.0130.04716.45
5.4.50.0230.06016.39
5.4.40.0130.06716.59
5.4.30.0030.05716.48
5.4.20.0200.05716.39
5.4.10.0200.07016.62
5.4.00.0100.07015.84
5.3.280.0070.06714.52
5.3.270.0070.06714.48
5.3.260.0030.06014.63
5.3.250.0070.05314.72
5.3.240.0130.05314.38
5.3.230.0170.06314.62
5.3.220.0170.05014.48
5.3.210.0100.05314.34
5.3.200.0200.05014.45
5.3.190.0100.05314.58
5.3.180.0100.05014.45
5.3.170.0070.08014.42
5.3.160.0170.05314.26
5.3.150.0070.05314.57
5.3.140.0170.05314.27
5.3.130.0030.05714.54
5.3.120.0170.07014.56
5.3.110.0070.05314.56
5.3.100.0130.06714.03
5.3.90.0100.05313.86
5.3.80.0070.05714.04
5.3.70.0070.07314.05
5.3.60.0230.06313.94
5.3.50.0100.05013.96
5.3.40.0170.05713.97
5.3.30.0170.05313.62
5.3.20.0100.05313.71
5.3.10.0170.05713.35
5.3.00.0130.05013.48
5.2.170.0170.06311.03
5.2.160.0100.04711.16
5.2.150.0100.04711.24
5.2.140.0070.05310.98
5.2.130.0130.05010.93
5.2.120.0170.03710.86
5.2.110.0070.03711.11
5.2.100.0130.03310.98
5.2.90.0030.04010.99
5.2.80.0170.05311.09
5.2.70.0130.04711.11
5.2.60.0100.04010.98
5.2.50.0070.05710.93
5.2.40.0070.05310.83
5.2.30.0130.03710.91
5.2.20.0070.04010.80
5.2.10.0070.04711.07
5.2.00.0070.06010.78
5.1.60.0030.0339.88
5.1.50.0070.04710.04
5.1.40.0070.0339.91
5.1.30.0030.04010.36
5.1.20.0100.05010.29
5.1.10.0030.04310.11
5.1.00.0100.0339.92
5.0.50.0100.0308.61
5.0.40.0170.0308.60
5.0.30.0130.0538.41
5.0.20.0030.0408.02
5.0.10.0070.0338.36
5.0.00.0100.0478.20
4.4.90.0070.0277.48
4.4.80.0130.0237.48
4.4.70.0200.0177.48
4.4.60.0030.0237.48
4.4.50.0000.0237.48
4.4.40.0030.0337.48
4.4.30.0000.0337.48
4.4.20.0070.0277.48
4.4.10.0000.0337.48
4.4.00.0100.0377.48
4.3.110.0000.0237.48
4.3.100.0070.0237.48
4.3.90.0070.0177.48
4.3.80.0030.0437.48
4.3.70.0030.0277.48
4.3.60.0070.0237.48
4.3.50.0030.0237.48
4.3.40.0070.0277.48
4.3.30.0030.0237.48
4.3.20.0070.0237.48
4.3.10.0030.0237.48
4.3.00.0100.0236.36

preferences:
162.27 ms | 1394 KiB | 7 Q