3v4l.org

run code in 300+ PHP versions simultaneously
<?php $regex = '/(.*(?=ab\K))/'; $subject = "aaaaxyzaabaa"; // Comment/uncomment below as wanted. // All 3 functions are vulnerable (note, other functions are affected as well) preg_match($regex,$subject,$x); 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.0120.00318.68
8.3.50.0150.00016.64
8.3.40.0130.00618.96
8.3.30.0110.00419.02
8.3.20.0070.00020.16
8.3.10.0040.00423.61
8.3.00.0040.00417.80
8.2.180.0140.00718.63
8.2.170.0070.00722.96
8.2.160.0100.01020.39
8.2.150.0100.01025.66
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0090.00017.75
8.2.110.0030.00619.45
8.2.100.0080.00417.75
8.2.90.0040.00419.22
8.2.80.0090.00017.97
8.2.70.0060.00317.63
8.2.60.0080.00017.88
8.2.50.0080.00418.07
8.2.40.0080.00021.30
8.2.30.0000.00820.63
8.2.20.0030.00517.65
8.2.10.0040.00417.82
8.2.00.0030.00618.06
8.1.280.0160.00025.92
8.1.270.0100.00623.82
8.1.260.0030.00526.35
8.1.250.0050.00228.09
8.1.240.0060.00322.61
8.1.230.0080.00417.48
8.1.220.0030.00517.74
8.1.210.0000.00818.77
8.1.200.0040.00417.35
8.1.190.0030.00617.35
8.1.180.0000.00718.10
8.1.170.0050.00318.65
8.1.160.0000.00721.96
8.1.150.0050.00218.71
8.1.140.0050.00317.56
8.1.130.0050.00317.66
8.1.120.0000.00817.54
8.1.110.0000.00817.52
8.1.100.0040.00417.54
8.1.90.0040.00417.46
8.1.80.0000.00817.42
8.1.70.0000.00717.57
8.1.60.0000.00817.63
8.1.50.0050.00317.66
8.1.40.0000.00717.60
8.1.30.0040.00717.72
8.1.20.0000.00717.75
8.1.10.0080.00017.57
8.1.00.0000.00717.45
8.0.300.0030.00618.77
8.0.290.0030.00616.88
8.0.280.0030.00318.38
8.0.270.0040.00417.19
8.0.260.0080.00017.19
8.0.250.0040.00417.01
8.0.240.0070.00017.01
8.0.230.0000.00717.02
8.0.220.0050.00217.02
8.0.210.0000.00717.00
8.0.200.0070.00016.98
8.0.190.0000.00816.96
8.0.180.0070.00016.98
8.0.170.0050.00317.09
8.0.160.0000.00717.04
8.0.150.0070.00016.99
8.0.140.0030.00717.04
8.0.130.0030.00313.41
8.0.120.0030.00617.04
8.0.110.0040.00416.85
8.0.100.0030.00617.14
8.0.90.0030.00517.14
8.0.80.0070.00716.94
8.0.70.0000.00716.92
8.0.60.0040.00417.02
8.0.50.0040.00416.97
8.0.30.0110.00817.10
8.0.20.0120.00817.40
8.0.10.0040.00417.17
8.0.00.0090.01216.93
7.4.330.0020.00215.11
7.4.320.0000.00616.57
7.4.300.0030.00316.66
7.4.290.0040.00416.65
7.4.280.0030.00616.73
7.4.270.0060.00316.63
7.4.260.0040.00416.71
7.4.250.0070.00016.62
7.4.240.0000.00716.63
7.4.230.0030.00316.55
7.4.220.0070.01016.80
7.4.210.0110.00316.57
7.4.200.0050.00216.76
7.4.160.0090.01216.62
7.4.150.0130.00717.40
7.4.140.0060.01417.86
7.4.130.0120.00616.62
7.4.120.0100.00716.78
7.4.110.0160.01016.55
7.4.100.0120.00516.44
7.4.90.0150.00316.72
7.4.80.0030.01419.39
7.4.70.0110.00816.67
7.4.60.0030.01516.50
7.4.50.0030.00616.71
7.4.40.0090.00916.57
7.4.30.0080.00916.62
7.4.00.0030.00714.91
7.3.330.0030.00313.13
7.3.320.0000.00713.18
7.3.310.0040.00316.48
7.3.300.0000.00616.35
7.3.290.0110.00716.37
7.3.280.0080.00916.34
7.3.270.0140.00417.40
7.3.260.0150.00916.46
7.3.240.0140.01016.35
7.3.230.0070.01016.39
7.3.210.0060.01016.73
7.3.200.0070.01016.52
7.3.190.0090.00916.50
7.3.180.0090.00916.30
7.3.170.0000.01616.69
7.3.160.0110.01216.50
7.3.10.0030.01316.75
7.3.00.0000.01416.59
7.2.330.0000.01916.50
7.2.320.0130.00416.45
7.2.310.0100.00716.48
7.2.300.0100.00616.40
7.2.290.0030.01516.70
7.2.130.0030.01316.95
7.2.120.0090.00616.98
7.2.110.0000.01016.87
7.2.100.0060.00316.95
7.2.90.0070.00716.88
7.2.80.0050.00517.00
7.2.70.0070.00716.88
7.2.60.0090.00616.85
7.2.50.0000.01716.74
7.2.40.0030.00716.97
7.2.30.0030.01216.72
7.2.20.0080.00416.90
7.2.10.0070.00316.74
7.2.00.0080.00518.28
7.1.250.0000.00915.85
7.1.200.0000.01316.00
7.1.100.0060.00918.24
7.1.70.0000.00917.21
7.1.60.0030.02019.50
7.1.50.0140.01016.70
7.1.00.0070.07322.39
7.0.200.0000.00716.86
7.0.60.0030.05719.95
7.0.50.0130.07317.79
7.0.40.0170.04720.10
7.0.30.0330.06320.21
7.0.20.0370.04720.13
7.0.10.0030.04720.22
7.0.00.0030.05320.17
5.6.280.0100.03021.07
5.6.210.0100.05720.60
5.6.200.0030.04318.19
5.6.190.0030.05020.66
5.6.180.0200.04020.35
5.6.170.0330.07320.47
5.6.160.0070.08720.46
5.6.150.0070.04718.04
5.6.140.0100.04018.22
5.6.130.0100.07718.14
5.6.120.0070.08321.04
5.6.110.0170.07721.18
5.6.100.0200.07721.10
5.6.90.0070.03721.19
5.6.80.0070.04320.55
5.5.350.0100.08020.40
5.5.340.0000.05717.91
5.5.330.0030.04720.46
5.5.320.3830.04720.29
5.5.310.0170.04320.20
5.5.300.0170.07017.98
5.5.290.0070.08018.00
5.5.280.0030.06321.08
5.5.270.0070.06720.96
5.5.260.0130.07020.97
5.5.250.0270.05020.79
5.5.240.0030.03020.25
5.4.450.0730.06319.30
5.4.440.0800.07019.57
5.4.430.0970.07019.27
5.4.420.1030.08319.11
5.4.410.0670.06719.14
5.4.400.0800.07319.13
5.4.390.0970.08019.29
5.4.380.1000.06319.26
5.4.370.0900.05718.81
5.4.360.0830.06319.25
5.4.350.0930.05318.78
5.4.340.0870.06018.90
5.4.320.0800.08319.14
5.4.310.0670.06019.04
5.4.300.0900.06719.09
5.4.290.1070.05719.09
5.4.280.0800.06019.14
5.4.270.1000.05019.09
5.4.260.1030.06019.14
5.4.250.0970.06019.09
5.4.240.1030.06318.96
5.4.230.0870.05019.13
5.4.220.0770.05718.94
5.4.210.0730.06019.31
5.4.200.0900.07319.02
5.4.190.0730.07018.80
5.4.180.0770.06018.98
5.4.170.0800.05718.79
5.4.160.0670.06319.00
5.4.150.0830.05719.07
5.4.140.0830.05016.29
5.4.130.0770.05316.25
5.4.120.0770.06016.24
5.4.110.0870.07716.49
5.4.100.0870.05716.46
5.4.90.0800.04316.29
5.4.80.0730.05016.40
5.4.70.0330.06316.68
5.4.60.0030.04316.25
5.4.50.0000.07716.45
5.4.40.0270.06716.52
5.4.30.0370.05016.36
5.4.20.0070.04316.22

preferences:
51.83 ms | 401 KiB | 5 Q