3v4l.org

run code in 300+ PHP versions simultaneously
<?php $regex = '/((a*)|(?=ab\K))/'; $subject = "aaaaxyzaabaa"; // Comment/uncomment below as wanted. // All 3 functions are vulnerable (note, other functions are affected as well) $x=preg_replace($regex, '',$subject); var_dump($x);

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.0070.01418.52
8.3.50.0110.00621.14
8.3.40.0180.00418.97
8.3.30.0120.00318.79
8.3.20.0000.00820.25
8.3.10.0050.00323.69
8.3.00.0080.00019.67
8.2.180.0080.00818.67
8.2.170.0140.00722.96
8.2.160.0130.00719.16
8.2.150.0030.00524.18
8.2.140.0000.00724.66
8.2.130.0000.00826.16
8.2.120.0070.00317.74
8.2.110.0100.00022.20
8.2.100.0060.00619.76
8.2.90.0030.00518.82
8.2.80.0090.00317.97
8.2.70.0000.00817.63
8.2.60.0030.00717.91
8.2.50.0040.00418.07
8.2.40.0000.00821.11
8.2.30.0030.00620.65
8.2.20.0040.00417.70
8.2.10.0040.00418.07
8.2.00.0000.00718.13
8.1.280.0090.00925.92
8.1.270.0030.00623.84
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0070.00424.01
8.1.230.0080.00319.09
8.1.220.0030.00517.74
8.1.210.0080.00018.77
8.1.200.0070.00317.35
8.1.190.0030.00617.35
8.1.180.0040.00418.10
8.1.170.0050.00318.69
8.1.160.0040.00421.96
8.1.150.0040.00418.78
8.1.140.0030.00517.57
8.1.130.0000.00717.68
8.1.120.0040.00417.44
8.1.110.0030.00517.50
8.1.100.0000.00717.54
8.1.90.0040.00417.55
8.1.80.0000.00717.59
8.1.70.0030.00317.54
8.1.60.0040.00417.66
8.1.50.0000.00817.59
8.1.40.0000.00717.48
8.1.30.0000.01017.78
8.1.20.0020.00517.66
8.1.10.0040.00417.65
8.1.00.0080.00017.57
8.0.300.0060.00318.77
8.0.290.0040.00416.75
8.0.280.0030.00318.31
8.0.270.0000.00817.21
8.0.260.0030.00317.13
8.0.250.0070.00017.13
8.0.240.0000.00717.05
8.0.230.0080.00016.96
8.0.220.0030.00316.89
8.0.210.0000.00717.07
8.0.200.0070.00017.04
8.0.190.0070.00017.00
8.0.180.0000.00717.09
8.0.170.0000.00816.90
8.0.160.0030.00616.94
8.0.150.0000.00717.01
8.0.140.0030.00716.96
8.0.130.0070.00013.45
8.0.120.0030.00617.00
8.0.110.0070.00016.93
8.0.100.0030.00516.91
8.0.90.0000.00816.94
8.0.80.0070.01516.98
8.0.70.0070.00017.07
8.0.60.0040.00417.09
8.0.50.0070.00017.05
8.0.30.0100.00517.08
8.0.20.0100.00917.40
8.0.10.0040.00416.92
8.0.00.0080.01316.88
7.4.330.0020.00215.11
7.4.320.0070.00016.76
7.4.300.0030.00516.63
7.4.290.0000.00716.50
7.4.280.0040.00416.64
7.4.270.0070.00016.67
7.4.260.0050.00216.72
7.4.250.0000.00716.71
7.4.240.0020.00516.65
7.4.230.0070.00016.76
7.4.220.0030.01416.66
7.4.210.0060.00916.72
7.4.200.0040.00416.77
7.4.160.0060.00916.69
7.4.150.0090.00917.40
7.4.140.0160.00317.86
7.4.130.0110.00616.59
7.4.120.0130.00516.68
7.4.110.0090.01616.66
7.4.100.0110.01116.44
7.4.90.0140.00316.77
7.4.80.0140.01019.39
7.4.70.0070.01016.63
7.4.60.0060.01016.74
7.4.50.0050.00216.43
7.4.40.0090.00916.61
7.4.30.0090.01316.63
7.4.00.0040.00815.01
7.3.330.0000.00513.24
7.3.320.0060.00013.18
7.3.310.0000.00716.39
7.3.300.0040.00416.39
7.3.290.0080.00716.32
7.3.280.0070.01116.36
7.3.270.0140.00317.40
7.3.260.0170.00316.61
7.3.250.0090.00816.49
7.3.240.0070.00716.65
7.3.230.0040.01416.39
7.3.210.0070.01016.65
7.3.200.0130.00316.47
7.3.190.0100.00716.51
7.3.180.0060.01116.60
7.3.170.0030.01416.27
7.3.160.0080.01016.32
7.3.120.0050.01214.81
7.3.110.0080.00715.13
7.3.100.0050.00914.74
7.3.90.0070.01015.18
7.3.80.0000.01614.84
7.3.70.0060.00614.78
7.3.60.0050.00814.92
7.3.50.0100.00314.67
7.3.40.0060.00514.74
7.3.30.0080.00714.89
7.3.20.0040.00816.67
7.3.10.0050.00816.72
7.3.00.0040.00516.65
7.2.330.0070.01116.61
7.2.320.0100.00716.77
7.2.310.0100.00616.62
7.2.300.0060.01016.75
7.2.290.0060.01516.67
7.2.240.0060.01115.13
7.2.230.0040.01015.14
7.2.220.0030.01015.07
7.2.210.0080.00614.97
7.2.200.0070.00515.19
7.2.190.0050.00715.02
7.2.180.0070.00814.88
7.2.170.0070.00715.20
7.2.160.0040.00614.98
7.2.150.0030.01016.97
7.2.140.0060.00517.03
7.2.130.0020.01317.02
7.2.120.0030.01416.96
7.2.110.0060.00617.04
7.2.100.0050.00817.01
7.2.90.0060.00817.07
7.2.80.0040.00816.84
7.2.70.0060.00716.99
7.2.60.0050.00716.91
7.2.50.0050.01016.71
7.2.40.0110.00317.08
7.2.30.0050.00817.00
7.2.20.0090.00416.93
7.2.10.0050.00816.97
7.2.00.0090.00517.89
7.1.330.0060.01015.66
7.1.320.0020.01315.98
7.1.310.0120.00115.79
7.1.300.0060.00515.80
7.1.290.0070.00415.93
7.1.280.0090.00515.63
7.1.270.0070.00415.91
7.1.260.0040.00715.97
7.1.250.0050.00715.74
7.1.100.0000.01218.12
7.1.70.0050.00317.09
7.1.60.0070.01719.50
7.1.50.0040.01817.12
7.1.00.0070.07322.37
7.0.200.0130.01316.89
7.0.60.0070.08019.93
7.0.50.0130.04017.86
7.0.40.0130.05320.06
7.0.30.0270.04020.21
7.0.20.0230.04320.06
7.0.10.0030.04720.02
7.0.00.0100.03720.10
5.6.280.0000.03321.12
5.6.210.0030.07720.46
5.6.200.0100.04018.18
5.6.190.0070.07320.35
5.6.180.0300.07320.43
5.6.170.0300.04320.62
5.6.160.0230.06720.46
5.6.150.0170.05718.23
5.6.140.0000.09018.15
5.6.130.0130.08018.18
5.6.120.0130.05020.99
5.6.110.0070.08321.04
5.6.100.0070.07320.88
5.6.90.0100.03320.91
5.6.80.0100.07320.38
5.5.350.0100.07020.39
5.5.340.0030.07318.02
5.5.330.0000.05320.32
5.5.320.0000.04320.22
5.5.310.0270.08020.21
5.5.300.0070.07718.01
5.5.290.0030.08318.01
5.5.280.0070.05020.64
5.5.270.0030.04320.72
5.5.260.0170.07320.75
5.5.250.0070.04320.67
5.5.240.0200.06720.25
5.4.450.0500.08019.49
5.4.440.0170.06019.52
5.4.430.0130.05319.62
5.4.420.0770.06319.60
5.4.410.0570.06018.97
5.4.400.0130.05019.00
5.4.390.0230.04719.22
5.4.380.0430.05719.16
5.4.370.0730.05319.25
5.4.360.0830.06019.28
5.4.350.0630.06018.99
5.4.340.0730.04718.78
5.4.320.0570.05318.92
5.4.310.0530.06019.00
5.4.300.0800.05019.32
5.4.290.0970.06018.91
5.4.280.0970.06319.14
5.4.270.0270.05719.08
5.4.260.0430.05019.22
5.4.250.0030.07319.21
5.4.240.0130.06019.14
5.4.230.0800.05019.15
5.4.220.0630.06719.08
5.4.210.0630.07719.21
5.4.200.0700.07019.09
5.4.190.0900.06019.15
5.4.180.0770.06718.80
5.4.170.0730.05719.11
5.4.160.0830.05019.17
5.4.150.0870.05019.13
5.4.140.0700.05316.45
5.4.130.0830.05016.22
5.4.120.0900.04716.24
5.4.110.0770.04716.54
5.4.100.0870.04716.48
5.4.90.0770.05716.47
5.4.80.0800.05716.37
5.4.70.0070.05016.42
5.4.60.0030.04316.40
5.4.50.0070.05016.29
5.4.40.0200.06016.36
5.4.30.0270.03716.45
5.4.20.0270.05716.34

preferences:
57.3 ms | 401 KiB | 5 Q