3v4l.org

run code in 300+ PHP versions simultaneously
<?php ini_set("pcre.jit", 0); $string = '--'; $doesNotMatchInPhp7 = '/(?|(---)|(-))\1$/'; $matchesInPhp7 = '/(?|(-)|(---))\1$/'; var_dump(preg_match($doesNotMatchInPhp7, $string)); var_dump(preg_last_error()); 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.0100.01016.63
8.3.50.0070.01416.24
8.3.40.0070.00718.56
8.3.30.0080.00818.54
8.3.20.0040.00419.21
8.3.10.0000.00821.91
8.3.00.0050.00319.66
8.2.180.0090.00625.92
8.2.170.0040.01122.96
8.2.160.0080.01219.08
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0070.00020.52
8.2.120.0060.00326.35
8.2.110.0100.00020.51
8.2.100.0070.00717.53
8.2.90.0080.00017.75
8.2.80.0040.00418.66
8.2.70.0030.00717.63
8.2.60.0000.00917.80
8.2.50.0030.00618.07
8.2.40.0000.00819.88
8.2.30.0040.00417.87
8.2.20.0040.00417.89
8.2.10.0050.00217.91
8.2.00.0040.00418.17
8.1.280.0040.01125.92
8.1.270.0000.00823.79
8.1.260.0090.00026.35
8.1.250.0080.00028.09
8.1.240.0060.00319.01
8.1.230.0070.00417.77
8.1.220.0040.00417.76
8.1.210.0000.00818.77
8.1.200.0000.00817.10
8.1.190.0040.00417.22
8.1.180.0040.00418.10
8.1.170.0030.00618.57
8.1.160.0040.00418.82
8.1.150.0040.00420.07
8.1.140.0080.00019.41
8.1.130.0000.00718.74
8.1.120.0040.00417.38
8.1.110.0030.00717.42
8.1.100.0000.00817.44
8.1.90.0000.00817.39
8.1.80.0080.00017.42
8.1.70.0030.00317.27
8.1.60.0030.00617.56
8.1.50.0000.00817.51
8.1.40.0040.00417.45
8.1.30.0060.00717.60
8.1.20.0070.00017.64
8.1.10.0040.00417.43
8.1.00.0000.00817.39
8.0.300.0000.00818.77
8.0.290.0040.00416.75
8.0.280.0030.00318.34
8.0.270.0070.00017.17
8.0.260.0000.00619.00
8.0.250.0000.00916.96
8.0.240.0090.00316.93
8.0.230.0030.00416.90
8.0.220.0000.00716.79
8.0.210.0040.00416.87
8.0.200.0000.00716.81
8.0.190.0040.00416.84
8.0.180.0040.00416.87
8.0.170.0000.00716.93
8.0.160.0000.00716.89
8.0.150.0000.00716.67
8.0.140.0000.00716.88
8.0.130.0030.00313.32
8.0.120.0040.00416.77
8.0.110.0000.00816.93
8.0.100.0070.00016.95
8.0.90.0020.00516.76
8.0.80.0030.01716.86
8.0.70.0040.00316.68
8.0.60.0050.00217.00
8.0.50.0000.00716.90
8.0.30.0080.01017.03
8.0.20.0090.00917.40
8.0.10.0040.00416.84
8.0.00.0050.01416.67
7.4.330.0000.00515.55
7.4.320.0030.00316.45
7.4.300.0000.00616.49
7.4.290.0000.00716.53
7.4.280.0000.00816.50
7.4.270.0030.00316.37
7.4.260.0030.00316.55
7.4.250.0030.00316.39
7.4.240.0000.00716.44
7.4.230.0000.00716.37
7.4.220.0060.01216.44
7.4.210.0030.01216.60
7.4.200.0000.00716.41
7.4.160.0120.00516.47
7.4.150.0040.01417.40
7.4.140.0100.01217.86
7.4.130.0140.00616.24
7.4.120.0090.01316.52
7.4.110.0070.01016.46
7.4.100.0160.00716.47
7.4.90.0090.00916.46
7.4.80.0070.01019.39
7.4.70.0120.00616.60
7.4.60.0100.00716.34
7.4.50.0030.01016.21
7.4.40.0060.00916.35
7.4.30.0040.01216.39
7.4.00.0080.00914.89
7.3.330.0000.00613.03
7.3.320.0030.00313.04
7.3.310.0000.00716.26
7.3.300.0000.00716.23
7.3.290.0070.00716.20
7.3.280.0080.01016.21
7.3.270.0120.00617.40
7.3.260.0040.01316.30
7.3.240.0090.00816.52
7.3.230.0030.01316.11
7.3.210.0100.01016.13
7.3.200.0140.00716.14
7.3.190.0180.00416.46
7.3.180.0130.00416.13
7.3.170.0060.01216.50
7.3.160.0100.00716.39
7.3.120.0080.01014.76
7.3.110.0080.01114.86
7.3.100.0020.01314.73
7.3.90.0060.00614.87
7.3.80.0050.00914.68
7.3.70.0070.00414.51
7.3.60.0110.00014.71
7.3.50.0030.01214.60
7.3.40.0090.00514.63
7.3.30.0110.00014.66
7.3.20.0050.00816.58
7.3.10.0060.01016.33
7.3.00.0090.00616.54
7.2.330.0120.01216.54
7.2.320.0130.01316.38
7.2.310.0100.01016.42
7.2.300.0060.01316.54
7.2.290.0060.01016.58
7.2.250.0070.01314.89
7.2.240.0080.00914.74
7.2.230.0030.01014.97
7.2.220.0040.00914.72
7.2.210.0030.00714.91
7.2.200.0090.00314.91
7.2.190.0030.01014.73
7.2.180.0050.00915.01
7.2.170.0020.01415.09
7.2.160.0070.00714.67
7.2.150.0000.01316.77
7.2.140.0130.00316.86
7.2.130.0120.00816.61
7.2.120.0100.00616.58
7.2.110.0130.01016.46
7.2.100.0110.00416.57
7.2.90.0070.01016.58
7.2.80.0050.01016.63
7.2.70.0030.01016.49
7.2.60.0070.01116.50
7.2.50.0080.01216.61
7.2.40.0090.01016.83
7.2.30.0090.00716.53
7.2.20.0040.01316.46
7.2.10.0090.00916.43
7.2.00.0080.00817.64
7.1.330.0030.01215.84
7.1.320.0070.00315.57
7.1.310.0070.00715.70
7.1.300.0060.00715.87
7.1.290.0070.00615.50
7.1.280.0020.00915.74
7.1.270.0050.00715.54
7.1.260.0050.00715.75
7.1.250.0100.00715.34
7.1.240.0060.01015.76
7.1.230.0070.01015.90
7.1.220.0070.00415.83
7.1.210.0030.01015.89
7.1.200.0030.01015.80
7.1.190.0030.00515.54
7.1.180.0060.00315.85
7.1.170.0030.00615.65
7.1.160.0100.00315.93
7.1.150.0030.01315.69
7.1.140.0000.00915.93
7.1.130.0060.00615.64
7.1.120.0030.00915.86
7.1.110.0060.01315.85
7.1.100.0040.00815.86
7.1.90.0110.00315.94
7.1.80.0000.01215.88
7.1.70.0050.00516.60
7.1.60.0050.01116.46
7.1.50.0140.01028.57
7.1.40.0120.01325.20
7.1.30.0120.01325.05
7.1.20.0130.01125.27
7.1.10.0030.01116.18
7.1.00.0080.00816.18
7.0.330.0110.00415.23
7.0.320.0060.00615.43
7.0.310.0030.01415.45
7.0.300.0000.01015.41
7.0.290.0070.00315.40
7.0.280.0040.00815.50
7.0.270.0130.00315.34
7.0.260.0000.00915.40
7.0.250.0110.00315.43
7.0.240.0030.00915.27
7.0.230.0070.00715.18
7.0.220.0090.00615.29
7.0.210.0060.00915.41
7.0.200.0060.01216.13
7.0.190.0040.00915.96
7.0.180.0000.01615.77
7.0.170.0070.00915.75
7.0.160.0030.01215.57
7.0.150.0050.00715.76
7.0.140.0060.00615.81
7.0.130.0110.00315.94
7.0.120.0080.00715.91
7.0.110.0050.00815.80
7.0.100.0070.01215.88
7.0.90.0070.00815.94
7.0.80.0110.00215.75
7.0.70.0060.00815.71
7.0.60.0030.00615.84
7.0.50.0030.01015.95
7.0.40.0030.01014.98
7.0.30.0050.00514.89
7.0.20.0060.01014.96
7.0.10.0080.00514.94
7.0.00.0040.01214.93
5.6.400.0000.01514.14
5.6.390.0100.00314.27
5.6.380.0110.00414.55
5.6.370.0070.01014.45
5.6.360.0090.00614.34
5.6.350.0080.00814.55
5.6.340.0030.01014.45
5.6.330.0100.00314.46
5.6.320.0050.00514.47
5.6.310.0080.00814.17
5.6.300.0000.01014.02
5.6.290.0060.00614.26
5.6.280.0060.00614.21
5.6.270.0030.01013.91
5.6.260.0030.01014.16
5.6.250.0040.00814.50
5.6.240.0060.00614.02
5.6.230.0090.00614.27
5.6.220.0030.00714.18
5.6.210.0070.00714.37
5.6.200.0040.00814.18
5.6.190.0090.00314.06
5.6.180.0060.00814.34
5.6.170.0090.00614.23
5.6.160.0070.00714.39
5.6.150.0000.01514.03
5.6.140.0030.01414.43
5.6.130.0030.01014.30
5.6.120.0030.00914.49
5.6.110.0040.01213.96
5.6.100.0090.00613.90
5.6.90.0040.01114.46
5.6.80.0000.01214.20
5.6.70.0060.00614.13
5.6.60.0070.00714.00
5.6.50.0030.01014.19
5.6.40.0060.00914.17
5.6.30.0090.00314.39
5.6.20.0090.00614.42
5.6.10.0030.01014.12
5.6.00.0030.01314.43

preferences:
57.02 ms | 401 KiB | 5 Q