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, '\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.01418.43
8.3.50.0070.01322.06
8.3.40.0080.00818.59
8.3.30.0150.00418.84
8.3.20.0080.00020.22
8.3.10.0070.00023.66
8.3.00.0040.00419.66
8.2.180.0110.01118.54
8.2.170.0070.00722.96
8.2.160.0080.00820.35
8.2.150.0040.00424.18
8.2.140.0000.00724.66
8.2.130.0040.00426.16
8.2.120.0090.00017.75
8.2.110.0030.00621.17
8.2.100.0060.00617.75
8.2.90.0040.00419.05
8.2.80.0090.00017.97
8.2.70.0040.00417.75
8.2.60.0110.00017.91
8.2.50.0030.00518.07
8.2.40.0030.00621.30
8.2.30.0060.00320.51
8.2.20.0060.00317.77
8.2.10.0050.00218.06
8.2.00.0000.00818.06
8.1.280.0030.01025.92
8.1.270.0000.00824.00
8.1.260.0070.00026.35
8.1.250.0000.00828.09
8.1.240.0090.00022.08
8.1.230.0080.00319.14
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0090.00017.47
8.1.190.0000.00817.23
8.1.180.0000.00818.10
8.1.170.0040.00418.45
8.1.160.0040.00422.00
8.1.150.0000.00818.95
8.1.140.0000.00817.40
8.1.130.0020.00517.57
8.1.120.0080.00017.57
8.1.110.0040.00417.51
8.1.100.0000.00717.58
8.1.90.0000.00717.54
8.1.80.0030.00517.49
8.1.70.0030.00317.50
8.1.60.0040.00417.54
8.1.50.0070.00017.62
8.1.40.0000.00717.64
8.1.30.0070.00317.71
8.1.20.0050.00317.58
8.1.10.0000.00817.55
8.1.00.0090.00017.57
8.0.300.0070.00018.77
8.0.290.0000.00716.72
8.0.280.0000.00718.32
8.0.270.0070.00017.14
8.0.260.0000.00717.12
8.0.250.0000.00717.05
8.0.240.0040.00417.00
8.0.230.0040.00416.87
8.0.220.0030.00317.00
8.0.210.0030.00416.87
8.0.200.0060.00016.98
8.0.190.0040.00417.04
8.0.180.0030.00417.01
8.0.170.0030.00517.00
8.0.160.0060.00316.88
8.0.150.0050.00316.95
8.0.140.0080.00416.96
8.0.130.0030.00313.48
8.0.120.0000.00816.94
8.0.110.0040.00416.99
8.0.100.0000.00816.97
8.0.90.0000.00716.86
8.0.80.0100.01016.92
8.0.70.0000.00716.94
8.0.60.0050.00316.97
8.0.50.0040.00416.76
8.0.30.0120.00517.08
8.0.20.0070.01117.40
8.0.10.0000.00817.08
8.0.00.0100.01016.96
7.4.330.0000.00515.11
7.4.320.0000.00716.63
7.4.300.0040.00416.63
7.4.290.0060.00016.66
7.4.280.0040.00416.73
7.4.270.0030.00316.57
7.4.260.0040.00416.62
7.4.250.0040.00416.60
7.4.240.0040.00316.74
7.4.230.0030.00316.80
7.4.220.0230.00316.68
7.4.210.0030.01216.80
7.4.200.0030.00316.83
7.4.160.0080.00816.37
7.4.150.0190.00617.40
7.4.140.0080.01017.86
7.4.130.0030.01416.37
7.4.120.0140.00316.61
7.4.110.0200.00316.77
7.4.100.0120.01016.67
7.4.90.0120.00716.60
7.4.80.0070.01419.39
7.4.70.0140.00316.73
7.4.60.0110.00716.57
7.4.50.0000.00816.66
7.4.40.0090.01416.68
7.4.30.0100.00716.55
7.4.00.0070.01015.04
7.3.330.0000.00513.18
7.3.320.0090.00013.04
7.3.310.0000.00716.28
7.3.300.0000.00716.19
7.3.290.0090.00816.27
7.3.280.0110.00816.30
7.3.270.0040.01317.40
7.3.260.0130.01016.27
7.3.240.0070.01416.53
7.3.230.0100.00716.66
7.3.210.0170.00016.40
7.3.200.0090.00916.31
7.3.190.0100.00716.32
7.3.180.0070.01016.54
7.3.170.0100.00716.28
7.3.160.0160.00716.36
7.3.120.0000.01614.75
7.3.110.0030.01014.84
7.3.100.0070.00414.82
7.3.90.0060.00314.65
7.3.80.0000.01015.09
7.3.70.0070.00314.71
7.3.60.0040.01114.86
7.3.50.0000.01414.93
7.3.40.0070.00314.49
7.3.30.0120.00014.61
7.3.20.0040.01116.46
7.3.10.0090.00616.61
7.3.00.0130.00316.57
7.2.330.0100.01016.58
7.2.320.0090.00816.46
7.2.310.0100.00716.63
7.2.300.0100.00716.65
7.2.290.0130.01016.66
7.2.250.0030.01315.09
7.2.240.0100.01015.21
7.2.230.0060.00915.07
7.2.220.0060.00615.16
7.2.210.0080.00414.76
7.2.200.0070.00715.09
7.2.190.0030.01215.06
7.2.180.0000.01415.09
7.2.170.0060.00615.11
7.2.130.0100.00317.00
7.2.120.0150.00616.96
7.2.110.0140.00316.77
7.2.100.0070.00716.71
7.2.90.0140.00716.76
7.2.80.0070.00816.58
7.2.70.0100.00516.58
7.2.60.0080.00816.84
7.2.50.0090.00616.79
7.2.40.0140.00716.69
7.2.30.0090.01316.50
7.2.20.0170.01016.96
7.2.10.0130.01316.75
7.2.00.0140.00318.21
7.1.330.0000.01416.00
7.1.320.0040.00815.93
7.1.310.0070.00316.00
7.1.300.0080.00815.91
7.1.290.0060.00915.96
7.1.280.0100.00315.59
7.1.270.0070.00415.62
7.1.260.0100.00615.61
7.1.250.0080.00815.77
7.1.200.0040.01115.66
7.1.100.0030.01017.77
7.1.70.0030.00617.29
7.1.60.0090.01619.50
7.1.50.0030.02016.84
7.1.00.0070.07322.56
7.0.200.0030.00616.95
7.0.120.0100.07722.08
7.0.110.0000.05021.96
7.0.100.0100.07321.98
7.0.90.0100.08722.10
7.0.80.0070.07022.09
7.0.70.0000.07022.00
7.0.60.0000.08321.88
7.0.50.0100.08721.92
7.0.40.0000.08319.94
7.0.30.0070.06720.10
7.0.20.0000.05319.98
7.0.10.0070.03720.00
7.0.00.0030.03720.12
5.6.280.0000.03320.99
5.6.270.0000.05320.92
5.6.260.0030.07021.04
5.6.250.0130.06720.75
5.6.240.0070.07320.80
5.6.230.0130.08020.78
5.6.220.0000.07320.67
5.6.210.0030.07020.97
5.6.200.0000.08020.98
5.6.190.0100.07020.94
5.6.180.0070.06720.95
5.6.170.0000.07320.83
5.6.160.0070.03720.87
5.6.150.0000.04320.95
5.6.140.0000.04321.01
5.6.130.0000.04020.95
5.6.120.0000.04321.20
5.6.110.0030.03721.28
5.6.100.0030.03021.29
5.6.90.0000.03721.50
5.6.80.0000.03320.74
5.6.70.0070.03320.76
5.6.60.0030.03020.74
5.6.50.0000.03320.68
5.6.40.0000.03720.62
5.6.30.0000.04020.68
5.6.20.0000.06720.84
5.6.10.0000.07020.85
5.6.00.0030.07320.63
5.5.380.0030.08717.39
5.5.370.0000.08017.54
5.5.360.0100.07317.38
5.5.350.0070.07017.65
5.5.340.0030.07318.16
5.5.330.0000.04017.86
5.5.320.0100.06718.09
5.5.310.0000.05317.77
5.5.300.0000.04017.85
5.5.290.0000.04017.89
5.5.280.0030.04018.27
5.5.270.0070.03318.27
5.5.260.0000.03318.25
5.5.250.0000.03318.27
5.5.240.0070.04017.57
5.5.230.0000.03717.83
5.5.220.0000.03318.70
5.5.210.0030.03017.66
5.5.200.0030.07317.86
5.5.190.0000.05017.89
5.5.180.0130.02717.80
5.5.160.0000.03717.71
5.5.150.0030.07717.80
5.5.140.0030.04017.66
5.5.130.0130.07017.89
5.5.120.0000.04317.61
5.5.110.0070.05317.70
5.5.100.0000.03717.58
5.5.90.0030.04017.70
5.5.80.0030.03317.76
5.5.70.0000.04317.52
5.5.60.0000.04017.75
5.5.50.0000.04317.73
5.5.40.0030.06717.79
5.5.30.0130.02317.78
5.5.20.0030.04017.77
5.5.10.0030.06717.73
5.5.00.0000.05717.43
5.4.450.0030.04319.36
5.4.440.0030.03719.66
5.4.430.0030.03719.64
5.4.420.0030.03719.56
5.4.410.0070.02719.42
5.4.400.0030.03019.28
5.4.390.0000.03019.41
5.4.380.0030.02719.37
5.4.370.0070.07019.32
5.4.360.0000.04319.32
5.4.350.0030.05319.36
5.4.340.0030.07319.33
5.4.320.0070.06019.62
5.4.310.0000.05719.44
5.4.300.0070.06019.18
5.4.290.0000.03719.22
5.4.280.0030.03719.28
5.4.270.0000.07719.53
5.4.260.0000.04319.25
5.4.250.0030.03719.43
5.4.240.0030.07019.36
5.4.230.0030.04019.27
5.4.220.0030.06719.25
5.4.210.0030.07019.25
5.4.200.0000.04019.27
5.4.190.0030.06320.18
5.4.180.0000.04320.27
5.4.170.0030.03719.32
5.4.160.0000.04019.32
5.4.150.0030.06019.42
5.4.140.0070.03716.85
5.4.130.0070.05716.81
5.4.120.0030.03316.78
5.4.110.0070.06716.84
5.4.100.0100.06316.79
5.4.90.0070.04716.74
5.4.80.0000.06716.50
5.4.70.0070.04316.74
5.4.60.0000.07316.69
5.4.50.0030.07016.77
5.4.40.0030.05016.79
5.4.30.0000.03716.71
5.4.20.0000.03316.68
5.4.10.0000.06316.64
5.4.00.0000.06016.21

preferences:
49.57 ms | 401 KiB | 5 Q