3v4l.org

run code in 300+ PHP versions simultaneously
<?php $regex = '/(^aaaa)(.*(?=ab\K))/'; $subject = "aaaaxyzaabaa"; // Comment/uncomment below as wanted. // All 3 functions are vulnerable (note, other functions are affected as well) preg_match_all($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.0110.00418.43
8.3.50.0090.00921.07
8.3.40.0070.00718.98
8.3.30.0220.00618.92
8.3.20.0000.00820.34
8.3.10.0040.00423.52
8.3.00.0030.00619.66
8.2.180.0060.01018.91
8.2.170.0070.00722.96
8.2.160.0130.00720.57
8.2.150.0000.00824.18
8.2.140.0000.00824.66
8.2.130.0080.00026.16
8.2.120.0030.00617.75
8.2.110.0040.00420.47
8.2.100.0040.00817.75
8.2.90.0030.00619.22
8.2.80.0040.00417.97
8.2.70.0030.00617.59
8.2.60.0000.00818.04
8.2.50.0100.00018.07
8.2.40.0000.00821.32
8.2.30.0040.00420.64
8.2.20.0000.00717.84
8.2.10.0060.00318.05
8.2.00.0000.00718.06
8.1.280.0000.01525.92
8.1.270.0030.00623.92
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0030.00721.05
8.1.230.0110.00018.95
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0030.00617.34
8.1.190.0050.00317.23
8.1.180.0040.00418.10
8.1.170.0050.00318.54
8.1.160.0080.00021.90
8.1.150.0040.00418.88
8.1.140.0040.00417.57
8.1.130.0000.00817.69
8.1.120.0000.00717.45
8.1.110.0040.00417.59
8.1.100.0040.00417.52
8.1.90.0050.00217.50
8.1.80.0080.00017.43
8.1.70.0040.00417.56
8.1.60.0000.00717.55
8.1.50.0050.00317.66
8.1.40.0030.00517.59
8.1.30.0040.00717.72
8.1.20.0060.00317.62
8.1.10.0050.00317.68
8.1.00.0040.00417.55
8.0.300.0030.00518.77
8.0.290.0040.00416.61
8.0.280.0000.00718.46
8.0.270.0030.00317.09
8.0.260.0040.00417.08
8.0.250.0000.00717.14
8.0.240.0000.00716.98
8.0.230.0070.00017.04
8.0.220.0030.00817.03
8.0.210.0080.00017.07
8.0.200.0060.00017.05
8.0.190.0040.00416.97
8.0.180.0040.00416.95
8.0.170.0080.00016.95
8.0.160.0000.00817.05
8.0.150.0040.00416.96
8.0.140.0030.00716.84
8.0.130.0000.00613.45
8.0.120.0040.00416.96
8.0.110.0000.00816.92
8.0.100.0020.00517.04
8.0.90.0040.00416.86
8.0.80.0050.01016.99
8.0.70.0050.00217.07
8.0.60.0040.00416.93
8.0.50.0040.00416.86
8.0.30.0130.00717.19
8.0.20.0090.01017.40
8.0.10.0000.00717.11
8.0.00.0110.00816.74
7.4.330.0050.00015.11
7.4.320.0070.00016.79
7.4.300.0030.00316.75
7.4.290.0000.00716.79
7.4.280.0000.00716.58
7.4.270.0050.00216.75
7.4.260.0030.00316.71
7.4.250.0070.00016.60
7.4.240.0000.00716.68
7.4.230.0000.00716.84
7.4.220.0150.00316.59
7.4.210.0060.01316.69
7.4.200.0030.00316.46
7.4.160.0120.00316.61
7.4.150.0140.00317.40
7.4.140.0070.01517.86
7.4.130.0090.00816.63
7.4.120.0080.01516.76
7.4.110.0100.00716.56
7.4.100.0100.00716.53
7.4.90.0090.00916.62
7.4.80.0060.01919.39
7.4.70.0110.01116.41
7.4.60.0030.02016.66
7.4.50.0000.00616.74
7.4.40.0170.00016.58
7.4.30.0060.01116.61
7.4.00.0000.00815.20
7.3.330.0000.00613.09
7.3.320.0030.00513.10
7.3.310.0030.00616.32
7.3.300.0030.00316.45
7.3.290.0060.00816.37
7.3.280.0080.00916.35
7.3.270.0070.01017.40
7.3.260.0070.01816.36
7.3.250.0100.00716.38
7.3.240.0150.00816.34
7.3.230.0030.01316.61
7.3.210.0060.01216.44
7.3.200.0110.01116.75
7.3.190.0090.00616.46
7.3.180.0090.00916.45
7.3.170.0120.00916.57
7.3.160.0130.01016.55
7.2.330.0190.00016.63
7.2.320.0130.00316.65
7.2.310.0110.00816.59
7.2.300.0140.00416.62
7.2.290.0130.00316.61
7.2.60.0110.00416.75
7.2.00.0040.00719.45
7.1.200.0060.00615.86
7.1.100.0070.00718.18
7.1.70.0000.01217.29
7.1.60.0100.01419.50
7.1.50.0110.01416.82
7.1.00.0070.07022.35
7.0.200.0000.01016.53
7.0.60.0130.07319.91
7.0.50.0030.04317.82
7.0.40.0000.05719.93
7.0.30.0230.04720.11
7.0.20.0200.03720.34
7.0.10.0070.08720.19
7.0.00.0030.05020.01
5.6.280.0030.03020.86
5.6.210.0070.07320.50
5.6.200.0070.07318.22
5.6.190.0170.06020.45
5.6.180.0330.07320.49
5.6.170.0330.07020.62
5.6.160.0070.05020.44
5.6.150.0000.07718.12
5.6.140.0130.06718.15
5.6.130.0070.08018.11
5.6.120.0100.04721.14
5.6.110.0070.07021.18
5.6.100.0070.07321.45
5.6.90.0030.04321.16
5.6.80.0070.08320.44
5.5.350.0000.08320.38
5.5.340.0070.07717.92
5.5.330.0070.07720.07
5.5.320.3230.03720.51
5.5.310.0170.08020.17
5.5.300.0070.03717.98
5.5.290.0070.06317.93
5.5.280.0000.04721.08
5.5.270.0000.05320.77
5.5.260.0130.04320.88
5.5.250.0070.08020.78
5.5.240.0100.07320.33
5.4.450.0970.05019.60
5.4.440.0730.06019.25
5.4.430.0830.05019.41
5.4.420.0870.06319.31
5.4.410.0730.05719.16
5.4.400.0830.05019.32
5.4.390.0800.06318.81
5.4.380.0800.07019.14
5.4.370.0900.05318.93
5.4.360.0800.05318.93
5.4.350.0800.05019.28
5.4.340.0730.06019.31
5.4.320.0800.06319.13
5.4.310.1030.06319.14
5.4.300.0870.06018.94
5.4.290.0830.04319.14
5.4.280.0800.05719.14
5.4.270.0830.05719.09
5.4.260.0870.06319.24
5.4.250.0970.05019.12
5.4.240.0770.05718.92
5.4.230.0800.05019.29
5.4.220.0830.06019.91
5.4.210.0900.05019.09
5.4.200.1000.06319.30
5.4.190.0830.06719.13
5.4.180.0830.04319.28
5.4.170.0730.05719.03
5.4.160.0730.06019.12
5.4.150.0700.06018.87
5.4.140.0670.05716.39
5.4.130.0800.04316.27
5.4.120.0800.06316.40
5.4.110.0800.04716.27
5.4.100.0730.05016.61
5.4.90.0800.04016.27
5.4.80.0770.04716.48
5.4.70.0170.06316.45
5.4.60.0000.04316.36
5.4.50.0000.07016.43
5.4.40.0270.05016.36
5.4.30.0300.05016.41
5.4.20.0200.03316.41

preferences:
48.51 ms | 401 KiB | 5 Q