3v4l.org

run code in 300+ PHP versions simultaneously
<?php $regex = '/(^a)|(.*(?=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.0000.01618.52
8.3.50.0100.01221.29
8.3.40.0110.01118.79
8.3.30.0100.01018.98
8.3.20.0030.00620.32
8.3.10.0000.00823.48
8.3.00.0030.00617.68
8.2.180.0070.01518.66
8.2.170.0110.00422.96
8.2.160.0100.01020.46
8.2.150.0060.00325.66
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0000.00817.63
8.2.110.0090.00020.12
8.2.100.0100.00317.63
8.2.90.0080.00019.05
8.2.80.0060.00317.97
8.2.70.0030.00617.63
8.2.60.0040.00417.91
8.2.50.0090.00318.07
8.2.40.0030.00621.17
8.2.30.0030.00520.71
8.2.20.0090.00017.69
8.2.10.0040.00417.93
8.2.00.0070.00017.97
8.1.280.0130.00325.92
8.1.270.0060.00322.20
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00523.96
8.1.230.0060.00622.88
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0000.01017.36
8.1.190.0040.00417.22
8.1.180.0040.00418.10
8.1.170.0000.00818.66
8.1.160.0000.00721.98
8.1.150.0040.00418.89
8.1.140.0050.00317.53
8.1.130.0030.00317.66
8.1.120.0030.00517.59
8.1.110.0050.00217.44
8.1.100.0000.00717.57
8.1.90.0030.00617.36
8.1.80.0090.00017.58
8.1.70.0000.00717.52
8.1.60.0040.00417.68
8.1.50.0000.00817.57
8.1.40.0030.00617.58
8.1.30.0030.00717.80
8.1.20.0040.00417.70
8.1.10.0080.00017.67
8.1.00.0030.00517.50
8.0.300.0000.00718.77
8.0.290.0040.00416.75
8.0.280.0040.00418.46
8.0.270.0040.00417.20
8.0.260.0050.00317.31
8.0.250.0000.00717.07
8.0.240.0060.00017.12
8.0.230.0000.00717.00
8.0.220.0070.00417.01
8.0.210.0040.00416.92
8.0.200.0040.00417.08
8.0.190.0040.00416.96
8.0.180.0030.00517.02
8.0.170.0030.00517.05
8.0.160.0060.00316.91
8.0.150.0080.00016.99
8.0.140.0090.00316.98
8.0.130.0050.00013.43
8.0.120.0080.00016.90
8.0.110.0000.00716.91
8.0.100.0030.00617.05
8.0.90.0040.00416.93
8.0.80.0110.00417.00
8.0.70.0040.00416.84
8.0.60.0040.00417.04
8.0.50.0000.00716.82
8.0.30.0130.00517.01
8.0.20.0120.00917.40
8.0.10.0050.00317.14
8.0.00.0110.00716.88
7.4.330.0050.00015.08
7.4.320.0000.00616.73
7.4.300.0000.00616.70
7.4.290.0040.00416.77
7.4.280.0070.00016.74
7.4.270.0040.00416.65
7.4.260.0040.00416.64
7.4.250.0070.00016.63
7.4.240.0000.00716.69
7.4.230.0000.00716.58
7.4.220.0140.00316.77
7.4.210.0070.00716.72
7.4.200.0070.00016.58
7.4.160.0100.01016.48
7.4.150.0180.00017.40
7.4.140.0100.01017.86
7.4.130.0060.01216.83
7.4.120.0090.00816.74
7.4.110.0130.01016.61
7.4.100.0060.01116.82
7.4.90.0100.00716.44
7.4.80.0100.01019.39
7.4.70.0060.01116.94
7.4.60.0100.00716.54
7.4.50.0000.00416.70
7.4.40.0100.01316.41
7.4.30.0170.00016.42
7.4.00.0100.00315.21
7.3.330.0030.00313.05
7.3.320.0070.00013.19
7.3.310.0070.00016.17
7.3.300.0030.00316.34
7.3.290.0070.00816.36
7.3.280.0090.01216.32
7.3.270.0160.00017.40
7.3.260.0130.00616.29
7.3.240.0120.01316.36
7.3.230.0100.00716.49
7.3.210.0070.01016.34
7.3.200.0100.00716.47
7.3.190.0090.00916.23
7.3.180.0090.00916.50
7.3.170.0060.01616.32
7.3.160.0100.01316.36
7.2.330.0070.01316.75
7.2.320.0140.00716.53
7.2.310.0120.00916.51
7.2.300.0100.00716.54
7.2.290.0000.01716.57
7.2.60.0060.00916.71
7.2.00.0070.00719.54
7.1.200.0110.00315.62
7.1.100.0060.00918.41
7.1.70.0000.00717.37
7.1.60.0130.01019.50
7.1.50.0030.02016.85
7.1.00.0100.06322.46
7.0.200.0040.00416.86
7.0.60.0100.07319.95
7.0.50.0000.05317.89
7.0.40.0100.05020.26
7.0.30.0200.06020.02
7.0.20.0170.04020.19
7.0.10.0000.04720.02
7.0.00.0030.04720.05
5.6.280.0030.03320.99
5.6.210.0170.07320.52
5.6.200.0070.08018.09
5.6.190.0130.06720.57
5.6.180.0300.08020.44
5.6.170.0300.06720.33
5.6.160.0030.08320.51
5.6.150.0030.05318.22
5.6.140.0130.04018.21
5.6.130.0070.04018.20
5.6.120.0000.08321.02
5.6.110.0170.07321.06
5.6.100.0070.03721.05
5.6.90.0130.08021.02
5.6.80.0070.03720.35
5.5.350.0000.04320.32
5.5.340.0030.04317.91
5.5.330.0030.04020.19
5.5.320.3470.04320.18
5.5.310.0300.07320.30
5.5.300.0100.07717.93
5.5.290.0130.06717.89
5.5.280.0030.04020.89
5.5.270.0030.06320.95
5.5.260.0000.07020.87
5.5.250.0100.08320.88
5.5.240.0130.06320.14
5.4.450.0930.05719.29
5.4.440.0800.06019.14
5.4.430.0730.06319.40
5.4.420.0930.06019.46
5.4.410.0800.05719.32
5.4.400.0930.06018.82
5.4.390.0730.05719.10
5.4.380.0870.04719.31
5.4.370.0730.06319.31
5.4.360.0930.06019.25
5.4.350.0800.05019.31
5.4.340.0770.06019.11
5.4.320.0730.05318.81
5.4.310.0870.05319.12
5.4.300.0800.05018.95
5.4.290.0770.05319.09
5.4.280.0800.05018.93
5.4.270.0800.05319.13
5.4.260.1030.05319.09
5.4.250.0930.04319.02
5.4.240.0830.04719.23
5.4.230.0770.04719.24
5.4.220.0600.06719.12
5.4.210.0870.04019.27
5.4.200.0830.04319.09
5.4.190.0830.04719.13
5.4.180.0770.05019.28
5.4.170.0900.05019.29
5.4.160.0730.05318.97
5.4.150.0770.05319.09
5.4.140.0870.04316.60
5.4.130.0730.05316.32
5.4.120.0870.05716.61
5.4.110.0900.04316.29
5.4.100.0800.05316.13
5.4.90.0900.07016.57
5.4.80.0930.06316.11
5.4.70.0200.03316.25
5.4.60.0030.04716.10
5.4.50.0070.03316.35
5.4.40.0100.05016.19
5.4.30.0230.07316.41
5.4.20.0000.06016.46

preferences:
53.54 ms | 401 KiB | 5 Q