3v4l.org

run code in 300+ PHP versions simultaneously
<?php $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.40.0100.01018.98
8.3.30.0030.01318.76
8.3.20.0050.00319.27
8.3.10.0000.00821.90
8.3.00.0080.00019.67
8.2.170.0140.00022.96
8.2.160.0040.01119.26
8.2.150.0050.00324.18
8.2.140.0000.00824.66
8.2.130.0040.00420.47
8.2.120.0090.00026.35
8.2.110.0060.00321.06
8.2.100.0060.00617.71
8.2.90.0050.00318.97
8.2.80.0040.00417.97
8.2.70.0040.00417.74
8.2.60.0050.00317.93
8.2.50.0000.00718.10
8.2.40.0000.00720.46
8.2.30.0000.00719.20
8.2.20.0000.00717.89
8.2.10.0000.00818.07
8.2.00.0020.00518.30
8.1.270.0080.00023.88
8.1.260.0060.00326.35
8.1.250.0050.00328.09
8.1.240.0090.00022.73
8.1.230.0060.00620.78
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0030.00617.35
8.1.190.0000.00917.23
8.1.180.0050.00318.10
8.1.170.0000.00818.68
8.1.160.0030.00318.81
8.1.150.0000.00720.03
8.1.140.0040.00419.47
8.1.130.0030.00318.84
8.1.120.0000.00717.57
8.1.110.0000.01117.57
8.1.100.0040.00417.46
8.1.90.0000.00717.43
8.1.80.0000.00717.52
8.1.70.0000.00717.48
8.1.60.0040.00417.57
8.1.50.0040.00417.52
8.1.40.0050.00317.55
8.1.30.0070.00417.70
8.1.20.0040.00417.71
8.1.10.0040.00417.64
8.1.00.0080.00017.60
8.0.300.0040.00419.74
8.0.290.0050.00216.88
8.0.280.0070.00018.43
8.0.270.0040.00416.81
8.0.260.0030.00519.04
8.0.250.0040.00416.93
8.0.240.0100.00017.06
8.0.230.0000.00816.94
8.0.220.0000.00617.03
8.0.210.0030.00316.96
8.0.200.0030.00317.07
8.0.190.0000.00816.99
8.0.180.0040.00416.98
8.0.170.0040.00417.00
8.0.160.0070.00016.93
8.0.150.0000.00716.93
8.0.140.0040.00416.96
8.0.130.0030.00313.35
8.0.120.0000.00816.93
8.0.110.0050.00316.84
8.0.100.0040.00416.91
8.0.90.0040.00416.88
8.0.80.0060.00916.93
8.0.70.0040.00416.92
8.0.60.0000.00817.04
8.0.50.0000.00716.85
8.0.30.0110.00617.19
8.0.20.0110.00917.40
8.0.10.0070.00017.07
8.0.00.0130.00616.81
7.4.330.0050.00015.55
7.4.320.0020.00516.60
7.4.300.0050.00216.65
7.4.290.0000.00716.73
7.4.280.0060.00316.53
7.4.270.0000.00716.57
7.4.260.0000.00816.64
7.4.250.0050.00216.54
7.4.240.0030.00516.75
7.4.230.0040.00416.83
7.4.220.0040.01416.79
7.4.210.0030.01716.83
7.4.200.0070.00016.60
7.4.160.0080.00916.48
7.4.150.0090.00917.40
7.4.140.0060.01417.86
7.4.130.0140.01216.55
7.4.120.0100.01316.74
7.4.110.0260.00916.57
7.4.100.0100.01616.46
7.4.90.0120.00316.39
7.4.80.0030.01319.39
7.4.70.0040.01216.66
7.4.60.0100.01016.44
7.4.50.0060.00916.48
7.4.40.0060.00916.72
7.4.30.0090.00916.68
7.4.00.0030.01014.93
7.3.330.0050.00013.25
7.3.320.0050.00013.02
7.3.310.0000.00716.07
7.3.300.0040.00416.25
7.3.290.0040.01116.28
7.3.280.0110.00716.30
7.3.270.0030.01417.40
7.3.260.0110.00616.48
7.3.240.0090.00916.37
7.3.230.0060.01216.27
7.3.210.0090.00816.46
7.3.200.0070.01016.28
7.3.190.0040.01216.59
7.3.180.0060.01116.29
7.3.170.0100.00716.50
7.3.160.0030.01216.26
7.3.30.0090.00614.81
7.3.20.0930.01014.66
7.3.10.1130.00314.83
7.3.00.1160.00314.84
7.2.330.0090.00916.55
7.2.320.0150.00916.74
7.2.310.0120.01216.54
7.2.300.0030.01416.39
7.2.290.0090.00916.55
7.2.160.0060.01214.77
7.2.150.0850.00715.12
7.2.140.1160.00314.89
7.2.130.1180.00714.96
7.2.120.1000.00714.76
7.2.110.1150.01314.88
7.2.100.0750.00314.85
7.2.90.0590.01015.13
7.2.80.0680.00714.67
7.2.70.0900.01014.91
7.2.60.0490.01115.93
7.2.50.0810.00015.11
7.2.40.1330.00415.17
7.2.30.0690.01714.96
7.2.20.0660.02014.93
7.2.10.0750.01314.98
7.2.00.0430.00917.11
7.1.270.0850.01314.16
7.1.260.1140.00713.94
7.1.250.0810.01613.92
7.1.240.0920.01014.07
7.1.230.0720.00713.92
7.1.220.0610.01414.11
7.1.210.0980.00313.96
7.1.200.0430.00014.91
7.1.190.1060.01114.11
7.1.180.0830.00614.00
7.1.170.1010.00314.02
7.1.160.0810.00713.77
7.1.150.0830.00913.75
7.1.140.1040.01014.16
7.1.130.1010.00714.06
7.1.120.0830.01414.06
7.1.110.0860.00313.85
7.1.100.0820.02213.94
7.1.90.0820.01914.02
7.1.80.0710.01013.83
7.1.70.0390.00715.74
7.1.60.0390.00615.77
7.1.50.0410.00927.91
7.1.40.0430.00524.16
7.1.30.0390.00924.28
7.1.20.1430.00824.34
7.1.10.0310.00815.29
7.1.00.0280.01115.27
7.0.330.1150.00613.40
7.0.320.0780.00013.48
7.0.310.0870.00313.45
7.0.300.1120.00713.76
7.0.290.0790.01013.56
7.0.280.0880.01413.78
7.0.270.0840.01713.91
7.0.260.0750.01013.68
7.0.250.0760.00913.49
7.0.240.0700.00913.81
7.0.230.0560.00713.54
7.0.220.0740.01013.61
7.0.210.0790.00713.66
7.0.200.0380.01014.97
7.0.190.0370.00815.22
7.0.180.0280.01714.96
7.0.170.0340.01114.85
7.0.160.0290.00814.95
7.0.150.0330.00814.90
7.0.140.0330.00915.10
7.0.130.0330.01014.97
7.0.120.0330.00615.09
7.0.110.0380.00514.97
7.0.100.0290.01115.07
7.0.90.0280.01115.10
7.0.80.0320.00815.09
7.0.70.0250.01214.99
7.0.60.0320.00715.06
7.0.50.0280.00815.04
7.0.40.0290.00815.17
7.0.30.0310.00715.17
7.0.20.0290.01015.06
7.0.10.0310.00815.13
7.0.00.0310.00715.05
5.6.400.0110.00414.25
5.6.390.0100.01014.25
5.6.380.0050.00513.98

preferences:
58.54 ms | 400 KiB | 5 Q