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($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.0090.00618.56
8.3.50.0150.00321.17
8.3.40.0130.00318.87
8.3.30.0040.01218.79
8.3.20.0040.00420.32
8.3.10.0080.00023.59
8.3.00.0040.00419.68
8.2.180.0060.01218.55
8.2.170.0040.01122.96
8.2.160.0100.01020.25
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0000.00826.16
8.2.120.0000.00817.72
8.2.110.0030.00622.32
8.2.100.0030.00917.88
8.2.90.0000.00919.09
8.2.80.0040.00417.97
8.2.70.0040.00417.75
8.2.60.0000.00817.92
8.2.50.0080.00318.07
8.2.40.0050.00321.10
8.2.30.0060.00320.55
8.2.20.0000.00817.79
8.2.10.0050.00317.94
8.2.00.0000.00818.07
8.1.280.0070.00725.92
8.1.270.0040.00423.83
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0080.00022.51
8.1.230.0080.00317.48
8.1.220.0000.00817.74
8.1.210.0080.00018.77
8.1.200.0060.00317.36
8.1.190.0000.00817.10
8.1.180.0040.00418.10
8.1.170.0000.00818.63
8.1.160.0080.00021.87
8.1.150.0000.00818.84
8.1.140.0030.00517.53
8.1.130.0030.00317.50
8.1.120.0040.00417.60
8.1.110.0020.00517.43
8.1.100.0020.00517.54
8.1.90.0040.00417.54
8.1.80.0050.00317.43
8.1.70.0000.00717.57
8.1.60.0000.00717.71
8.1.50.0030.00517.59
8.1.40.0000.00817.67
8.1.30.0080.00417.70
8.1.20.0040.00417.63
8.1.10.0030.00517.56
8.1.00.0050.00317.60
8.0.300.0050.00318.77
8.0.290.0040.00416.75
8.0.280.0000.00718.40
8.0.270.0030.00317.19
8.0.260.0070.00017.20
8.0.250.0030.00317.10
8.0.240.0030.00317.09
8.0.230.0020.00517.13
8.0.220.0030.00616.88
8.0.210.0040.00417.10
8.0.200.0000.00617.08
8.0.190.0030.00616.96
8.0.180.0040.00417.11
8.0.170.0030.00517.00
8.0.160.0040.00417.07
8.0.150.0080.00017.00
8.0.140.0040.00816.84
8.0.130.0000.00513.45
8.0.120.0030.00617.01
8.0.110.0040.00417.00
8.0.100.0040.00416.88
8.0.90.0040.00416.93
8.0.80.0070.00717.05
8.0.70.0040.00417.09
8.0.60.0000.00717.03
8.0.50.0070.00017.04
8.0.30.0110.00917.30
8.0.20.0110.00917.40
8.0.10.0070.00016.98
8.0.00.0080.01116.84
7.4.330.0000.00515.10
7.4.320.0050.00316.73
7.4.300.0000.00716.68
7.4.290.0000.00716.67
7.4.280.0080.00016.54
7.4.270.0070.00016.63
7.4.260.0030.00316.64
7.4.250.0030.00616.71
7.4.240.0020.00516.73
7.4.230.0000.00816.69
7.4.220.0110.01416.63
7.4.210.0090.01216.68
7.4.200.0080.00016.67
7.4.160.0040.01116.73
7.4.150.0120.00617.40
7.4.140.0140.01117.86
7.4.130.0100.00916.71
7.4.120.0110.01016.57
7.4.110.0090.00916.75
7.4.100.0100.01316.63
7.4.90.0060.01616.59
7.4.80.0140.00619.39
7.4.70.0120.00716.60
7.4.60.0120.00316.61
7.4.50.0030.00616.47
7.4.40.0130.00316.63
7.4.30.0090.00916.47
7.4.00.0060.00915.11
7.3.330.0000.00613.13
7.3.320.0030.00313.14
7.3.310.0000.00816.44
7.3.300.0070.00016.29
7.3.290.0110.00616.35
7.3.280.0120.00716.28
7.3.270.0060.01317.40
7.3.260.0090.01516.57
7.3.250.0120.00616.47
7.3.240.0160.00616.44
7.3.230.0100.00716.39
7.3.210.0130.00316.69
7.3.200.0030.01316.24
7.3.190.0100.00716.59
7.3.180.0100.01016.33
7.3.170.0090.00916.75
7.3.160.0100.01016.53
7.2.330.0060.01216.76
7.2.320.0080.00816.48
7.2.310.0120.01316.55
7.2.300.0120.00616.50
7.2.290.0110.00816.60
7.2.60.0070.00716.84
7.2.00.0100.00319.53
7.1.200.0060.00315.95
7.1.100.0000.00818.05
7.1.70.0040.00417.29
7.1.60.0130.01319.50
7.1.50.0000.02216.86
7.1.00.0030.07722.54
7.0.200.0000.00916.86
7.0.60.0000.08719.98
7.0.50.0100.07717.86
7.0.40.0000.05020.29
7.0.30.0270.07320.18
7.0.20.0230.04020.18
7.0.10.0000.05720.22
7.0.00.0100.04020.01
5.6.280.0030.03321.10
5.6.210.0000.04320.54
5.6.200.0030.05318.13
5.6.190.0070.04020.45
5.6.180.0270.06720.61
5.6.170.0300.07320.47
5.6.160.0070.07720.37
5.6.150.0030.05718.22
5.6.140.0000.07718.15
5.6.130.0030.07318.21
5.6.120.0000.07720.98
5.6.110.0100.07021.02
5.6.100.0070.04721.17
5.6.90.0100.06021.02
5.6.80.0030.08320.43
5.5.350.0070.08020.39
5.5.340.0030.05017.96
5.5.330.0230.05720.37
5.5.320.3430.03320.26
5.5.310.0200.05320.51
5.5.300.0030.04317.92
5.5.290.0170.07018.00
5.5.280.0030.08020.83
5.5.270.0070.07320.88
5.5.260.0100.04020.99
5.5.250.0030.07020.59
5.5.240.0030.07720.38
5.4.450.0630.07319.48
5.4.440.0600.06319.14
5.4.430.0730.05319.62
5.4.420.0700.05319.41
5.4.410.0870.05319.12
5.4.400.0730.05319.13
5.4.390.0900.04718.93
5.4.380.0700.06318.95
5.4.370.0730.05018.95
5.4.360.0630.05019.14
5.4.350.0770.05019.09
5.4.340.0730.04318.99
5.4.320.0670.05719.09
5.4.310.0700.08018.99
5.4.300.0530.06719.13
5.4.290.0570.06319.14
5.4.280.0800.06018.81
5.4.270.0700.07318.98
5.4.260.0800.05719.12
5.4.250.0870.07018.96
5.4.240.0600.05719.27
5.4.230.0170.05019.08
5.4.220.0570.05719.13
5.4.210.0600.05019.24
5.4.200.0600.05019.02
5.4.190.0670.04718.78
5.4.180.0670.05718.80
5.4.170.0500.04018.98
5.4.160.0330.06018.80
5.4.150.0700.04719.12
5.4.140.0530.06016.46
5.4.130.0600.05716.35
5.4.120.0430.04316.32
5.4.110.0330.04716.59
5.4.100.0730.07016.44
5.4.90.0800.06016.80
5.4.80.0430.04716.11
5.4.70.0230.03716.32
5.4.60.0070.03716.41
5.4.50.0000.07016.23
5.4.40.0300.04316.41
5.4.30.0300.06716.35
5.4.20.0400.05316.17

preferences:
47.16 ms | 401 KiB | 5 Q