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.70.0090.01218.43
8.3.60.0100.00716.50
8.3.50.0140.00422.95
8.3.40.0090.00618.83
8.3.30.0140.00319.21
8.3.20.0110.00420.28
8.3.10.0040.00423.48
8.3.00.0030.00517.59
8.2.180.0140.00418.03
8.2.170.0190.00322.96
8.2.160.0120.00320.39
8.2.150.0000.00724.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0080.00020.90
8.2.110.0100.00022.25
8.2.100.0000.01117.68
8.2.90.0050.00317.91
8.2.80.0040.00417.97
8.2.70.0030.00617.63
8.2.60.0000.00918.16
8.2.50.0070.00318.10
8.2.40.0000.01020.48
8.2.30.0000.00719.50
8.2.20.0070.00017.76
8.2.10.0040.00418.14
8.2.00.0030.00617.65
8.1.280.0120.00925.92
8.1.270.0050.00324.04
8.1.260.0070.00026.35
8.1.250.0050.00228.09
8.1.240.0050.00524.04
8.1.230.0060.00620.84
8.1.220.0050.00317.79
8.1.210.0050.00319.05
8.1.200.0060.00317.34
8.1.190.0040.00417.23
8.1.180.0000.00918.10
8.1.170.0080.00018.54
8.1.160.0000.00820.90
8.1.150.0050.00318.94
8.1.140.0000.00717.36
8.1.130.0000.00719.71
8.1.120.0040.00417.55
8.1.110.0000.00817.50
8.1.100.0000.00717.46
8.1.90.0000.00717.46
8.1.80.0000.00717.46
8.1.70.0080.00017.35
8.1.60.0000.00717.58
8.1.50.0040.00417.52
8.1.40.0000.00817.57
8.1.30.0000.00817.63
8.1.20.0000.00817.73
8.1.10.0000.00717.48
8.1.00.0040.00417.48
8.0.300.0040.00419.93
8.0.290.0040.00416.75
8.0.280.0030.00318.46
8.0.270.0040.00417.29
8.0.260.0000.00817.18
8.0.250.0030.00316.85
8.0.240.0030.00316.99
8.0.230.0050.00316.84
8.0.220.0000.00616.94
8.0.210.0000.00716.89
8.0.200.0000.00616.88
8.0.190.0030.00316.95
8.0.180.0040.00416.85
8.0.170.0040.00416.94
8.0.160.0080.00016.78
8.0.150.0040.00416.86
8.0.140.0060.00316.90
8.0.130.0000.00513.33
8.0.120.0040.00416.89
8.0.110.0040.00416.89
8.0.100.0040.00416.74
8.0.90.0040.00416.94
8.0.80.0120.00616.88
8.0.70.0040.00416.77
8.0.60.0000.00716.76
8.0.50.0030.00616.79
8.0.30.0120.01117.17
8.0.20.0090.01017.40
8.0.10.0030.00316.82
8.0.00.0080.01316.77
7.4.330.0050.00015.00
7.4.320.0030.00316.47
7.4.300.0030.00516.64
7.4.290.0030.00316.54
7.4.280.0020.00516.42
7.4.270.0040.00416.42
7.4.260.0030.00316.61
7.4.250.0020.00516.48
7.4.240.0050.00216.58
7.4.230.0000.00716.41
7.4.220.0060.00916.56
7.4.210.0120.00316.61
7.4.200.0070.00016.64
7.4.160.0030.01316.62
7.4.150.0060.01217.40
7.4.140.0050.01217.86
7.4.130.0110.00616.47
7.4.120.0100.00716.53
7.4.110.0140.00516.61
7.4.100.0060.01416.64
7.4.90.0070.01116.49
7.4.80.0060.01019.39
7.4.70.0050.01416.46
7.4.60.0100.00716.51
7.4.50.0000.00416.62
7.4.40.0180.00016.71
7.4.30.0070.01016.45
7.4.00.0100.00315.22
7.3.330.0030.00313.15
7.3.320.0020.00213.19
7.3.310.0030.00316.39
7.3.300.0000.00716.28
7.3.290.0100.01016.23
7.3.280.0070.01016.34
7.3.270.0180.00017.40
7.3.260.0080.00816.34
7.3.250.0140.00316.48
7.3.240.0070.01316.63
7.3.230.0120.00616.43
7.3.210.0170.00316.59
7.3.200.0190.00019.39
7.3.190.0100.00716.59
7.3.180.0130.00316.48
7.3.170.0070.01316.43
7.3.160.0120.00316.42
7.3.120.0090.00614.65
7.3.110.0030.00714.60
7.3.100.0070.00714.78
7.3.90.0100.00314.88
7.3.80.0070.00314.75
7.3.70.0080.00814.88
7.3.60.0120.00314.91
7.3.50.0090.00915.04
7.3.40.0030.01414.75
7.3.30.0070.00714.57
7.3.20.0000.01116.67
7.3.10.0040.00716.88
7.3.00.0040.00716.56
7.2.330.0140.00516.85
7.2.320.0100.00616.86
7.2.310.0070.01116.54
7.2.300.0060.01216.60
7.2.290.0080.00816.58
7.2.240.0070.01015.23
7.2.230.0100.00315.21
7.2.220.0100.00315.01
7.2.210.0000.01415.12
7.2.200.0070.00415.15
7.2.190.0070.01115.14
7.2.180.0110.00715.20
7.2.170.0030.01314.76
7.2.160.0110.00714.77
7.2.150.0120.00316.79
7.2.140.0060.01017.05
7.2.130.0100.00616.95
7.2.120.0060.00617.03
7.2.110.0060.00917.03
7.2.100.0070.00717.14
7.2.90.0040.01117.11
7.2.80.0060.00616.84
7.2.70.0000.01416.87
7.2.60.0110.00716.76
7.2.50.0100.00717.15
7.2.40.0000.01617.04
7.2.30.0090.00917.05
7.2.20.0030.00716.85
7.2.10.0000.01516.90
7.2.00.0030.01018.14
7.1.330.0110.00415.95
7.1.320.0070.00715.78
7.1.310.0080.00815.95
7.1.300.0060.00315.89
7.1.290.0000.01416.00
7.1.280.0040.01115.58
7.1.270.0040.01215.91
7.1.260.0070.00715.91
7.1.250.0030.01215.89
7.1.100.0070.00318.12
7.1.70.0040.00417.21
7.1.60.0110.01419.40
7.1.50.0040.01817.03
7.1.00.0000.08022.43
7.0.200.0030.00716.77
7.0.140.0070.06721.95
7.0.60.0070.08019.91
7.0.50.0030.07317.90
7.0.40.0030.08720.24
7.0.30.0270.06320.35
7.0.20.0300.06720.16
7.0.10.0070.06320.04
7.0.00.0070.03720.19
5.6.280.0070.07020.78
5.6.210.0070.07320.53
5.6.200.0130.08018.17
5.6.190.0070.04720.60
5.6.180.0230.04720.59
5.6.170.0230.08020.40
5.6.160.0130.06020.38
5.6.150.0030.08318.12
5.6.140.0030.05018.11
5.6.130.0030.04318.14
5.6.120.0030.06320.96
5.6.110.0100.08321.10
5.6.100.0000.09021.01
5.6.90.0070.07320.98
5.6.80.0100.07720.40
5.5.350.2700.03320.33
5.5.340.0130.05017.96
5.5.330.0100.08020.28
5.5.320.0200.08320.28
5.5.310.0330.07320.50
5.5.300.0200.05717.91
5.5.290.0100.07717.87
5.5.280.0030.04320.77
5.5.270.0100.08320.92
5.5.260.0130.07720.87
5.5.250.0070.03720.58
5.5.240.0030.07720.21
5.4.450.0730.05019.48
5.4.440.1170.05719.55
5.4.430.0830.05019.21
5.4.420.0370.05719.32
5.4.410.0400.05719.20
5.4.400.0070.05319.13
5.4.390.0570.06019.17
5.4.380.0170.05318.71
5.4.370.0300.05318.65
5.4.360.0200.05318.63
5.4.350.0040.04111.98
5.4.340.0100.04711.97
5.4.320.0090.04412.46
5.4.310.0070.04912.45
5.4.300.0060.05012.45
5.4.290.0100.04912.45
5.4.280.0090.04612.35
5.4.270.0050.05112.35
5.4.260.0060.04212.35
5.4.250.0060.03912.35
5.4.240.0040.04212.35
5.4.230.0100.04412.34
5.4.220.0090.04112.34
5.4.210.0100.04112.34
5.4.200.0070.05012.34
5.4.190.0100.05112.34
5.4.180.0060.04112.34
5.4.170.0160.06212.35
5.4.160.0060.03812.34
5.4.150.0060.03712.34
5.4.140.0060.04312.03
5.4.130.0070.05112.02
5.4.120.0070.04411.97
5.4.110.0040.05211.97
5.4.100.0110.05911.97
5.4.90.0080.08911.97
5.4.80.0110.04711.97
5.4.70.0050.05811.96
5.4.60.0070.04211.96
5.4.50.0110.03411.96
5.4.40.0070.03711.95
5.4.30.0050.03611.95
5.4.20.0070.04511.95
5.4.10.0060.04411.95
5.4.00.0070.04311.44
5.3.290.0060.04112.80
5.3.280.0050.04312.71
5.3.270.0100.04712.72
5.3.260.0100.05212.72
5.3.250.0090.05212.72
5.3.240.0110.04712.72
5.3.230.0040.04512.71
5.3.220.0060.04912.68
5.3.210.0110.05512.68
5.3.200.0030.04112.68
5.3.190.0110.04412.68
5.3.180.0080.04912.67
5.3.170.0040.03912.66
5.3.160.0090.03412.68
5.3.150.0080.03712.67
5.3.140.0090.03612.66
5.3.130.0060.05312.66
5.3.120.0090.04812.66
5.3.110.0080.04812.66
5.3.100.0100.04612.12
5.3.90.0210.07212.08
5.3.80.0090.03712.07
5.3.70.0090.03812.07
5.3.60.0090.03512.07
5.3.50.0040.04012.00
5.3.40.0040.04012.00
5.3.30.0070.03411.95
5.3.20.0070.04311.73
5.3.10.0070.03411.69
5.3.00.0050.05211.68
5.2.170.0080.0429.18
5.2.160.0080.0299.18
5.2.150.0120.0329.18
5.2.140.0040.0329.18
5.2.130.0040.0329.14
5.2.120.0080.0449.14
5.2.110.0040.0329.14
5.2.100.0080.0279.15
5.2.90.0070.0279.14
5.2.80.0070.0299.13
5.2.70.0060.0369.14
5.2.60.0080.0359.08
5.2.50.0080.0389.05
5.2.40.0050.0319.04
5.2.30.0020.0409.02
5.2.20.0050.0309.00
5.2.10.0070.0328.92
5.2.00.0040.0418.79
5.1.60.0100.0328.07
5.1.50.0150.0708.06
5.1.40.0080.0318.05
5.1.30.0050.0378.40
5.1.20.0050.0388.41
5.1.10.0150.0388.14
5.1.00.0150.0698.14
5.0.50.0030.0296.63
5.0.40.0050.0246.48
5.0.30.0030.0346.30
5.0.20.0040.0226.27
5.0.10.0030.0276.24
5.0.00.0030.0326.24
4.4.90.0030.0174.78
4.4.80.0040.0214.76
4.4.70.0020.0214.75
4.4.60.0060.0304.76
4.4.50.0080.0244.77
4.4.40.0060.0324.71
4.4.30.0050.0204.76
4.4.20.0060.0154.85
4.4.10.0060.0174.85
4.4.00.0010.0314.76
4.3.110.0050.0184.66
4.3.100.0020.0234.67
4.3.90.0050.0214.64
4.3.80.0030.0264.58
4.3.70.0040.0174.63
4.3.60.0040.0204.63
4.3.50.0030.0204.63
4.3.40.0020.0244.54
4.3.30.0030.0163.29
4.3.20.0030.0153.27
4.3.10.0010.0173.23
4.3.00.0100.0277.06

preferences:
34.04 ms | 401 KiB | 5 Q