3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = '100,100-200, 300, 320, 400-200'; $params = explode(',', $input); $ranges = array(); foreach ($params as $param) { $param = trim($param); if (strpos('-', $param) !== FALSE) { $range = explode('-', $param); } else { $range = array($param, $param); } $ranges[] = $range; } foreach ($ranges as $range) { print 'from: '. $range[0]. ' to: '. $range[1] . "\n"; }

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)
8.3.60.0090.00916.50
8.3.50.0070.01119.76
8.3.40.0210.00018.97
8.3.30.0030.01019.17
8.3.20.0110.00320.04
8.3.10.0030.00521.77
8.3.00.0040.00419.38
8.2.180.0120.00916.50
8.2.170.0140.00022.96
8.2.160.0100.01020.36
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0080.00020.87
8.2.110.0000.00822.16
8.2.100.0090.00317.78
8.2.90.0070.00019.17
8.2.80.0000.00817.97
8.2.70.0030.00717.50
8.2.60.0040.00417.80
8.2.50.0060.00318.07
8.2.40.0040.00418.05
8.2.30.0000.00718.21
8.2.20.0080.00017.66
8.2.10.0050.00318.18
8.2.00.0060.00317.71
8.1.270.0060.00323.88
8.1.260.0000.00826.35
8.1.250.0080.00028.09
8.1.240.0030.00623.87
8.1.230.0040.00818.96
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0030.00617.23
8.1.190.0040.00417.13
8.1.180.0050.00318.10
8.1.170.0030.00518.64
8.1.160.0000.00822.10
8.1.150.0040.00418.89
8.1.140.0070.00017.43
8.1.130.0030.00319.62
8.1.120.0080.00017.51
8.1.110.0050.00217.43
8.1.100.0070.00017.49
8.1.90.0000.00817.46
8.1.80.0070.00017.44
8.1.70.0040.00417.41
8.1.60.0000.00817.49
8.1.50.0000.00717.50
8.1.40.0040.00417.55
8.1.30.0000.00817.68
8.1.20.0030.00617.60
8.1.10.0040.00417.61
8.1.00.0030.00517.52
8.0.300.0000.00718.77
8.0.290.0000.00716.75
8.0.280.0000.00718.38
8.0.270.0040.00417.15
8.0.260.0070.00017.28
8.0.250.0030.00316.86
8.0.240.0030.00316.95
8.0.230.0000.00716.80
8.0.220.0030.00316.89
8.0.210.0000.00716.93
8.0.200.0060.00016.86
8.0.190.0000.00717.02
8.0.180.0040.00416.94
8.0.170.0000.00816.84
8.0.160.0000.00716.96
8.0.150.0000.00816.75
8.0.140.0070.00316.83
8.0.130.0060.00013.39
8.0.120.0050.00316.81
8.0.110.0000.00816.92
8.0.100.0040.00416.89
8.0.90.0000.00716.79
8.0.80.0100.00616.89
8.0.70.0000.00716.95
8.0.60.0040.00416.93
8.0.50.0000.00716.83
8.0.30.0090.01317.05
8.0.20.0110.00717.45
8.0.10.0000.00716.83
8.0.00.0080.01216.78
7.4.330.0060.00015.14
7.4.320.0060.00016.63
7.4.300.0000.00616.60
7.4.290.0030.00316.54
7.4.280.0050.00316.52
7.4.270.0000.00816.64
7.4.260.0000.00716.43
7.4.250.0000.00716.63
7.4.240.0030.00316.52
7.4.230.0000.00716.73
7.4.220.0150.00016.56
7.4.210.0080.00516.50
7.4.200.0090.00016.58
7.4.160.0090.00616.51
7.4.150.0100.00717.40
7.4.140.0110.00517.86
7.4.130.0080.00816.75
7.4.120.0110.00616.58
7.4.110.0090.01516.44
7.4.100.0150.00316.61
7.4.90.0040.01316.63
7.4.80.0100.00719.39
7.4.70.0160.00016.41
7.4.60.0100.00616.30
7.4.50.0060.00316.56
7.4.40.0090.00916.47
7.4.30.0130.00316.77
7.4.00.0090.00315.02
7.3.330.0050.00013.09
7.3.320.0020.00213.29
7.3.310.0030.00316.19
7.3.300.0000.00716.35
7.3.290.0120.00316.39
7.3.280.0080.00916.27
7.3.270.0180.00017.40
7.3.260.0030.01316.63
7.3.240.0080.01116.45
7.3.230.0180.00016.42
7.3.210.0100.00716.64
7.3.200.0040.01419.39
7.3.190.0160.00016.43
7.3.180.0060.00916.59
7.3.170.0080.00816.46
7.3.160.0070.01016.54
7.3.120.0030.01314.94
7.3.110.0080.00415.05
7.3.100.0060.01214.61
7.3.90.0100.00714.85
7.3.80.0130.00314.86
7.3.70.0080.00815.04
7.3.60.0070.01014.76
7.3.50.0070.01014.86
7.3.40.0120.00314.91
7.3.30.0070.01014.89
7.3.20.0100.00316.58
7.3.10.0090.00316.66
7.3.00.0080.00416.82
7.2.330.0120.00616.72
7.2.320.0090.01216.70
7.2.310.0100.00716.56
7.2.300.0120.01216.80
7.2.290.0080.01116.55
7.2.240.0060.00314.86
7.2.230.0080.00815.10
7.2.220.0030.01415.29
7.2.210.0160.00015.02
7.2.200.0030.01315.18
7.2.190.0080.00815.02
7.2.180.0060.00615.19
7.2.170.0030.01115.14
7.2.160.0090.00614.91
7.2.150.0030.01217.10
7.2.140.0080.00817.01
7.2.130.0100.00316.89
7.2.120.0070.01117.02
7.2.110.0130.00317.00
7.2.100.0100.00317.02
7.2.90.0000.01016.98
7.2.80.0000.01616.84
7.2.70.0060.00316.84
7.2.60.0000.01517.06
7.2.50.0070.00716.87
7.2.40.0130.00317.02
7.2.30.0000.01016.97
7.2.20.0030.01317.16
7.2.10.0030.00917.05
7.2.00.0040.00918.24
7.1.330.0090.00615.96
7.1.320.0000.01415.70
7.1.310.0030.00715.80
7.1.300.0040.00815.75
7.1.290.0090.00915.66
7.1.280.0060.00915.77
7.1.270.0100.00716.02
7.1.260.0060.00315.95
7.1.250.0000.00915.68
7.1.100.0030.00918.19
7.1.70.0000.00717.35
7.1.60.0070.01119.40
7.1.50.0120.00916.82
7.1.00.0030.07722.44
7.0.200.0000.00716.56
7.0.140.0030.07321.97
7.0.60.0070.08019.76
7.0.50.0100.06017.80
7.0.40.0070.06020.23
7.0.30.0230.08320.30
7.0.20.0330.05720.17
7.0.10.0170.07720.12
7.0.00.0070.07020.00
5.6.280.0000.07720.92
5.6.210.0070.07720.54
5.6.200.0100.08318.16
5.6.190.0130.04320.60
5.6.180.3770.04320.39
5.6.170.0230.06720.71
5.6.160.0100.07020.61
5.6.150.0030.04318.18
5.6.140.0070.08318.22
5.6.130.0070.03718.07
5.6.120.0100.05721.14
5.6.110.0070.04021.00
5.6.100.0170.07320.99
5.6.90.0130.07721.01
5.6.80.0070.08020.50
5.6.70.3830.04020.50
5.5.350.0300.06020.33
5.5.340.0030.06017.99
5.5.330.0030.06720.25
5.5.320.3230.04720.43
5.5.310.0430.07020.28
5.5.300.0030.08717.94
5.5.290.0070.06017.98
5.5.280.0030.08320.74
5.5.270.0070.04720.79
5.5.260.0130.08320.87
5.5.250.0100.08320.54
5.5.240.0330.06720.35
5.4.450.0400.04319.42
5.4.440.0430.04719.41
5.4.430.0230.05019.10
5.4.420.0100.04319.38
5.4.410.0330.04719.28
5.4.400.0200.04019.06
5.4.390.0230.05018.74
5.4.380.0130.05318.69
5.4.370.0130.05318.61
5.4.360.0200.04318.69
5.4.350.0170.05018.59
5.4.340.0230.06318.58
5.4.320.0060.03712.45
5.4.310.0040.06012.45
5.4.300.0140.04612.46
5.4.290.0110.09812.45
5.4.280.0080.05712.35
5.4.270.0140.05812.35
5.4.260.0100.06412.35
5.4.250.0220.06412.35
5.4.240.0080.05112.35
5.4.230.0060.05912.34
5.4.220.0110.06112.34
5.4.210.0050.05012.34
5.4.200.0070.05412.34
5.4.190.0070.04212.34
5.4.180.0090.04812.34
5.4.170.0090.04312.35
5.4.160.0120.06912.34
5.4.150.0090.03812.34
5.4.140.0080.04812.03
5.4.130.0060.04912.01
5.4.120.0100.06811.97
5.4.110.0140.07011.97
5.4.100.0170.06011.97
5.4.90.0210.10611.96
5.4.80.0140.05811.97
5.4.70.0070.04011.96
5.4.60.0100.05311.96
5.4.50.0140.04811.96
5.4.40.0160.07111.95
5.4.30.0230.05611.95
5.4.20.0070.06311.95
5.4.10.0080.04511.95
5.4.00.0080.07511.44
5.3.290.0060.04012.80
5.3.280.0220.05012.71
5.3.270.0120.08012.72
5.3.260.0230.08312.72
5.3.250.0080.07612.72
5.3.240.0090.04812.72
5.3.230.0110.04212.71
5.3.220.0210.10512.68
5.3.210.0090.05812.68
5.3.200.0130.08112.68
5.3.190.0270.07812.68
5.3.180.0230.09412.68
5.3.170.0150.07612.67
5.3.160.0090.05012.68
5.3.150.0260.07212.68
5.3.140.0070.04312.66
5.3.130.0160.06312.66
5.3.120.0170.05712.66
5.3.110.0120.05912.65
5.3.100.0110.05212.12
5.3.90.0050.04812.08
5.3.80.0140.10312.08
5.3.70.0100.06212.08
5.3.60.0170.08812.07
5.3.50.0090.04312.00
5.3.40.0120.04412.00
5.3.30.0090.04011.95
5.3.20.0080.03611.73
5.3.10.0110.04811.69
5.3.00.0070.05411.68
5.2.170.0060.0339.18
5.2.160.0090.0269.18
5.2.150.0060.0339.18
5.2.140.0060.0319.18
5.2.130.0070.0398.96
5.2.120.0060.0459.14
5.2.110.0140.0309.14
5.2.100.0060.0309.14
5.2.90.0070.0289.14
5.2.80.0050.0329.13
5.2.70.0060.0309.14
5.2.60.0090.0329.09
5.2.50.0080.0289.06
5.2.40.0040.0309.03
5.2.30.0010.0349.02
5.2.20.0060.0289.00
5.2.10.0090.0378.93
5.2.00.0070.0418.79
5.1.60.0070.0278.07
5.1.50.0070.0248.07
5.1.40.0070.0248.05
5.1.30.0030.0398.40
5.1.20.0040.0338.42
5.1.10.0090.0328.14
5.1.00.0080.0358.14
5.0.50.0060.0206.63
5.0.40.0040.0206.49
5.0.30.0050.0306.30
5.0.20.0050.0256.27
5.0.10.0050.0216.25
5.0.00.0090.0366.24
4.4.90.0050.0254.78
4.4.80.0080.0174.75
4.4.70.0030.0204.75
4.4.60.0040.0204.75
4.4.50.0050.0224.77
4.4.40.0060.0284.71
4.4.30.0040.0214.76
4.4.20.0050.0224.84
4.4.10.0030.0234.85
4.4.00.0060.0304.76
4.3.110.0040.0224.67
4.3.100.0040.0204.66
4.3.90.0020.0154.64
4.3.80.0040.0264.59
4.3.70.0030.0214.63
4.3.60.0060.0144.63
4.3.50.0030.0194.63
4.3.40.0040.0304.53
4.3.30.0020.0233.30
4.3.20.0010.0183.27
4.3.10.0020.0163.23
4.3.00.0070.02015.91

preferences:
64.19 ms | 400 KiB | 5 Q