3v4l.org

run code in 300+ PHP versions simultaneously
<?php $regex = '/(.a|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, '\0',$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.0110.00418.56
8.3.50.0150.00321.23
8.3.40.0060.01218.77
8.3.30.0040.01118.87
8.3.20.0070.00020.16
8.3.10.0040.00423.53
8.3.00.0050.00317.64
8.2.180.0080.00816.63
8.2.170.0040.01122.96
8.2.160.0100.00320.39
8.2.150.0040.00424.18
8.2.140.0050.00224.66
8.2.130.0050.00326.16
8.2.120.0060.00317.50
8.2.110.0000.00919.45
8.2.100.0030.00917.84
8.2.90.0000.00819.00
8.2.80.0030.00917.97
8.2.70.0050.00317.63
8.2.60.0000.00917.55
8.2.50.0040.00418.07
8.2.40.0040.00419.38
8.2.30.0030.00520.64
8.2.20.0040.00417.68
8.2.10.0040.00418.08
8.2.00.0040.00418.01
8.1.280.0060.01025.92
8.1.270.0080.00023.95
8.1.260.0040.00426.35
8.1.250.0000.00928.09
8.1.240.0060.00322.42
8.1.230.0080.00420.84
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0070.00317.35
8.1.190.0000.00817.35
8.1.180.0000.00818.10
8.1.170.0040.00418.51
8.1.160.0070.00022.01
8.1.150.0070.00018.76
8.1.140.0000.00819.32
8.1.130.0000.00817.57
8.1.120.0040.00417.59
8.1.110.0070.00017.56
8.1.100.0070.00017.41
8.1.90.0000.00717.44
8.1.80.0040.00417.54
8.1.70.0030.00317.48
8.1.60.0050.00217.71
8.1.50.0000.00817.64
8.1.40.0050.00317.63
8.1.30.0000.01017.56
8.1.20.0000.00817.56
8.1.10.0030.00517.64
8.1.00.0000.00717.38
8.0.300.0070.00018.77
8.0.290.0070.00016.75
8.0.280.0000.00818.25
8.0.270.0030.00317.25
8.0.260.0030.00317.17
8.0.250.0000.00717.03
8.0.240.0030.00317.02
8.0.230.0000.00817.01
8.0.220.0000.00716.86
8.0.210.0070.00016.92
8.0.200.0040.00417.02
8.0.190.0040.00416.92
8.0.180.0000.00816.96
8.0.170.0050.00317.00
8.0.160.0040.00417.04
8.0.150.0000.00716.82
8.0.140.0030.00616.96
8.0.130.0060.00013.27
8.0.120.0060.00317.01
8.0.110.0070.00016.86
8.0.100.0040.00416.84
8.0.90.0070.00016.84
8.0.80.0090.00616.84
8.0.70.0030.00516.95
8.0.60.0000.00716.95
8.0.50.0000.00717.03
8.0.30.0120.01016.96
8.0.20.0130.00717.42
8.0.10.0070.00017.06
8.0.00.0080.01017.02
7.4.330.0000.00515.15
7.4.320.0060.00016.74
7.4.300.0070.00016.69
7.4.290.0000.00716.66
7.4.280.0040.00416.64
7.4.270.0030.00316.63
7.4.260.0030.00316.55
7.4.250.0070.00016.66
7.4.240.0040.00316.65
7.4.230.0040.00416.59
7.4.220.0030.01516.59
7.4.210.0060.00916.68
7.4.200.0030.00516.63
7.4.160.0130.00316.66
7.4.150.0100.00717.40
7.4.140.0070.01217.86
7.4.130.0080.01016.64
7.4.120.0080.00916.59
7.4.110.0170.01116.59
7.4.100.0140.01016.34
7.4.90.0100.00716.56
7.4.80.0150.00319.39
7.4.70.0150.00916.61
7.4.60.0060.01016.46
7.4.50.0000.00816.64
7.4.40.0170.00616.66
7.4.30.0060.01016.53
7.4.00.0110.00715.16
7.3.330.0030.00313.03
7.3.320.0000.00613.13
7.3.310.0040.00416.11
7.3.300.0000.00616.29
7.3.290.0030.01316.30
7.3.280.0060.01216.30
7.3.270.0070.01017.40
7.3.260.0190.00716.39
7.3.250.0100.01016.46
7.3.240.0100.01316.24
7.3.230.0080.00816.59
7.3.210.0070.01316.48
7.3.200.0100.01016.46
7.3.190.0110.00516.60
7.3.180.0180.00016.63
7.3.170.0110.00616.28
7.3.160.0060.00916.75
7.3.10.0130.00416.73
7.3.00.0080.01116.32
7.2.330.0170.00716.71
7.2.320.0110.00616.65
7.2.310.0060.01116.66
7.2.300.0130.00316.59
7.2.290.0100.00716.54
7.2.130.0100.01016.35
7.2.120.0150.00616.73
7.2.110.0080.01216.89
7.2.100.0130.00617.00
7.2.90.0110.00716.44
7.2.80.0120.00816.46
7.2.70.0160.00016.79
7.2.60.0110.00716.66
7.2.50.0100.01017.04
7.2.40.0130.00616.76
7.2.30.0150.00916.46
7.2.20.0070.01116.64
7.2.10.0110.00616.46
7.2.00.0080.00618.30
7.1.250.0100.01015.93
7.1.200.0000.01215.78
7.1.100.0000.01318.49
7.1.70.0000.00817.38
7.1.60.0130.01019.50
7.1.50.0110.01116.79
7.1.00.0100.06322.38
7.0.200.2180.01314.91
7.0.60.0030.04019.98
7.0.50.0070.06017.79
7.0.40.0100.07720.11
7.0.30.0230.07020.20
7.0.20.0370.07020.15
7.0.10.0100.08320.32
7.0.00.0130.07720.14
5.6.280.0070.02721.12
5.6.210.0130.07320.52
5.6.200.0070.06018.18
5.6.190.0030.04320.37
5.6.180.0100.08020.67
5.6.170.0330.07020.50
5.6.160.0070.05720.49
5.6.150.0130.07718.21
5.6.140.0070.07318.11
5.6.130.0070.06318.12
5.6.120.0030.04021.18
5.6.110.0030.08320.92
5.6.100.0170.07321.00
5.6.90.0070.04721.16
5.6.80.0030.04020.47
5.5.350.0030.06720.48
5.5.340.0130.07317.93
5.5.330.0130.05320.15
5.5.320.0170.04020.26
5.5.310.0230.07720.14
5.5.300.0070.08318.00
5.5.290.0030.04017.87
5.5.280.0030.09021.01
5.5.270.0130.04320.80
5.5.260.0170.07720.80
5.5.250.0070.07320.73
5.5.240.0330.07020.19
5.4.450.0600.06719.46
5.4.440.0700.07719.85
5.4.430.0700.04719.52
5.4.420.0670.05319.73
5.4.410.0730.05319.57
5.4.400.0730.05019.48
5.4.390.0730.07019.51
5.4.380.0770.05719.15
5.4.370.0830.04719.53
5.4.360.0770.05719.38
5.4.350.0600.08319.70
5.4.340.0970.05720.54
5.4.320.0770.05719.68
5.4.310.0600.06319.38
5.4.300.0800.05319.51
5.4.290.0770.04719.53
5.4.280.0800.05319.66
5.4.270.1000.06019.47
5.4.260.0670.06319.48
5.4.250.0900.07719.50
5.4.240.0830.06019.48
5.4.230.0800.06019.37
5.4.220.0900.06019.52
5.4.210.0800.07319.40
5.4.200.0970.07319.65
5.4.190.0730.07319.19
5.4.180.0570.06719.52
5.4.170.0570.05719.40
5.4.160.0170.06719.29
5.4.150.0600.06719.46
5.4.140.0770.06016.73
5.4.130.0800.05316.96
5.4.120.0900.04716.75
5.4.110.0730.06716.79
5.4.100.0830.05016.94
5.4.90.0770.05016.78
5.4.80.0930.06016.97
5.4.70.0000.03316.20
5.4.60.0000.05716.75
5.4.50.0030.03716.38
5.4.40.0270.03316.30
5.4.30.0330.06716.44
5.4.20.0270.04316.40

preferences:
52.56 ms | 401 KiB | 5 Q