3v4l.org

run code in 300+ PHP versions simultaneously
<?php define( 'FLOAT', ';\s*?q= (1|0 # 1 or 0 (\. # Literal dot ([0-9]{1,2}[1-9]| # One or Two Zeroes followed by 1...9 -OR- [0-9][1-9][0-9]?| # Zero followed by 1...9, followed by an optional 0...9 -OR- [1-9] # 1...9 followed by: ([0-9]{0,2}| # None and up to Two 0...9 -OR- [0-9][1-9]| # 0...9 and then followed by 1...9 -OR- [1-9]{1,2} # 1...9 once and up to three ) )(?![0-9]) )? # All this is optional, and refers to float range (?!\.) )' ); preg_match( sprintf( '@(?<params>%s)@x', FLOAT ), ';q=0.3444', $matches ); var_dump( $matches );

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.0080.00818.31
8.3.50.0110.00721.29
8.3.40.0180.00018.74
8.3.30.0110.00418.95
8.3.20.0080.00020.33
8.3.10.0040.00421.85
8.3.00.0050.00317.62
8.2.180.0070.01018.41
8.2.170.0070.00722.96
8.2.160.0060.01320.51
8.2.150.0050.00324.18
8.2.140.0030.00524.66
8.2.130.0050.00326.16
8.2.120.0080.00021.12
8.2.110.0030.00721.16
8.2.100.0080.00417.63
8.2.90.0000.00919.25
8.2.80.0080.00017.97
8.2.70.0040.00417.75
8.2.60.0040.00417.80
8.2.50.0040.00418.07
8.2.40.0050.00317.97
8.2.30.0000.00817.97
8.2.20.0040.00717.65
8.2.10.0050.00317.88
8.2.00.0090.00018.10
8.1.280.0170.00725.92
8.1.270.0140.00020.33
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0090.00019.29
8.1.230.0090.00317.66
8.1.220.0030.00517.74
8.1.210.0030.00618.77
8.1.200.0100.00017.23
8.1.190.0060.00317.35
8.1.180.0000.00818.10
8.1.170.0050.00320.41
8.1.160.0050.00222.02
8.1.150.0040.00418.88
8.1.140.0070.00017.53
8.1.130.0000.00717.80
8.1.120.0040.00417.55
8.1.110.0040.00417.45
8.1.100.0050.00217.56
8.1.90.0000.00717.45
8.1.80.0070.00017.59
8.1.70.0000.00717.55
8.1.60.0030.00617.69
8.1.50.0060.00317.67
8.1.40.0080.00017.66
8.1.30.0030.00517.78
8.1.20.0000.00717.72
8.1.10.0000.00817.62
8.1.00.0050.00317.62
8.0.300.0070.00018.77
8.0.290.0060.00316.88
8.0.280.0000.00718.55
8.0.270.0070.00017.24
8.0.260.0060.00017.17
8.0.250.0030.00316.96
8.0.240.0070.00017.07
8.0.230.0000.00817.09
8.0.220.0030.00316.95
8.0.210.0000.00717.00
8.0.200.0080.00216.98
8.0.190.0000.00717.04
8.0.180.0040.00417.05
8.0.170.0000.00816.92
8.0.160.0040.00417.07
8.0.150.0000.00716.98
8.0.140.0070.00016.90
8.0.130.0040.00413.46
8.0.120.0050.00317.02
8.0.110.0040.00416.98
8.0.100.0070.00016.90
8.0.90.0000.00716.86
8.0.80.0160.00016.98
8.0.70.0030.00516.87
8.0.60.0060.00317.04
8.0.50.0030.00616.81
8.0.30.0140.01016.99
8.0.20.0130.01117.45
8.0.10.0040.00417.01
8.0.00.0100.00816.81
7.4.330.0000.00615.03
7.4.320.0060.00016.70
7.4.300.0000.00616.82
7.4.290.0040.00416.66
7.4.280.0000.00816.77
7.4.270.0040.00416.74
7.4.260.0040.00716.75
7.4.250.0000.00816.53
7.4.240.0020.00516.67
7.4.230.0030.00316.70
7.4.220.0040.01416.64
7.4.210.0070.00716.61
7.4.200.0070.00016.67
7.4.160.0050.01016.58
7.4.150.0320.02117.40
7.4.140.0150.00517.86
7.4.130.0070.01116.64
7.4.120.0150.00816.71
7.4.110.0060.01616.60
7.4.100.0070.01016.65
7.4.90.0030.01916.84
7.4.80.0090.00619.39
7.4.70.0060.01216.60
7.4.60.0100.00716.61
7.4.50.0030.00516.43
7.4.40.0070.01016.52
7.4.30.0090.00816.82
7.4.00.0080.00814.82
7.3.330.0000.00513.19
7.3.320.0100.00513.16
7.3.310.0000.00716.37
7.3.300.0030.00316.32
7.3.290.0030.00316.14
7.3.280.0080.00916.29
7.3.270.0070.01017.40
7.3.260.0040.01316.43
7.3.250.0120.00716.42
7.3.240.0070.01116.38
7.3.230.0150.00616.39
7.3.210.0130.00516.40
7.3.200.0060.01019.39
7.3.190.0130.00316.56
7.3.180.0090.01216.59
7.3.170.0140.00316.32
7.3.160.0100.00716.55
7.3.10.0040.00716.43
7.3.00.0000.01116.52
7.2.330.0170.00716.53
7.2.320.0070.01016.70
7.2.310.0110.00616.80
7.2.300.0130.01016.70
7.2.290.0120.00616.77
7.2.130.0030.01016.86
7.2.120.0040.01116.91
7.2.110.0120.00316.74
7.2.100.0030.00616.90
7.2.90.0030.00716.58
7.2.80.0030.00717.00
7.2.70.0030.00616.80
7.2.60.0020.01216.70
7.2.50.0100.00617.12
7.2.40.0030.00616.73
7.2.30.0060.00616.62
7.2.20.0030.00716.99
7.2.10.0000.01017.12
7.2.00.0080.01118.26
7.1.250.0080.00316.01
7.1.200.0050.00615.76
7.1.100.0000.01118.14
7.1.70.0000.00716.96
7.1.60.0170.00719.50
7.1.50.0160.00917.08
7.1.00.0070.07322.46
7.0.200.0000.00816.91
7.0.60.0070.03720.07
7.0.50.0130.07717.85
7.0.40.0070.04020.07
7.0.30.0470.08020.20
7.0.20.0300.07320.15
7.0.10.0070.08320.11
7.0.00.0030.04320.21
5.6.280.0030.07021.12
5.6.210.0030.08720.74
5.6.200.0030.06018.22
5.6.190.0100.07020.61
5.6.180.4000.04320.27
5.6.170.0230.05020.61
5.6.160.0070.04020.40
5.6.150.0130.07718.15
5.6.140.0000.04718.07
5.6.130.0030.06718.21
5.6.120.0030.04321.10
5.6.110.0170.06320.98
5.6.100.0070.08020.95
5.6.90.0000.04720.96
5.6.80.0100.07320.38
5.5.350.0230.03320.38
5.5.340.0030.03718.02
5.5.330.0000.04720.21
5.5.320.0230.05020.17
5.5.310.0270.07020.31
5.5.300.0100.08018.01
5.5.290.0070.08318.00
5.5.280.0070.04020.93
5.5.270.0030.06720.77
5.5.260.0130.07720.75
5.5.250.0200.07320.57
5.5.240.0070.07720.31
5.4.450.0830.04319.58
5.4.440.0370.04719.57
5.4.430.1430.04719.45
5.4.420.0230.04719.68
5.4.410.0070.05718.93
5.4.400.0230.04718.51
5.4.390.0230.04318.49
5.4.380.0000.07018.66
5.4.370.0300.05018.71
5.4.360.0100.05318.49
5.4.350.0130.06718.70
5.4.340.0130.05018.51
5.4.320.0130.05318.68
5.4.310.0100.05318.71
5.4.300.0170.06718.58
5.4.290.0070.07318.68
5.4.280.0130.06018.49
5.4.270.0170.04718.66
5.4.260.0000.06318.61
5.4.250.0130.05018.62
5.4.240.0070.05718.48
5.4.230.0170.05018.70
5.4.220.0030.07018.55
5.4.210.0030.06018.70
5.4.200.0070.06016.36
5.4.190.0070.06018.57
5.4.180.0100.06718.67
5.4.170.0200.05018.70
5.4.160.0070.06018.43
5.4.150.0100.05318.58
5.4.140.0130.05016.22
5.4.130.0100.05016.17
5.4.120.0030.05316.16
5.4.110.0170.04016.27
5.4.100.0130.06716.06
5.4.90.0100.07016.29
5.4.80.0200.05316.30
5.4.70.0170.04716.03
5.4.60.0130.04716.19
5.4.50.0130.05316.24
5.4.40.0070.06016.05
5.4.30.0070.05316.31
5.4.20.0070.05316.13
5.4.10.0130.05716.13
5.4.00.0130.05015.81
5.3.290.0270.05714.72
5.3.280.0130.05714.56
5.3.270.0130.05014.59
5.3.260.0070.05714.57
5.3.250.0030.06014.55
5.3.240.0170.06314.57
5.3.230.0070.07014.51
5.3.220.0200.05314.52
5.3.210.0130.05714.61
5.3.200.0170.06314.61
5.3.190.0200.05014.52
5.3.180.0000.08014.53
5.3.170.0170.04714.66
5.3.160.0100.06314.52
5.3.150.0100.05014.65
5.3.140.0200.04314.48
5.3.130.0030.06714.52
5.3.120.0100.06314.66
5.3.110.0030.07314.53
5.3.100.0100.05714.09
5.3.90.0170.04714.11
5.3.80.0100.06714.17
5.3.70.0000.06313.98
5.3.60.0070.05714.03
5.3.50.0170.05013.93
5.3.40.0200.04014.02
5.3.30.0100.05313.98
5.3.20.0100.04713.60
5.3.10.0130.04313.64
5.3.00.0170.04713.79
5.2.170.0000.05011.21
5.2.160.0030.04311.16
5.2.150.0030.04711.18
5.2.140.0070.05011.14
5.2.130.0070.04011.05
5.2.120.0030.04711.31
5.2.110.0070.04011.31
5.2.100.0000.05011.08
5.2.90.0100.04011.07
5.2.80.0070.04311.07
5.2.70.0070.04711.06
5.2.60.0100.04011.11
5.2.50.0030.05711.00
5.2.40.0130.03311.05
5.2.30.0030.05711.00
5.2.20.0070.04311.07
5.2.10.0170.03010.95
5.2.00.0100.04010.65
5.1.60.0070.0339.99
5.1.50.0030.03710.02
5.1.40.0070.0379.93
5.1.30.0070.04310.30
5.1.20.0030.04010.39
5.1.10.0030.04010.03
5.1.00.0070.03710.13
5.0.50.0100.0238.57
5.0.40.0070.0278.39
5.0.30.0000.0478.27
5.0.20.0000.0338.39
5.0.10.0070.0278.36
5.0.00.0070.0408.35
4.4.90.0030.0235.93
4.4.80.0070.0205.97
4.4.70.0030.0235.88
4.4.60.0070.0205.92
4.4.50.0100.0175.81
4.4.40.0070.0335.86
4.4.30.0070.0205.88
4.4.20.0070.0205.86
4.4.10.0000.0275.95
4.4.00.0000.0435.93
4.3.110.0030.0235.83
4.3.100.0000.0275.82
4.3.90.0000.0235.89
4.3.80.0030.0335.77
4.3.70.0000.0235.79
4.3.60.0070.0205.82
4.3.50.0030.0235.75
4.3.40.0070.0305.86
4.3.30.0030.0204.56
4.3.20.0030.0204.58
4.3.10.0070.0234.49
4.3.00.0070.01716.04

preferences:
53.64 ms | 401 KiB | 5 Q