3v4l.org

run code in 300+ PHP versions simultaneously
<?php $regex = '/(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.0110.00718.30
8.3.50.0090.01021.91
8.3.40.0110.00718.83
8.3.30.0110.00418.61
8.3.20.0050.00320.33
8.3.10.0050.00323.66
8.3.00.0080.00017.68
8.2.180.0070.01116.88
8.2.170.0070.00722.96
8.2.160.0100.00320.30
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0050.00319.38
8.2.110.0000.01022.37
8.2.100.0080.00417.63
8.2.90.0060.00319.09
8.2.80.0060.00317.97
8.2.70.0030.00617.63
8.2.60.0000.00917.80
8.2.50.0060.00318.07
8.2.40.0030.00621.13
8.2.30.0030.00620.58
8.2.20.0040.00417.64
8.2.10.0040.00417.95
8.2.00.0040.00418.07
8.1.280.0090.00625.92
8.1.270.0030.00623.96
8.1.260.0050.00226.35
8.1.250.0070.00028.09
8.1.240.0140.00322.20
8.1.230.0040.00817.48
8.1.220.0030.00617.74
8.1.210.0040.00418.77
8.1.200.0040.00417.48
8.1.190.0050.00317.13
8.1.180.0080.00018.10
8.1.170.0000.00918.62
8.1.160.0000.00722.03
8.1.150.0000.00918.91
8.1.140.0050.00317.59
8.1.130.0000.00717.64
8.1.120.0040.00417.43
8.1.110.0040.00417.43
8.1.100.0000.00717.43
8.1.90.0040.00317.59
8.1.80.0000.00717.46
8.1.70.0000.00717.46
8.1.60.0030.00517.64
8.1.50.0060.00317.56
8.1.40.0000.00817.48
8.1.30.0070.00417.73
8.1.20.0030.00617.78
8.1.10.0000.00717.54
8.1.00.0050.00317.55
8.0.300.0000.00818.77
8.0.290.0030.00516.75
8.0.280.0070.00018.39
8.0.270.0070.00017.12
8.0.260.0000.00717.20
8.0.250.0070.00017.00
8.0.240.0030.00317.01
8.0.230.0030.00517.02
8.0.220.0070.00017.00
8.0.210.0000.00717.01
8.0.200.0040.00416.95
8.0.190.0030.00517.01
8.0.180.0070.00016.99
8.0.170.0080.00016.91
8.0.160.0040.00417.00
8.0.150.0000.00716.91
8.0.140.0030.00716.82
8.0.130.0000.00613.45
8.0.120.0080.00016.95
8.0.110.0070.00016.85
8.0.100.0040.00416.96
8.0.90.0050.00316.88
8.0.80.0110.00416.98
8.0.70.0000.00716.96
8.0.60.0030.00316.80
8.0.50.0000.00716.84
8.0.30.0110.01117.15
8.0.20.0110.00717.40
8.0.10.0040.00417.09
8.0.00.0100.01116.76
7.4.330.0000.00515.08
7.4.320.0030.00316.76
7.4.300.0030.00316.63
7.4.290.0000.00716.64
7.4.280.0080.00016.64
7.4.270.0000.00816.67
7.4.260.0040.00416.61
7.4.250.0040.00416.65
7.4.240.0010.00616.64
7.4.230.0070.00016.79
7.4.220.0030.01416.68
7.4.210.0070.00716.59
7.4.200.0030.00316.72
7.4.160.0110.00716.26
7.4.150.0060.01317.40
7.4.140.0150.00517.86
7.4.130.0080.00816.54
7.4.120.0120.00816.61
7.4.110.0170.00616.74
7.4.100.0100.01316.80
7.4.90.0100.00716.72
7.4.80.0050.01419.39
7.4.70.0030.01516.73
7.4.60.0120.00316.46
7.4.50.0070.00316.47
7.4.40.0050.01116.63
7.4.30.0130.00716.61
7.4.00.0090.00815.02
7.3.330.0020.00213.21
7.3.320.0000.00613.11
7.3.310.0050.00316.36
7.3.300.0000.00716.27
7.3.290.0060.01116.27
7.3.280.0070.00916.27
7.3.270.0100.01017.40
7.3.260.0160.01016.29
7.3.250.0050.01416.25
7.3.240.0110.01116.68
7.3.230.0120.00916.39
7.3.210.0100.00716.25
7.3.200.0150.00416.23
7.3.190.0160.00016.59
7.3.180.0060.01016.24
7.3.170.0100.00616.41
7.3.160.0100.01116.50
7.3.120.0080.00914.68
7.3.110.0040.00914.76
7.3.100.0110.00314.69
7.3.90.0100.00614.67
7.3.80.0070.00714.82
7.3.70.0070.00614.79
7.3.60.0070.00714.92
7.3.50.0050.00814.75
7.3.40.0080.00514.73
7.3.30.0050.00414.52
7.3.20.0060.00416.57
7.3.10.0100.00516.65
7.3.00.0070.00716.60
7.2.330.0130.00316.74
7.2.320.0130.01016.63
7.2.310.0080.00816.52
7.2.300.0100.01316.82
7.2.290.0060.01016.81
7.2.250.0080.01115.02
7.2.240.0090.00915.09
7.2.230.0020.01214.88
7.2.220.0080.00615.02
7.2.210.0050.00715.12
7.2.200.0050.00815.04
7.2.190.0070.01015.18
7.2.180.0060.01015.15
7.2.170.0030.00814.91
7.2.60.0120.00316.82
7.1.330.0050.01015.99
7.1.320.0030.00915.79
7.1.310.0060.00616.00
7.1.300.0050.00915.91
7.1.290.0080.01015.92
7.1.280.0060.00815.94
7.1.270.0030.00815.84
7.1.260.0020.01215.76
7.1.200.0060.00615.76
7.1.100.0040.00718.13
7.1.70.0030.00517.33
7.1.60.0030.01719.50
7.1.50.0070.01017.18
7.1.00.0030.07022.34
7.0.200.0250.00814.92
7.0.60.0100.08020.03
7.0.50.0230.07317.93
7.0.40.0170.07719.98
7.0.30.0170.04320.01
7.0.20.0300.03320.10
7.0.10.0100.08320.21
7.0.00.0070.07020.18
5.6.280.0000.03321.11
5.6.210.0070.08020.60
5.6.200.0070.08018.15
5.6.190.0130.08320.45
5.6.180.0100.04720.67
5.6.170.0230.05720.45
5.6.160.0130.07720.33
5.6.150.0070.08018.19
5.6.140.0070.08018.12
5.6.130.0070.05018.11
5.6.120.0070.05020.99
5.6.110.0170.07321.10
5.6.100.0130.07721.03
5.6.90.0100.05020.99
5.6.80.0170.07720.50
5.5.350.0000.09020.34
5.5.340.0030.04717.98
5.5.330.0070.08320.21
5.5.320.0370.07320.54
5.5.310.0270.04320.16
5.5.300.0070.08018.01
5.5.290.0100.06717.91
5.5.280.0070.05020.86
5.5.270.0130.06320.66
5.5.260.0130.07720.78
5.5.250.0100.03720.57
5.5.240.0100.04020.16
5.4.450.0370.05019.41
5.4.440.0400.03719.43
5.4.430.0400.07019.11
5.4.420.0230.04719.13
5.4.410.0370.06719.18
5.4.400.0400.06719.09
5.4.390.0400.06718.94
5.4.380.0230.04318.91
5.4.370.0400.06718.79
5.4.360.0470.06318.92
5.4.350.0300.04019.07
5.4.340.0400.06319.09
5.4.320.0330.06318.80
5.4.310.0430.06319.08
5.4.300.0400.06018.95
5.4.290.0470.05719.06
5.4.280.0330.04718.85
5.4.270.0470.06018.96
5.4.260.0370.06018.99
5.4.250.0370.04319.01
5.4.240.0370.05019.00
5.4.230.0370.07018.74
5.4.220.0400.07018.95
5.4.210.0430.06018.80
5.4.200.0400.04319.07
5.4.190.0430.06018.97
5.4.180.0500.05718.99
5.4.170.0370.06318.98
5.4.160.0400.07318.96
5.4.150.0330.05318.96
5.4.140.0330.05716.44
5.4.130.0400.03316.20
5.4.120.0270.03716.30
5.4.110.0500.06716.44
5.4.100.0370.06316.05
5.4.90.0470.03016.30
5.4.80.0370.05316.40

preferences:
55.52 ms | 401 KiB | 5 Q