3v4l.org

run code in 300+ PHP versions simultaneously
<?php $regex = '/((aaa)(?=xyz\Kaa))/'; $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.0100.01018.55
8.3.50.0140.00622.13
8.3.40.0120.00918.85
8.3.30.0040.01418.54
8.3.20.0080.00020.21
8.3.10.0000.00723.66
8.3.00.0080.00019.56
8.2.180.0040.01118.27
8.2.170.0100.00722.96
8.2.160.0100.00320.51
8.2.150.0040.00425.66
8.2.140.0070.00024.66
8.2.130.0050.00226.16
8.2.120.0090.00017.75
8.2.110.0070.01419.27
8.2.100.0090.00318.03
8.2.90.0080.00017.75
8.2.80.0060.00318.90
8.2.70.0000.00817.90
8.2.60.0070.00018.03
8.2.50.0040.00418.10
8.2.40.0030.00619.16
8.2.30.0050.00320.66
8.2.20.0070.00017.77
8.2.10.0000.00717.95
8.2.00.0040.00417.95
8.1.280.0070.00725.92
8.1.270.0050.00323.96
8.1.260.0000.00726.35
8.1.250.0000.00828.09
8.1.240.0040.00418.96
8.1.230.0070.00417.77
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0050.00517.50
8.1.190.0000.00817.35
8.1.180.0030.00518.10
8.1.170.0050.00318.73
8.1.160.0040.00418.81
8.1.150.0000.00718.85
8.1.140.0040.00417.51
8.1.130.0000.00717.65
8.1.120.0040.00417.54
8.1.110.0040.00417.51
8.1.100.0030.00617.52
8.1.90.0050.00317.54
8.1.80.0000.00717.51
8.1.70.0000.00717.48
8.1.60.0030.00617.70
8.1.50.0000.00917.59
8.1.40.0090.00017.48
8.1.30.0070.00317.60
8.1.20.0000.00817.63
8.1.10.0020.00517.66
8.1.00.0040.00417.49
8.0.300.0000.00718.77
8.0.290.0000.00716.75
8.0.280.0030.00318.39
8.0.270.0000.00717.11
8.0.260.0030.00317.11
8.0.250.0030.00417.02
8.0.240.0000.00717.02
8.0.230.0020.00517.02
8.0.220.0030.00316.93
8.0.210.0040.00417.03
8.0.200.0000.00816.91
8.0.190.0020.00517.05
8.0.180.0050.00516.99
8.0.170.0000.00816.95
8.0.160.0040.00417.07
8.0.150.0040.00416.97
8.0.140.0070.00316.94
8.0.130.0000.00713.35
8.0.120.0040.00416.84
8.0.110.0040.00416.90
8.0.100.0030.00516.81
8.0.90.0040.00416.82
8.0.80.0100.00616.91
8.0.70.0040.00416.95
8.0.60.0040.00417.08
8.0.50.0000.00716.81
8.0.30.0070.00916.94
8.0.20.0110.00817.40
8.0.10.0080.00016.98
8.0.00.0130.01016.91
7.4.330.0020.00215.08
7.4.320.0030.00316.75
7.4.300.0030.00316.65
7.4.290.0030.00316.66
7.4.280.0040.00416.72
7.4.270.0030.00316.78
7.4.260.0030.00316.75
7.4.250.0000.00716.61
7.4.240.0020.00516.65
7.4.230.0030.00316.55
7.4.220.0100.00716.69
7.4.210.0030.01316.60
7.4.200.0000.00816.59
7.4.150.0070.01017.40
7.4.140.0120.00617.86
7.4.130.0060.01216.66
7.4.120.0100.00716.66
7.4.110.0120.01416.72
7.4.100.0030.01416.57
7.4.90.0070.01116.54
7.4.80.0120.00619.39
7.4.70.0100.00716.51
7.4.60.0070.01416.79
7.4.50.0020.00216.67
7.4.40.0130.00316.47
7.4.30.0100.00716.56
7.4.00.0070.00915.19
7.3.330.0000.00613.00
7.3.320.0070.00013.03
7.3.310.0030.00316.32
7.3.300.0000.00716.30
7.3.290.0070.00916.34
7.3.280.0070.00916.30
7.3.270.0100.00717.40
7.3.260.0060.01516.65
7.3.240.0060.01516.29
7.3.230.0030.01216.39
7.3.210.0130.00316.23
7.3.200.0140.00316.75
7.3.190.0100.00716.65
7.3.180.0100.00716.30
7.3.170.0170.00516.55
7.3.160.0070.01016.31
7.3.120.0030.01614.70
7.3.110.0080.00814.73
7.3.100.0060.00915.06
7.3.90.0060.01214.93
7.3.80.0060.00915.15
7.3.70.0070.01114.82
7.3.60.0060.00614.75
7.3.50.0000.00914.91
7.3.40.0090.00614.67
7.3.30.0090.00914.61
7.3.20.0120.00416.86
7.3.10.0110.00416.74
7.3.00.0070.00716.56
7.2.330.0130.01016.78
7.2.320.0070.01016.79
7.2.310.0120.00416.74
7.2.300.0120.00616.82
7.2.290.0130.00316.61
7.2.250.0070.01014.97
7.2.240.0080.01115.04
7.2.230.0090.00615.12
7.2.220.0070.00715.13
7.2.210.0080.00315.21
7.2.200.0100.00714.66
7.2.190.0150.00014.99
7.2.180.0000.01015.13
7.2.170.0110.00715.00
7.2.60.0100.00716.80
7.2.00.0000.01019.41
7.1.330.0030.01015.71
7.1.320.0000.01715.89
7.1.310.0040.01415.64
7.1.300.0000.01315.57
7.1.290.0030.00615.62
7.1.280.0100.00715.87
7.1.270.0040.00815.80
7.1.260.0060.00316.05
7.1.200.0030.00915.93
7.1.100.0060.00618.29
7.1.70.0060.00317.28
7.1.60.0110.01419.50
7.1.50.0030.02016.86
7.1.00.0070.07322.55
7.0.200.0000.00916.80
7.0.60.0130.03019.86
7.0.50.0100.07717.82
7.0.40.0100.03720.26
7.0.30.0300.05320.20
7.0.20.0200.07020.14
7.0.10.0070.04020.11
7.0.00.0030.04720.16
5.6.280.0000.03321.05
5.6.210.0070.04020.46
5.6.200.0100.06718.21
5.6.190.0030.05320.27
5.6.180.0170.04320.59
5.6.170.0230.03720.38
5.6.160.0100.08320.52
5.6.150.0070.04018.19
5.6.140.0070.03718.09
5.6.130.0030.04718.08
5.6.120.0230.04021.12
5.6.110.0100.07320.98
5.6.100.0100.08020.88
5.6.90.0100.04020.87
5.6.80.0030.07320.48
5.5.350.0030.08720.43
5.5.340.0100.07017.96
5.5.330.0070.05320.22
5.5.320.0100.07020.17
5.5.310.0400.06320.27
5.5.300.0070.04717.91
5.5.290.0070.04017.98
5.5.280.0070.07720.72
5.5.270.0070.08020.62
5.5.260.0100.08020.84
5.5.250.0070.08320.57
5.5.240.0170.07020.27
5.4.450.0770.06319.45
5.4.440.0830.05019.45
5.4.430.0800.05719.40
5.4.420.0900.07019.16
5.4.410.0770.07719.19
5.4.400.1000.06718.95
5.4.390.0900.06719.29
5.4.380.0770.06718.77
5.4.370.0800.06718.81
5.4.360.0630.06019.14
5.4.350.0900.05719.28
5.4.340.0730.05719.09
5.4.320.0770.07319.28
5.4.310.0730.04719.09
5.4.300.0700.05019.30
5.4.290.0630.06019.30
5.4.280.0700.05719.27
5.4.270.0770.07318.80
5.4.260.0700.05319.30
5.4.250.0700.05019.21
5.4.240.0670.05318.99
5.4.230.0830.05019.14
5.4.220.0730.06319.21
5.4.210.0630.06019.21
5.4.200.0830.05019.11
5.4.190.0970.07019.27
5.4.180.0970.07319.27
5.4.170.0930.07319.30
5.4.160.1170.05718.75
5.4.150.0970.07019.10
5.4.140.0770.05316.30
5.4.130.0830.06016.28
5.4.120.0830.05016.41
5.4.110.0800.05316.56
5.4.100.0730.06016.53
5.4.90.0800.04716.54
5.4.80.0770.04716.43
5.4.70.0000.05716.37
5.4.60.0070.05716.38
5.4.50.0000.05716.36
5.4.40.0300.07716.41
5.4.30.0300.06316.19
5.4.20.0200.04716.27

preferences:
57.87 ms | 401 KiB | 5 Q