3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '--'; $doesNotMatchInPhp7 = '/(?|(---)|(-))\1/'; $matchesInPhp7 = '/(?|(-)|(---))\1/'; var_dump(preg_match($doesNotMatchInPhp7, $string)); var_dump(preg_match($matchesInPhp7, $string));

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.0140.00718.31
8.3.50.0120.00918.17
8.3.40.0070.00718.98
8.3.30.0070.00718.71
8.3.20.0070.00019.26
8.3.10.0070.00021.91
8.3.00.0050.00319.67
8.2.180.0030.01325.92
8.2.170.0110.00422.96
8.2.160.0070.01019.21
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0070.00022.20
8.2.120.0040.00426.35
8.2.110.0090.00020.51
8.2.100.0090.00317.91
8.2.90.0080.00019.05
8.2.80.0080.00017.97
8.2.70.0050.00317.63
8.2.60.0000.00817.80
8.2.50.0040.00418.10
8.2.40.0000.00820.47
8.2.30.0000.00719.27
8.2.20.0050.00218.02
8.2.10.0040.00418.03
8.2.00.0040.00418.20
8.1.280.0110.00425.92
8.1.270.0080.00022.09
8.1.260.0050.00326.35
8.1.250.0070.00028.09
8.1.240.0100.00022.16
8.1.230.0120.00017.83
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0040.00417.48
8.1.190.0030.00617.22
8.1.180.0080.00018.10
8.1.170.0030.00518.68
8.1.160.0070.00018.86
8.1.150.0040.00420.16
8.1.140.0040.00419.54
8.1.130.0000.00718.76
8.1.120.0000.00817.52
8.1.110.0000.00817.43
8.1.100.0030.00617.47
8.1.90.0050.00217.61
8.1.80.0060.00317.39
8.1.70.0000.00717.46
8.1.60.0000.00817.59
8.1.50.0070.00017.64
8.1.40.0000.00817.50
8.1.30.0050.00317.64
8.1.20.0040.00417.74
8.1.10.0000.00717.62
8.1.00.0000.00817.54
8.0.300.0000.00818.77
8.0.290.0000.00816.75
8.0.280.0030.00318.39
8.0.270.0070.00017.12
8.0.260.0070.00018.95
8.0.250.0070.00016.94
8.0.240.0030.00317.09
8.0.230.0070.00017.05
8.0.220.0050.00316.91
8.0.210.0000.00816.98
8.0.200.0070.00016.94
8.0.190.0030.00616.99
8.0.180.0050.00316.98
8.0.170.0050.00316.90
8.0.160.0050.00316.88
8.0.150.0070.00316.98
8.0.140.0030.00316.81
8.0.130.0060.00013.41
8.0.120.0040.00416.88
8.0.110.0000.00817.04
8.0.100.0040.00417.01
8.0.90.0000.00816.84
8.0.80.0060.00916.96
8.0.70.0080.00016.82
8.0.60.0070.00016.84
8.0.50.0070.00016.97
8.0.30.0110.00817.21
8.0.20.0130.00617.40
8.0.10.0000.00817.10
8.0.00.0090.00916.82
7.4.330.0050.00015.55
7.4.320.0000.00616.68
7.4.300.0040.00416.56
7.4.290.0030.00316.75
7.4.280.0040.00416.73
7.4.270.0070.00016.76
7.4.260.0030.00616.63
7.4.250.0030.00316.63
7.4.240.0000.00716.74
7.4.230.0000.00716.81
7.4.220.0200.00316.64
7.4.210.0080.00816.80
7.4.200.0000.00716.83
7.4.160.0100.00516.67
7.4.150.0060.01117.40
7.4.140.0090.01317.86
7.4.130.0090.01616.55
7.4.120.0090.01016.63
7.4.110.0080.00816.60
7.4.100.0090.00916.70
7.4.90.0000.01816.86
7.4.80.0150.00319.39
7.4.70.0100.01016.48
7.4.60.0030.01316.82
7.4.50.0070.00416.67
7.4.40.0060.01016.69
7.4.30.0150.00316.53
7.4.00.0030.01515.11
7.3.330.0000.00513.00
7.3.320.0000.00513.02
7.3.310.0000.00716.39
7.3.300.0030.00316.15
7.3.290.0030.00316.27
7.3.280.0070.01016.29
7.3.270.0060.01817.40
7.3.260.0070.01316.49
7.3.240.0170.00516.47
7.3.230.0070.01016.66
7.3.210.0070.01016.68
7.3.200.0130.00716.62
7.3.190.0140.00316.38
7.3.180.0080.00816.71
7.3.170.0070.01116.73
7.3.160.0060.00916.50
7.2.330.0080.00816.49
7.2.320.0030.01316.63
7.2.310.0000.01816.34
7.2.300.0150.00616.57
7.2.290.0160.00816.50
7.2.60.0100.00316.63
7.2.00.0320.01219.62
7.1.200.0040.01115.54
7.1.70.0030.00317.43
7.1.60.0000.01017.42
7.1.50.0030.01017.42
7.1.40.0000.01317.42
7.1.30.0070.00417.42
7.1.20.0030.01017.42
7.1.10.0000.00717.42
7.1.00.0000.00817.42
7.0.200.0030.00317.42
7.0.190.0030.00917.42
7.0.180.0000.01217.42
7.0.170.0040.00417.42
7.0.160.0050.00517.42
7.0.150.0030.00617.42
7.0.140.0000.00817.42
7.0.130.0000.00817.42
7.0.120.0030.00517.42
7.0.110.0000.01017.42
7.0.100.0000.00817.42
7.0.90.0070.00017.42
7.0.80.0000.00817.42
7.0.70.0000.01017.42
7.0.60.0040.00717.42
7.0.50.0000.00817.42
7.0.40.0000.00917.42
7.0.30.0030.00617.42
7.0.20.0000.00817.42
7.0.10.0030.00517.42
7.0.00.0000.00817.42

preferences:
56.89 ms | 401 KiB | 5 Q