3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "100-200"; if ($term=="mpv" || $term=="bmw" || $term=="mg") echo strtoupper($term); else if (1 === preg_match('~[0-9]~', $string) echo "£$string"; 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.0070.06718.91
5.4.250.0030.05718.94
5.4.240.0130.06318.83
5.4.230.0130.05319.01
5.4.220.0000.08718.93
5.4.210.0070.05318.94
5.4.200.0100.05318.94
5.4.190.0100.05018.96
5.4.180.0100.06318.98
5.4.170.0000.06019.01
5.4.160.0100.06718.88
5.4.150.0070.05718.93
5.4.140.0100.05016.39
5.4.130.0070.04716.46
5.4.120.0070.04716.55
5.4.110.0070.05016.48
5.4.100.0070.05016.41
5.4.90.0070.04716.45
5.4.80.0270.04716.35
5.4.70.0100.05716.61
5.4.60.0170.06016.45
5.4.50.0000.05316.38
5.4.40.0100.04716.51
5.4.30.0130.05316.30
5.4.20.0030.05716.44
5.4.10.0270.05016.45
5.4.00.0130.06015.83
5.3.280.0100.06714.60
5.3.270.0070.07314.61
5.3.260.0270.05314.66
5.3.250.0030.05314.46
5.3.240.0070.04714.64
5.3.230.0030.05714.47
5.3.220.0070.05014.58
5.3.210.0030.05314.58
5.3.200.0030.05014.66
5.3.190.0030.06714.57
5.3.180.0100.05314.58
5.3.170.0100.05014.63
5.3.160.0070.05014.57
5.3.150.0030.05714.57
5.3.140.0070.04714.55
5.3.130.0030.05714.32
5.3.120.0070.08014.42
5.3.110.0100.06714.39
5.3.100.0130.05714.04
5.3.90.0100.06313.96
5.3.80.0170.04314.11
5.3.70.0130.06314.04
5.3.60.0130.06014.00
5.3.50.0230.05713.91
5.3.40.0070.06313.96
5.3.30.0100.06713.76
5.3.20.0070.06713.39
5.3.10.0100.04313.74
5.3.00.0130.05313.66
5.2.170.0000.04711.07
5.2.160.0130.03711.04
5.2.150.0030.04311.29
5.2.140.0070.06011.02
5.2.130.0070.04010.98
5.2.120.0100.03711.03
5.2.110.0030.05711.25
5.2.100.0000.04711.00
5.2.90.0100.03711.02
5.2.80.0000.06011.09
5.2.70.0030.06310.99
5.2.60.0030.06011.07
5.2.50.0100.04011.04
5.2.40.0030.04011.02
5.2.30.0030.05311.13
5.2.20.0070.03710.79
5.2.10.0100.03711.02
5.2.00.0000.06310.80
5.1.60.0070.03010.06
5.1.50.0000.05310.04
5.1.40.0070.0339.75
5.1.30.0030.05310.17
5.1.20.0000.04010.44
5.1.10.0030.04710.21
5.1.00.0070.03010.15
5.0.50.0070.0238.50
5.0.40.0000.0308.44
5.0.30.0030.0578.37
5.0.20.0000.0278.16
5.0.10.0070.0308.16
5.0.00.0000.0438.30
4.4.90.0030.0307.30
4.4.80.0000.0207.30
4.4.70.0030.0207.30
4.4.60.0000.0237.30
4.4.50.0030.0307.30
4.4.40.0030.0337.30
4.4.30.0000.0237.30
4.4.20.0000.0277.30
4.4.10.0030.0237.30
4.4.00.0030.0337.30
4.3.110.0030.0277.30
4.3.100.0000.0237.30
4.3.90.0000.0237.30
4.3.80.0000.0477.30
4.3.70.0000.0307.30
4.3.60.0000.0207.30
4.3.50.0030.0207.30
4.3.40.0070.0307.30
4.3.30.0070.0177.30
4.3.20.0000.0237.30
4.3.10.0030.0207.30
4.3.00.0130.0177.80

preferences:
145.96 ms | 939 KiB | 8 Q