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($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.39
8.3.50.0090.00921.32
8.3.40.0120.00618.83
8.3.30.0150.00618.84
8.3.20.0090.00020.09
8.3.10.0030.00623.61
8.3.00.0050.00317.80
8.2.180.0110.00718.18
8.2.170.0120.00322.96
8.2.160.0130.00720.13
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00417.75
8.2.110.0070.00319.34
8.2.100.0120.00017.91
8.2.90.0070.00018.03
8.2.80.0020.00717.97
8.2.70.0060.00318.04
8.2.60.0000.00818.03
8.2.50.0030.00618.10
8.2.40.0070.00020.59
8.2.30.0000.00822.48
8.2.20.0080.00017.75
8.2.10.0080.00018.02
8.2.00.0040.00417.95
8.1.280.0080.00825.92
8.1.270.0040.00423.83
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0040.00422.42
8.1.230.0040.00821.03
8.1.220.0090.00017.74
8.1.210.0040.00418.77
8.1.200.0050.00317.48
8.1.190.0090.00017.25
8.1.180.0000.00818.10
8.1.170.0030.00618.73
8.1.160.0020.00522.02
8.1.150.0050.00318.88
8.1.140.0080.00017.53
8.1.130.0070.00017.73
8.1.120.0040.00417.46
8.1.110.0040.00417.45
8.1.100.0080.00017.44
8.1.90.0040.00417.43
8.1.80.0070.00017.47
8.1.70.0000.00717.50
8.1.60.0050.00217.49
8.1.50.0080.00017.48
8.1.40.0030.00617.61
8.1.30.0030.00717.67
8.1.20.0000.00817.73
8.1.10.0030.00517.57
8.1.00.0000.00717.61
8.0.300.0040.00419.96
8.0.290.0100.00016.75
8.0.280.0030.00318.38
8.0.270.0000.00817.10
8.0.260.0000.00817.21
8.0.250.0040.00417.02
8.0.240.0070.00016.99
8.0.230.0050.00317.04
8.0.220.0060.00316.87
8.0.210.0040.00416.96
8.0.200.0030.00316.92
8.0.190.0040.00417.06
8.0.180.0030.00716.88
8.0.170.0000.00716.99
8.0.160.0000.00916.86
8.0.150.0040.00416.86
8.0.140.0030.00716.89
8.0.130.0030.00313.41
8.0.120.0050.00316.91
8.0.110.0000.00717.01
8.0.100.0000.00916.87
8.0.90.0040.00416.78
8.0.80.0060.00916.96
8.0.70.0050.00216.87
8.0.60.0040.00417.00
8.0.50.0000.00816.92
8.0.30.0080.01117.09
8.0.20.0120.00717.41
8.0.10.0070.00017.04
8.0.00.0120.00816.95
7.4.330.0000.00515.11
7.4.320.0060.00016.79
7.4.300.0030.00316.74
7.4.290.0050.00216.69
7.4.280.0040.00416.69
7.4.270.0030.00316.63
7.4.260.0000.00716.58
7.4.250.0040.00416.62
7.4.240.0020.00616.64
7.4.230.0030.00316.62
7.4.220.0080.01916.82
7.4.210.0070.00716.81
7.4.200.0040.00416.48
7.4.160.0060.01616.58
7.4.150.0120.00617.40
7.4.140.0140.00917.86
7.4.130.0120.00616.43
7.4.120.0030.01516.64
7.4.110.0100.01016.38
7.4.100.0120.00616.87
7.4.90.0070.01016.53
7.4.80.0030.01919.39
7.4.70.0090.00916.69
7.4.60.0110.00716.48
7.4.50.0020.00216.67
7.4.40.0140.01016.72
7.4.30.0070.01116.50
7.4.00.0090.00915.14
7.3.330.0030.00313.12
7.3.320.0070.00013.00
7.3.310.0070.00016.29
7.3.300.0000.00716.23
7.3.290.0090.00416.27
7.3.280.0100.00816.25
7.3.270.0100.00717.40
7.3.260.0200.00416.33
7.3.240.0130.00916.58
7.3.230.0090.00916.39
7.3.210.0070.01016.69
7.3.200.0040.01216.50
7.3.190.0060.01316.35
7.3.180.0070.01016.28
7.3.170.0150.00616.57
7.3.160.0150.00616.36
7.3.10.0110.00516.30
7.3.00.0120.00616.52
7.2.330.0060.01216.69
7.2.320.0070.01016.45
7.2.310.0080.01316.61
7.2.300.0100.00716.71
7.2.290.0090.00616.77
7.2.130.0150.00816.44
7.2.120.0110.00816.67
7.2.110.0120.00716.67
7.2.100.0110.00616.47
7.2.90.0130.00416.74
7.2.80.0130.00816.36
7.2.70.0110.00816.71
7.2.60.0100.00816.67
7.2.50.0130.00816.65
7.2.40.0110.01116.79
7.2.30.0130.00416.45
7.2.20.0100.00716.46
7.2.10.0120.00616.55
7.2.00.0110.00516.90
7.1.250.0110.00715.56
7.1.200.0070.00715.89
7.1.70.0000.00917.01
7.1.60.0090.01519.50
7.1.50.0030.01916.78
7.1.00.0030.07722.38
7.0.200.0040.00416.95
7.0.60.0070.06719.87
7.0.50.0100.07317.86
7.0.40.0130.03720.29
7.0.30.0230.03320.01
7.0.20.0270.07720.11
7.0.10.0030.09720.18
7.0.00.0000.06020.14
5.6.280.0030.03320.86
5.6.210.0000.07320.46
5.6.200.0000.04318.22
5.6.190.0130.06320.60
5.6.180.0330.04020.32
5.6.170.0330.07320.54
5.6.160.0170.07020.43
5.6.150.0100.08018.07
5.6.140.0070.07318.18
5.6.130.0030.06718.15
5.6.120.0070.05020.99
5.6.110.0130.06720.99
5.6.100.0030.08320.98
5.6.90.0100.08021.09
5.6.80.0000.06320.50
5.5.350.0130.07720.37
5.5.340.0030.06717.98
5.5.330.0030.08020.56
5.5.320.3970.03320.28
5.5.310.0300.07720.16
5.5.300.0100.05718.01
5.5.290.0100.07318.00
5.5.280.0030.08720.76
5.5.270.0100.03320.74
5.5.260.0130.07720.78
5.5.250.0100.08020.59
5.5.240.0000.07720.06
5.4.450.0800.05019.59
5.4.440.0730.06019.45
5.4.430.0700.05019.47
5.4.420.0630.05719.54
5.4.410.0900.06319.40
5.4.400.0800.05019.15
5.4.390.0700.06019.15
5.4.380.0770.05319.09
5.4.370.0730.04719.11
5.4.360.0630.05718.81
5.4.350.0570.05719.25
5.4.340.0730.05719.30
5.4.320.0830.05719.12
5.4.310.0830.05018.99
5.4.300.0870.04719.14
5.4.290.0870.05318.95
5.4.280.0730.04718.94
5.4.270.0630.05719.27
5.4.260.0700.05719.05
5.4.250.0800.05319.27
5.4.240.0670.06019.21
5.4.230.0930.04319.08
5.4.220.0870.05019.16
5.4.210.0700.04719.21
5.4.200.0770.05319.16
5.4.190.0700.06019.14
5.4.180.0700.05718.82
5.4.170.0870.07018.94
5.4.160.0730.05318.89
5.4.150.0770.05719.29
5.4.140.0700.06716.46
5.4.130.0730.05016.41
5.4.120.0670.06316.34
5.4.110.0630.06716.29
5.4.100.0770.05316.56
5.4.90.0870.04716.46
5.4.80.0830.05316.45
5.4.70.0230.04016.34
5.4.60.0030.06316.43
5.4.50.0000.03716.04
5.4.40.0200.03316.18
5.4.30.0330.07016.43
5.4.20.0070.06316.43

preferences:
62.87 ms | 401 KiB | 5 Q