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.0070.01118.30
8.3.50.0110.00821.17
8.3.40.0120.00418.83
8.3.30.0100.00618.67
8.3.20.0040.00420.39
8.3.10.0070.00023.55
8.3.00.0060.00317.80
8.2.180.0120.00316.63
8.2.170.0070.00722.96
8.2.160.0030.01020.32
8.2.150.0030.00624.18
8.2.140.0050.00224.66
8.2.130.0040.00426.16
8.2.120.0060.00317.50
8.2.110.0060.00319.33
8.2.100.0000.01217.75
8.2.90.0040.00418.95
8.2.80.0000.01017.97
8.2.70.0050.00317.63
8.2.60.0030.00717.91
8.2.50.0080.00018.07
8.2.40.0040.00419.39
8.2.30.0040.00420.58
8.2.20.0000.00817.64
8.2.10.0040.00417.95
8.2.00.0000.00818.15
8.1.280.0080.00825.92
8.1.270.0000.00823.78
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00320.75
8.1.230.0100.00417.42
8.1.220.0000.00817.74
8.1.210.0060.00318.77
8.1.200.0030.00617.35
8.1.190.0050.00317.13
8.1.180.0000.00818.10
8.1.170.0040.00418.64
8.1.160.0040.00421.97
8.1.150.0000.00818.96
8.1.140.0080.00019.25
8.1.130.0030.00317.66
8.1.120.0040.00417.51
8.1.110.0080.00017.55
8.1.100.0040.00417.46
8.1.90.0040.00417.49
8.1.80.0000.00717.61
8.1.70.0000.00717.50
8.1.60.0000.00817.69
8.1.50.0000.00817.53
8.1.40.0000.00817.60
8.1.30.0030.00717.70
8.1.20.0000.00917.80
8.1.10.0030.00617.60
8.1.00.0040.00417.52
8.0.300.0060.00318.77
8.0.290.0000.00816.88
8.0.280.0000.00718.30
8.0.270.0070.00017.21
8.0.260.0060.00017.08
8.0.250.0040.00417.03
8.0.240.0030.00317.03
8.0.230.0040.00417.05
8.0.220.0000.00716.91
8.0.210.0000.00817.03
8.0.200.0000.00917.05
8.0.190.0040.00416.96
8.0.180.0030.00517.03
8.0.170.0040.00417.02
8.0.160.0030.00317.10
8.0.150.0000.00716.84
8.0.140.0060.00316.81
8.0.130.0000.00613.46
8.0.120.0050.00316.89
8.0.110.0030.00516.88
8.0.100.0040.00416.96
8.0.90.0000.00717.07
8.0.80.0000.01516.95
8.0.70.0040.00416.99
8.0.60.0000.00716.94
8.0.50.0000.00816.77
8.0.30.0050.01417.13
8.0.20.0130.00517.41
8.0.10.0040.00417.05
8.0.00.0140.00716.76
7.4.330.0050.00015.08
7.4.320.0040.00416.77
7.4.300.0000.00716.65
7.4.290.0000.00716.75
7.4.280.0040.00416.65
7.4.270.0040.00416.66
7.4.260.0030.00316.65
7.4.250.0000.00716.71
7.4.240.0020.00516.60
7.4.230.0000.00816.82
7.4.220.0120.00616.54
7.4.210.0110.00416.75
7.4.200.0000.00716.54
7.4.160.0090.00616.31
7.4.150.0160.00417.40
7.4.140.0120.00817.86
7.4.130.0070.01016.40
7.4.120.0090.00916.64
7.4.110.0100.01516.52
7.4.100.0100.01316.61
7.4.90.0060.01616.61
7.4.80.0110.00619.39
7.4.70.0150.00916.60
7.4.60.0160.00016.87
7.4.50.0000.00816.46
7.4.40.0090.00916.65
7.4.30.0080.00816.48
7.4.00.0120.00514.91
7.3.330.0030.00313.16
7.3.320.0030.00313.02
7.3.310.0000.00716.22
7.3.300.0000.00716.18
7.3.290.0060.00916.27
7.3.280.0100.00716.32
7.3.270.0100.00717.40
7.3.260.0070.01616.52
7.3.240.0080.01116.48
7.3.230.0060.01216.39
7.3.210.0070.01016.73
7.3.200.0030.01316.40
7.3.190.0100.00616.52
7.3.180.0060.00916.65
7.3.170.0070.01016.27
7.3.160.0130.00316.40
7.3.120.0060.00915.01
7.3.110.0070.00814.79
7.3.100.0080.00814.77
7.3.90.0070.00614.80
7.3.80.0080.00814.69
7.3.70.0060.00514.80
7.3.60.0050.00714.83
7.3.50.0060.00714.68
7.3.40.0080.00514.77
7.3.30.0050.00714.78
7.3.20.0070.00516.77
7.3.10.0040.00916.51
7.3.00.0060.00916.68
7.2.330.0060.01316.63
7.2.320.0140.00416.68
7.2.310.0060.01116.57
7.2.300.0060.01016.55
7.2.290.0060.00916.64
7.2.250.0100.00714.92
7.2.240.0040.01214.99
7.2.230.0080.00515.11
7.2.220.0060.01015.18
7.2.210.0060.01115.01
7.2.200.0080.00615.02
7.2.190.0040.01214.94
7.2.180.0070.00715.00
7.2.170.0050.01115.09
7.2.160.0080.00815.08
7.2.150.0030.01216.79
7.2.140.0060.00817.01
7.2.130.0110.00616.77
7.2.120.0090.00816.77
7.2.110.0080.01316.79
7.2.100.0100.00816.87
7.2.90.0090.00816.71
7.2.80.0130.00416.73
7.2.70.0080.00816.69
7.2.60.0100.00716.85
7.2.50.0110.01016.87
7.2.40.0100.00916.87
7.2.30.0090.00916.81
7.2.20.0050.01116.69
7.2.10.0060.01116.58
7.2.00.0110.00517.42
7.1.330.0060.00815.94
7.1.320.0110.00315.83
7.1.310.0060.00715.77
7.1.300.0050.00815.85
7.1.290.0040.00915.95
7.1.280.0050.01015.96
7.1.270.0040.01115.80
7.1.260.0070.00815.83
7.1.250.0110.00815.82
7.1.240.0040.00415.82
7.1.230.0040.00815.88
7.1.220.0040.01115.94
7.1.210.0040.01115.88
7.1.200.0040.00915.83
7.1.190.0030.01315.94
7.1.180.0070.01115.95
7.1.170.0070.00715.91
7.1.160.0070.00715.87
7.1.150.0090.00615.96
7.1.140.0030.00716.02
7.1.130.0000.00916.08
7.1.120.0040.00815.95
7.1.110.0040.01116.02
7.1.100.0060.00617.11
7.1.90.0000.01016.01
7.1.80.0000.01015.66
7.1.70.0000.00916.65
7.1.60.0100.01017.74
7.1.50.0060.00916.48
7.1.40.0000.01415.82
7.1.30.0070.00315.84
7.1.20.0040.01115.95
7.1.10.0000.01215.92
7.1.00.0030.04319.13
7.0.330.0050.00515.59
7.0.320.0000.01315.52
7.0.310.0080.00515.67
7.0.300.0000.01215.37
7.0.290.0030.01015.51
7.0.280.0070.00315.68
7.0.270.0080.00615.40
7.0.260.0080.00415.18
7.0.250.0060.00615.34
7.0.240.0080.00715.57
7.0.230.0070.00315.53
7.0.220.0090.00315.59
7.0.210.0030.01015.68
7.0.200.0220.00516.21
7.0.190.0100.00315.71
7.0.180.0030.01015.57
7.0.170.0030.01315.61
7.0.160.0030.00915.50
7.0.150.0050.00515.42
7.0.140.0090.00015.22
7.0.130.0080.00415.57
7.0.120.0060.00615.36
7.0.110.0030.01315.63
7.0.100.0060.00615.62
7.0.90.0040.01115.59
7.0.80.0070.00715.42
7.0.70.0070.00415.43
7.0.60.0060.03717.72
7.0.50.0050.02816.66
7.0.40.0100.04816.76
7.0.30.0170.04316.99
7.0.20.0160.02816.86
7.0.10.0120.04016.75
7.0.00.0110.03916.87
5.6.400.0030.01414.48
5.6.390.0060.00913.98
5.6.380.0000.01514.18
5.6.370.0060.00313.78
5.6.360.0060.00614.50
5.6.350.0060.00914.24
5.6.340.0030.00714.25
5.6.330.0070.00314.61
5.6.320.0100.00314.39
5.6.310.0030.00614.24
5.6.300.0040.00414.29
5.6.290.0060.01014.45
5.6.280.0030.02417.59
5.6.270.0060.01314.59
5.6.260.0150.00314.24
5.6.250.0040.00414.11
5.6.240.0040.01114.37
5.6.230.0000.01414.00
5.6.220.0040.00814.27
5.6.210.0100.04217.34
5.6.200.0070.04016.20
5.6.190.0050.04217.47
5.6.180.0150.02817.49
5.6.170.0150.02217.44
5.6.160.0020.03517.37
5.6.150.0070.02216.21
5.6.140.0070.04316.29
5.6.130.0060.04516.38
5.6.120.0090.02018.03
5.6.110.0110.04118.01
5.6.100.0100.04317.87
5.6.90.0060.03117.79
5.6.80.0030.02317.50
5.6.70.0000.01314.68
5.6.60.0050.00514.86
5.6.50.0070.00414.67
5.6.40.0050.00514.73
5.6.30.0060.00614.46
5.6.20.0040.00714.58
5.6.10.0110.00014.55
5.6.00.0000.01114.62
5.5.380.0030.01214.08
5.5.370.0060.00914.13
5.5.360.0060.00914.16
5.5.350.0030.02417.42
5.5.340.0050.02716.00
5.5.330.0050.02517.17
5.5.320.0130.03217.29
5.5.310.0140.02217.20
5.5.300.0020.03316.07
5.5.290.0050.04415.97
5.5.280.0060.03117.76
5.5.270.0050.04217.64
5.5.260.0020.02517.69
5.5.250.0090.04017.59
5.5.240.0100.04417.45
5.5.230.0070.00514.45
5.5.220.0110.00014.48
5.5.210.0060.00614.62
5.5.200.0000.01314.44
5.5.190.0060.00914.83
5.5.180.0110.00014.75
5.5.170.0030.00814.51
5.5.160.0070.00314.30
5.5.150.0050.00514.86
5.5.140.0020.01014.71
5.5.130.0030.00714.59
5.5.120.0090.00014.52
5.5.110.0070.00314.63
5.5.100.0070.00314.46
5.5.90.0100.00014.47
5.5.80.0070.00314.58
5.5.70.0000.01014.59
5.5.60.0110.00014.65
5.5.50.0030.00714.60
5.5.40.0080.00214.49
5.5.30.0100.00014.74
5.5.20.0070.00714.75
5.5.10.0080.00214.37
5.5.00.0050.00514.49
5.4.450.0430.03016.40
5.4.440.0400.03216.48
5.4.430.0490.02816.47
5.4.420.0450.03516.50
5.4.410.0420.02816.41
5.4.400.0390.02816.43
5.4.390.0440.02516.31
5.4.380.0430.02916.34
5.4.370.0380.02816.39
5.4.360.0370.02916.34
5.4.350.0410.03116.34
5.4.340.0410.02816.34
5.4.330.0000.00713.16
5.4.320.0400.02916.32
5.4.310.0380.03016.56
5.4.300.0390.03116.34
5.4.290.0450.03016.40
5.4.280.0400.02716.32
5.4.270.0400.02916.32
5.4.260.0360.03216.15
5.4.250.0350.03216.34
5.4.240.0430.02416.26
5.4.230.0350.03116.33
5.4.220.0350.03116.39
5.4.210.0330.03416.28
5.4.200.0370.03016.27
5.4.190.0370.03016.41
5.4.180.0380.02816.23
5.4.170.0430.02516.39
5.4.160.0440.02516.39
5.4.150.0450.03516.31
5.4.140.0320.03314.88
5.4.130.0350.02914.95
5.4.120.0380.02814.87
5.4.110.0330.03314.97
5.4.100.0370.03014.90
5.4.90.0350.02814.91
5.4.80.0380.02414.82
5.4.70.0090.02314.69
5.4.60.0090.02414.81
5.4.50.0080.03314.72
5.4.40.0100.04014.77
5.4.30.0190.03314.68
5.4.20.0200.03314.77
5.4.10.0050.00313.16
5.4.00.0000.00813.16

preferences:
50.3 ms | 401 KiB | 5 Q