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.0070.01018.43
8.3.50.0090.00921.15
8.3.40.0070.00718.96
8.3.30.0040.01118.98
8.3.20.0000.00720.33
8.3.10.0050.00323.66
8.3.00.0040.00419.56
8.2.180.0060.01518.78
8.2.170.0120.00322.96
8.2.160.0140.00720.42
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0020.00526.16
8.2.120.0040.00417.63
8.2.110.0080.00020.14
8.2.100.0040.00817.84
8.2.90.0070.00018.81
8.2.80.0040.00417.97
8.2.70.0060.00317.75
8.2.60.0040.00417.79
8.2.50.0060.00618.07
8.2.40.0000.00821.25
8.2.30.0000.00820.55
8.2.20.0000.00717.82
8.2.10.0030.00517.88
8.2.00.0000.00718.00
8.1.280.0090.00625.92
8.1.270.0000.00823.83
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0000.01022.00
8.1.230.0000.01120.91
8.1.220.0000.00817.74
8.1.210.0030.00518.77
8.1.200.0030.00617.35
8.1.190.0030.00517.13
8.1.180.0030.00518.10
8.1.170.0050.00318.40
8.1.160.0000.00722.01
8.1.150.0050.00318.81
8.1.140.0040.00417.52
8.1.130.0000.00717.69
8.1.120.0030.00417.46
8.1.110.0040.00417.51
8.1.100.0000.00717.49
8.1.90.0000.00817.52
8.1.80.0050.00317.38
8.1.70.0000.00717.48
8.1.60.0040.00417.59
8.1.50.0030.00517.65
8.1.40.0000.00817.54
8.1.30.0000.01117.65
8.1.20.0000.00817.61
8.1.10.0060.00317.57
8.1.00.0000.00717.50
8.0.300.0000.00718.77
8.0.290.0000.00716.88
8.0.280.0000.00718.39
8.0.270.0040.00417.19
8.0.260.0060.00017.21
8.0.250.0000.00716.97
8.0.240.0030.00317.11
8.0.230.0060.00316.99
8.0.220.0000.01016.94
8.0.210.0000.00716.94
8.0.200.0030.00317.00
8.0.190.0040.00417.09
8.0.180.0050.00317.05
8.0.170.0040.00417.05
8.0.160.0030.00317.00
8.0.150.0060.00317.05
8.0.140.0030.00716.84
8.0.130.0030.00313.43
8.0.120.0040.00416.99
8.0.110.0050.00216.91
8.0.100.0070.00016.92
8.0.90.0040.00417.06
8.0.80.0040.01117.00
8.0.70.0040.00416.90
8.0.60.0030.00317.03
8.0.50.0070.00017.07
8.0.30.0090.01117.14
8.0.20.0150.00317.40
8.0.10.0040.00417.26
8.0.00.0090.00916.82
7.4.330.0020.00215.08
7.4.320.0000.00716.63
7.4.300.0000.00616.59
7.4.290.0070.00016.53
7.4.280.0000.00716.66
7.4.270.0030.00316.66
7.4.260.0030.00316.72
7.4.250.0040.00416.68
7.4.240.0020.00616.55
7.4.230.0070.00016.72
7.4.220.0110.00816.61
7.4.210.0100.01016.63
7.4.200.0070.00016.56
7.4.160.0130.00316.59
7.4.150.0030.01317.40
7.4.140.0080.01017.86
7.4.130.0080.01116.69
7.4.120.0100.01016.77
7.4.110.0070.01116.72
7.4.100.0110.01116.52
7.4.90.0140.01016.81
7.4.80.0100.01019.39
7.4.70.0130.01016.68
7.4.60.0130.00316.62
7.4.50.0040.00416.82
7.4.40.0000.01816.66
7.4.30.0140.00616.73
7.4.00.0040.01115.02
7.3.330.0000.00713.32
7.3.320.0040.00413.27
7.3.310.0050.00316.20
7.3.300.0030.00316.34
7.3.290.0060.01016.27
7.3.280.0080.00916.40
7.3.270.0100.00717.40
7.3.260.0100.01116.59
7.3.240.0070.01816.54
7.3.230.0030.01316.39
7.3.210.0100.00716.38
7.3.200.0080.00816.26
7.3.190.0170.00016.29
7.3.180.0090.00916.38
7.3.170.0100.01216.42
7.3.160.0030.01716.61
7.3.10.0000.01116.42
7.3.00.0000.01016.50
7.2.330.0060.01216.61
7.2.320.0030.01316.54
7.2.310.0150.00316.70
7.2.300.0110.00816.66
7.2.290.0030.01416.64
7.2.130.0000.01416.65
7.2.120.0040.00816.76
7.2.110.0070.01116.60
7.2.100.0150.00016.94
7.2.90.0110.00716.96
7.2.80.0070.00716.82
7.2.70.0060.00616.88
7.2.60.0100.00516.69
7.2.50.0080.00416.91
7.2.40.0090.00616.82
7.2.30.0040.00416.89
7.2.20.0060.00617.09
7.2.10.0150.00016.72
7.2.00.0030.00618.05
7.1.250.0060.00315.62
7.1.200.0080.00315.92
7.1.100.0040.00418.23
7.1.70.0040.00417.29
7.1.60.0130.01019.50
7.1.50.0140.01116.87
7.1.00.0070.07022.45
7.0.200.0040.00416.76
7.0.60.0070.04319.97
7.0.50.0000.04317.78
7.0.40.0100.05320.21
7.0.30.0270.07320.18
7.0.20.0200.04320.21
7.0.10.0100.06020.01
7.0.00.0070.08320.19
5.6.280.0000.03720.88
5.6.210.0070.07320.75
5.6.200.0000.04318.18
5.6.190.0030.07020.68
5.6.180.0330.07320.35
5.6.170.0330.04720.48
5.6.160.0100.08320.33
5.6.150.0070.08018.21
5.6.140.0100.07318.18
5.6.130.0000.08018.16
5.6.120.0000.04321.05
5.6.110.0070.09021.02
5.6.100.0030.08721.20
5.6.90.0170.06721.19
5.6.80.0070.07720.44
5.5.350.0070.09020.43
5.5.340.0100.06018.02
5.5.330.0100.06720.41
5.5.320.2830.03020.49
5.5.310.0200.07320.17
5.5.300.0000.04317.87
5.5.290.0030.04017.90
5.5.280.0100.07720.97
5.5.270.0000.04321.02
5.5.260.0030.04720.78
5.5.250.0000.07320.65
5.5.240.0070.07020.11
5.4.450.0870.06319.65
5.4.440.1030.07019.31
5.4.430.0800.06319.46
5.4.420.0970.06319.41
5.4.410.0800.05019.50
5.4.400.0800.07018.95
5.4.390.0870.05719.27
5.4.380.0830.05719.09
5.4.370.0770.06319.14
5.4.360.0870.07319.14
5.4.350.0930.04719.14
5.4.340.0730.05318.92
5.4.320.1000.05318.89
5.4.310.0830.04719.09
5.4.300.0900.06719.31
5.4.290.0930.06719.14
5.4.280.0730.06018.96
5.4.270.0800.05319.02
5.4.260.0870.05718.78
5.4.250.1030.05018.94
5.4.240.0900.04318.98
5.4.230.1000.05718.92
5.4.220.0830.06018.80
5.4.210.0930.03719.12
5.4.200.0830.05319.35
5.4.190.0830.04718.92
5.4.180.0930.05719.02
5.4.170.0770.05318.90
5.4.160.0930.04719.07
5.4.150.0930.07319.26
5.4.140.0870.07016.24
5.4.130.0970.06716.23
5.4.120.0970.05716.29
5.4.110.0730.06016.05
5.4.100.0870.04316.54
5.4.90.0830.05016.41
5.4.80.1130.06316.48
5.4.70.0230.05716.33
5.4.60.0000.03316.46
5.4.50.0030.03316.35
5.4.40.0300.05316.23
5.4.30.0330.06016.35
5.4.20.0070.04016.52

preferences:
53.22 ms | 401 KiB | 5 Q