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"; ?> <!-- 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.04212.36
5.4.250.0040.05012.36
5.4.240.0060.03912.36
5.4.230.0060.04112.36
5.4.220.0080.03912.36
5.4.210.0060.03812.36
5.4.200.0040.04312.35
5.4.190.0060.04012.35
5.4.180.0060.04012.35
5.4.170.0080.05112.36
5.4.160.0090.04612.35
5.4.150.0070.04712.35
5.4.140.0060.04812.04
5.4.130.0070.04712.02
5.4.120.0100.04511.98
5.4.110.0050.04911.98
5.4.100.0060.04711.98
5.4.90.0050.05211.98
5.4.80.0060.05111.98
5.4.70.0060.04811.98
5.4.60.0060.04811.97
5.4.50.0110.04511.98
5.4.40.0050.05211.96
5.4.30.0040.04311.96
5.4.20.0070.04611.96
5.4.10.0080.04811.96
5.4.00.0100.03511.45
5.3.280.0120.04212.71
5.3.270.0100.05712.73
5.3.260.0080.05712.72
5.3.250.0100.05012.72
5.3.240.0090.05012.72
5.3.230.0130.04412.71
5.3.220.0060.05312.68
5.3.210.0060.05412.68
5.3.200.0060.03712.68
5.3.190.0040.04112.68
5.3.180.0120.04512.67
5.3.170.0120.04612.67
5.3.160.0070.04412.67
5.3.150.0080.05512.68
5.3.140.0140.04712.66
5.3.130.0090.05012.66
5.3.120.0070.05212.65
5.3.110.0060.05412.66
5.3.100.0080.04812.12
5.3.90.0100.04712.09
5.3.80.0040.05212.07
5.3.70.0070.04712.08
5.3.60.0070.04512.06
5.3.50.0090.04812.00
5.3.40.0080.04312.00
5.3.30.0080.04711.94
5.3.20.0090.04411.70
5.3.10.0060.04811.65
5.3.00.0100.04711.64
5.2.170.0030.0349.14
5.2.160.0050.0369.14
5.2.150.0100.0289.14
5.2.140.0050.0329.14
5.2.130.0100.0269.10
5.2.120.0080.0299.10
5.2.110.0080.0299.11
5.2.100.0080.0289.11
5.2.90.0080.0359.10
5.2.80.0050.0339.09
5.2.70.0050.0359.09
5.2.60.0050.0379.05
5.2.50.0060.0419.02
5.2.40.0070.0368.99
5.2.30.0050.0468.97
5.2.20.0060.0418.96
5.2.10.0040.0398.89
5.2.00.0050.0408.75
5.1.60.0050.0338.03
5.1.50.0080.0318.03
5.1.40.0060.0358.03
5.1.30.0090.0338.36
5.1.20.0080.0348.39
5.1.10.0030.0368.12
5.1.00.0040.0368.11
5.0.50.0040.0326.58
5.0.40.0010.0286.45
5.0.30.0090.0356.26
5.0.20.0050.0266.23
5.0.10.0040.0296.21
5.0.00.0060.0366.20
4.4.90.0020.0214.78
4.4.80.0050.0194.75
4.4.70.0030.0194.76
4.4.60.0020.0194.75
4.4.50.0010.0194.77
4.4.40.0020.0294.71
4.4.30.0030.0164.76
4.4.20.0040.0174.85
4.4.10.0030.0194.85
4.4.00.0030.0264.76
4.3.110.0020.0174.66
4.3.100.0040.0154.66
4.3.90.0030.0154.63
4.3.80.0050.0224.58
4.3.70.0030.0154.63
4.3.60.0020.0164.63
4.3.50.0030.0154.63
4.3.40.0050.0234.54
4.3.30.0020.0173.28
4.3.20.0000.0193.26
4.3.10.0040.0173.23
4.3.00.0000.01315.60

preferences:
140.38 ms | 1394 KiB | 7 Q