3v4l.org

run code in 300+ PHP versions simultaneously
<?php $term = "100-200"; if ($term=="mpv" || $term=="bmw" || $term=="mg") echo strtoupper($term); else (1 === preg_match('~[0-9]~', $string) echo "£$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.0130.05015.74
5.4.250.0050.05415.75
5.4.240.0120.04315.61
5.4.230.0080.04815.70
5.4.220.0100.05015.59
5.4.210.0110.05215.71
5.4.200.0110.04815.80
5.4.190.0120.04215.62
5.4.180.0130.04315.65
5.4.170.0050.05015.78
5.4.160.0100.04415.71
5.4.150.0110.04815.60
5.4.140.0150.04114.19
5.4.130.0120.04114.29
5.4.120.0090.04514.25
5.4.110.0150.05614.25
5.4.100.0120.04814.30
5.4.90.0120.04114.29
5.4.80.0100.04314.31
5.4.70.0090.04214.08
5.4.60.0130.04014.24
5.4.50.0090.04414.30
5.4.40.0040.04814.19
5.4.30.0140.03914.28
5.4.20.0120.04414.18
5.4.10.0100.04614.22
5.4.00.0100.04413.62
5.3.280.0090.04813.57
5.3.270.0100.04913.59
5.3.260.0130.05413.59
5.3.250.0060.05513.65
5.3.240.0100.05513.66
5.3.230.0120.04713.70
5.3.220.0110.04513.55
5.3.210.0090.05013.55
5.3.200.0060.04713.52
5.3.190.0130.04213.56
5.3.180.0110.04513.66
5.3.170.0090.04413.58
5.3.160.0130.05113.63
5.3.150.0110.05213.52
5.3.140.0110.04913.53
5.3.130.0110.05213.65
5.3.120.0120.04513.58
5.3.110.0150.04113.53
5.3.100.0050.05112.99
5.3.90.0100.04713.03
5.3.80.0120.05213.02
5.3.70.0130.04212.96
5.3.60.0110.04112.97
5.3.50.0120.05212.91
5.3.40.0130.04512.88
5.3.30.0110.04012.81
5.3.20.0150.03812.69
5.3.10.0050.04612.58
5.3.00.0080.04712.62
5.2.170.0090.03610.07
5.2.160.0070.03610.23
5.2.150.0060.03610.18
5.2.140.0080.04610.11
5.2.130.0070.03710.02
5.2.120.0080.03910.11
5.2.110.0050.03710.07
5.2.100.0090.03310.04
5.2.90.0080.03310.07
5.2.80.0060.03810.03
5.2.70.0050.03510.02
5.2.60.0060.0399.97
5.2.50.0040.04510.04
5.2.40.0070.0359.89
5.2.30.0100.0399.89
5.2.20.0070.0359.97
5.2.10.0100.0319.91
5.2.00.0100.0329.74
5.1.60.0070.0308.95
5.1.50.0090.0279.09
5.1.40.0060.0309.04
5.1.30.0120.0269.39
5.1.20.0040.0369.32
5.1.10.0120.0299.05
5.1.00.0030.0329.03
5.0.50.0060.0247.53
5.0.40.0060.0227.40
5.0.30.0030.0397.24
5.0.20.0050.0237.23
5.0.10.0080.0267.30
5.0.00.0040.0377.21
4.4.90.0040.0186.50
4.4.80.0050.0176.48
4.4.70.0030.0196.49
4.4.60.0010.0216.48
4.4.50.0020.0206.49
4.4.40.0050.0296.46
4.4.30.0080.0156.49
4.4.20.0030.0206.53
4.4.10.0050.0196.53
4.4.00.0070.0266.49
4.3.110.0070.0156.44
4.3.100.0060.0166.44
4.3.90.0040.0196.43
4.3.80.0060.0306.40
4.3.70.0040.0186.42
4.3.60.0020.0206.42
4.3.50.0050.0216.42
4.3.40.0050.0266.38
4.3.30.0040.0185.75
4.3.20.0050.0185.74
4.3.10.0040.0185.72
4.3.00.0030.0308.21

preferences:
143.47 ms | 1394 KiB | 7 Q