3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (!preg_match('#((?<year>\d+)\s+year(s)?(,\s+)?)?((?<week>\d+)\s+week(s)?(,\s+)?)?((?<day>\d+)\s+day(s)?(,\s+)?)?((?<hour>\d+)\s+hour(s)?(,\s+)?)?((?<minute>\d+)\s+minute(s)?(,\s+)?)?((?<second>\d+)\s+second(s)?)?#', '21 minutes, 34 seconds', $match)) { var_dump($match); }

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.0070.01616.87
8.3.60.0090.01216.88
8.3.50.0100.00722.03
8.3.40.0120.00318.93
8.3.30.0070.00718.95
8.3.20.0050.00320.30
8.3.10.0070.00023.61
8.3.00.0090.00022.24
8.2.180.0120.00416.75
8.2.170.0130.00722.96
8.2.160.0100.01022.39
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0050.00322.17
8.2.110.0210.00022.28
8.2.100.0040.00717.84
8.2.90.0090.00019.07
8.2.80.0030.00617.97
8.2.70.0060.00617.75
8.2.60.0000.01018.04
8.2.50.0000.01018.07
8.2.40.0040.00419.20
8.2.30.0040.00418.11
8.2.20.0080.00017.73
8.2.10.0000.00917.78
8.2.00.0000.00817.77
8.1.280.0070.00725.92
8.1.270.0040.00423.94
8.1.260.0040.00426.35
8.1.250.0070.00728.09
8.1.240.0030.00623.96
8.1.230.0040.00819.01
8.1.220.0030.00617.74
8.1.210.0030.00618.77
8.1.200.0070.00417.35
8.1.190.0050.00317.50
8.1.180.0040.00418.10
8.1.170.0000.00818.77
8.1.160.0040.00422.04
8.1.150.0040.00418.78
8.1.140.0000.00817.57
8.1.130.0030.00317.73
8.1.120.0050.00317.60
8.1.110.0000.00817.61
8.1.100.0040.00417.62
8.1.90.0000.00817.53
8.1.80.0030.00317.61
8.1.70.0030.00317.43
8.1.60.0000.00917.71
8.1.50.0040.00417.55
8.1.40.0040.00417.64
8.1.30.0030.00517.64
8.1.20.0000.00917.75
8.1.10.0040.00417.52
8.1.00.0040.00817.57
8.0.300.0000.00718.77
8.0.290.0000.00717.28
8.0.280.0000.00718.36
8.0.270.0060.00317.17
8.0.260.0000.00716.81
8.0.250.0030.00317.01
8.0.240.0000.00716.97
8.0.230.0050.00317.11
8.0.220.0030.00317.07
8.0.210.0000.00716.95
8.0.200.0030.00316.95
8.0.190.0080.00017.02
8.0.180.0070.00016.91
8.0.170.0040.00417.06
8.0.160.0050.00217.05
8.0.150.0030.00317.03
8.0.140.0020.00516.96
8.0.130.0000.00613.48
8.0.120.0000.00817.00
8.0.110.0040.00416.90
8.0.100.0070.00016.79
8.0.90.0000.00816.89
8.0.80.0100.00717.02
8.0.70.0040.00417.11
8.0.60.0030.00617.07
8.0.50.0030.00717.01
8.0.30.0120.01017.13
8.0.20.0070.01417.43
8.0.10.0000.00717.07
8.0.00.0050.01316.90
7.4.330.0020.00315.23
7.4.320.0000.00716.68
7.4.300.0030.00316.69
7.4.290.0070.00016.68
7.4.280.0030.00516.66
7.4.270.0000.00716.68
7.4.260.0030.00516.56
7.4.250.0060.00316.64
7.4.240.0020.00616.65
7.4.230.0030.00316.84
7.4.220.0040.01216.61
7.4.210.0050.00916.67
7.4.200.0040.00416.82
7.4.190.0000.00716.76
7.4.160.0060.00916.50
7.4.150.0140.00417.40
7.4.140.0130.00817.86
7.4.130.0080.01216.64
7.4.120.0140.00516.71
7.4.110.0110.00716.66
7.4.100.0150.00316.74
7.4.90.0070.01116.53
7.4.80.0090.00916.74
7.4.70.0060.01216.86
7.4.60.0130.01016.58
7.4.50.0000.00816.75
7.4.40.0030.01022.77
7.4.30.0060.01216.55
7.4.00.0000.01415.27
7.3.330.0020.00213.09
7.3.320.0030.00313.22
7.3.310.0000.00716.13
7.3.300.0030.00316.37
7.3.290.0120.00616.32
7.3.280.0070.00916.31
7.3.270.0110.00717.40
7.3.260.0030.01316.32
7.3.250.0100.01016.68
7.3.240.0160.00016.34
7.3.230.0140.00316.39
7.3.210.0080.00916.57
7.3.200.0120.00619.39
7.3.190.0060.00316.75
7.3.180.0080.00816.61
7.3.170.0070.01016.43
7.3.160.0130.00316.41
7.3.120.0110.00414.90
7.2.330.0090.01516.68
7.2.320.0060.01216.66
7.2.310.0110.01116.61
7.2.300.0110.00716.86
7.2.290.0040.01416.70
7.1.70.0090.00017.27
7.1.60.0140.01019.29
7.1.50.0070.01716.78
7.1.00.0030.07722.49
7.0.200.0110.00416.52
7.0.140.0030.07322.19
7.0.60.0030.07020.12
7.0.50.0100.08017.91
7.0.40.0170.07719.95
7.0.30.0200.06020.05
7.0.20.0300.06020.23
7.0.10.0170.06720.08
7.0.00.0070.08720.21
5.6.280.0030.07321.07
5.6.210.0130.07320.47
5.6.200.0070.08018.08
5.6.190.0030.06720.27
5.6.180.0330.07020.48
5.6.170.0330.04720.52
5.6.160.0070.04320.49
5.6.150.0070.08018.17
5.6.140.0130.04718.16
5.6.130.0100.05018.21
5.6.120.0070.05320.96
5.6.110.0130.07720.97
5.6.100.0070.06320.89
5.6.90.0100.08020.95
5.6.80.0130.04020.37
5.6.70.4370.03720.32
5.5.350.0200.07320.42
5.5.340.0070.06017.89
5.5.330.0070.09020.36
5.5.320.0030.04720.20
5.5.310.0170.04320.31
5.5.300.0100.03318.00
5.5.290.0100.04017.93
5.5.280.0070.06720.80
5.5.270.0070.05020.83
5.5.260.0100.07720.88
5.5.250.0000.07320.79
5.5.240.0400.06320.28
5.4.450.0870.05719.58
5.4.440.0830.05019.10
5.4.430.0200.05319.56
5.4.420.0700.00019.51
5.4.410.0070.08018.88
5.4.400.0230.06318.54
5.4.390.0270.05018.72
5.4.380.0270.05318.72
5.4.370.0030.04018.54
5.4.360.0100.03318.45
5.4.350.0050.04111.97
5.4.340.0040.04211.97
5.4.320.0100.04212.46
5.4.310.0090.04612.45
5.4.300.0070.03812.46
5.4.290.0030.04712.45
5.4.280.0050.04012.33
5.4.270.0080.03712.33
5.4.260.0040.04312.33
5.4.250.0040.04412.33
5.4.240.0040.04012.33
5.4.230.0090.04512.32
5.4.220.0040.05712.32
5.4.210.0090.03612.32
5.4.200.0090.05412.32
5.4.190.0090.05112.32
5.4.180.0100.07712.32
5.4.170.0090.05312.34
5.4.160.0170.04712.33
5.4.150.0120.04312.33
5.4.140.0090.05012.01
5.4.130.0110.04712.00
5.4.120.0050.04111.96
5.4.110.0150.03711.95
5.4.100.0100.04911.95
5.4.90.0120.03711.95
5.4.80.0080.03811.96
5.4.70.0090.05111.95
5.4.60.0050.03811.95
5.4.50.0080.03611.95
5.4.40.0060.03611.94
5.4.30.0080.03511.93
5.4.20.0040.03711.94
5.4.10.0130.03111.94
5.4.00.0040.03911.43
5.3.290.0110.03912.80
5.3.280.0110.04812.71
5.3.270.0130.04312.72
5.3.260.0090.04312.72
5.3.250.0100.03812.72
5.3.240.0070.04312.71
5.3.230.0030.04512.71
5.3.220.0070.05912.68
5.3.210.0060.06012.68
5.3.200.0110.04112.68
5.3.190.0080.05012.68
5.3.180.0120.04412.67
5.3.170.0130.04912.67
5.3.160.0130.06512.68
5.3.150.0140.04912.67
5.3.140.0200.07512.66
5.3.130.0110.05712.65
5.3.120.0280.05812.66
5.3.110.0080.05412.65
5.3.100.0280.07212.12
5.3.90.0080.05012.09
5.3.80.0150.04912.07
5.3.70.0080.04012.08
5.3.60.0100.03912.07
5.3.50.0110.05012.00
5.3.40.0070.04012.00
5.3.30.0070.03511.94
5.3.20.0050.03811.72
5.3.10.0060.03711.68
5.3.00.0070.03611.68
5.2.170.0060.0319.16
5.2.160.0100.0389.16
5.2.150.0110.0379.16
5.2.140.0080.0369.16
5.2.130.0100.0429.12
5.2.120.0100.0429.12
5.2.110.0070.0419.13
5.2.100.0200.0709.13
5.2.90.0070.0529.13
5.2.80.0060.0339.13
5.2.70.0090.0389.12
5.2.60.0120.0329.08
5.2.50.0110.0489.05
5.2.40.0070.0329.03
5.2.30.0070.0349.01
5.2.20.0060.0339.00
5.2.10.0130.0428.90
5.2.00.0050.0338.76
5.1.60.0070.0288.04
5.1.50.0140.0658.04
5.1.40.0060.0508.02
5.1.30.0090.0628.37
5.1.20.0040.0378.39
5.1.10.0080.0348.12
5.1.00.0070.0378.12
5.0.50.0070.0206.59
5.0.40.0070.0216.45
5.0.30.0070.0406.27
5.0.20.0150.0476.24
5.0.10.0040.0236.22
5.0.00.0080.0446.21
4.4.90.0040.0204.78
4.4.80.0130.0434.75
4.4.70.0050.0464.76
4.4.60.0120.0204.76
4.4.50.0070.0214.77
4.4.40.0100.0504.71
4.4.30.0050.0224.76
4.4.20.0030.0234.84
4.4.10.0050.0224.85
4.4.00.0090.0564.76
4.3.110.0040.0244.67
4.3.100.0070.0274.67
4.3.90.0070.0224.64
4.3.80.0030.0354.58
4.3.70.0030.0184.63
4.3.60.0030.0164.63
4.3.50.0070.0164.63
4.3.40.0070.0234.53
4.3.30.0020.0173.27
4.3.20.0050.0223.25
4.3.10.0070.0323.21
4.3.00.0170.0176.89

preferences:
59.33 ms | 401 KiB | 5 Q