3v4l.org

run code in 300+ PHP versions simultaneously
<?php $regex = '/(^a)(.*(?=ab))/'; $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.0120.00418.41
8.3.50.0060.01221.27
8.3.40.0120.00418.98
8.3.30.0110.00318.67
8.3.20.0030.00520.31
8.3.10.0040.00423.35
8.3.00.0060.00319.43
8.2.180.0160.00718.41
8.2.170.0120.00322.96
8.2.160.0130.00720.22
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0070.00026.16
8.2.120.0000.01017.62
8.2.110.0080.00420.47
8.2.100.0070.00317.80
8.2.90.0040.00419.07
8.2.80.0030.00517.97
8.2.70.0030.00617.75
8.2.60.0080.00017.93
8.2.50.0040.00418.07
8.2.40.0040.00419.41
8.2.30.0040.00420.69
8.2.20.0040.00417.79
8.2.10.0050.00318.01
8.2.00.0050.00217.88
8.1.280.0090.00925.92
8.1.270.0140.00324.02
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0050.00522.61
8.1.230.0040.00719.26
8.1.220.0050.00317.74
8.1.210.0080.00018.77
8.1.200.0080.00317.35
8.1.190.0050.00317.35
8.1.180.0030.00518.10
8.1.170.0040.00418.39
8.1.160.0040.00421.88
8.1.150.0050.00318.83
8.1.140.0040.00417.59
8.1.130.0000.00717.53
8.1.120.0000.00717.56
8.1.110.0040.00417.45
8.1.100.0050.00317.55
8.1.90.0040.00417.46
8.1.80.0080.00017.45
8.1.70.0030.00317.41
8.1.60.0000.00717.70
8.1.50.0030.00517.52
8.1.40.0030.00617.63
8.1.30.0100.00017.61
8.1.20.0000.00817.78
8.1.10.0030.00617.62
8.1.00.0040.00417.46
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0040.00418.35
8.0.270.0030.00317.18
8.0.260.0070.00017.20
8.0.250.0050.00316.96
8.0.240.0060.00017.04
8.0.230.0030.00317.02
8.0.220.0000.00816.86
8.0.210.0040.00317.03
8.0.200.0000.00617.02
8.0.190.0040.00417.01
8.0.180.0070.00016.91
8.0.170.0000.00816.88
8.0.160.0030.00316.98
8.0.150.0000.00816.93
8.0.140.0070.00416.83
8.0.130.0030.00313.43
8.0.120.0080.00016.91
8.0.110.0000.00816.86
8.0.100.0030.00516.92
8.0.90.0000.00816.96
8.0.80.0120.00316.94
8.0.70.0040.00417.00
8.0.60.0000.00716.98
8.0.50.0000.00716.99
8.0.30.0100.01017.16
8.0.20.0100.00817.40
8.0.10.0040.00417.07
8.0.00.0110.00816.67
7.4.330.0050.00015.08
7.4.320.0030.00316.75
7.4.300.0030.00316.75
7.4.290.0030.00316.75
7.4.280.0000.00716.64
7.4.270.0000.00816.64
7.4.260.0070.00016.71
7.4.250.0050.00316.61
7.4.240.0010.00616.70
7.4.230.0070.00016.77
7.4.220.0100.01416.74
7.4.210.0120.00316.79
7.4.200.0030.00316.63
7.4.160.0060.00916.65
7.4.150.0190.01317.40
7.4.140.0120.00617.86
7.4.130.0250.00316.58
7.4.120.0100.00716.50
7.4.110.0060.01216.54
7.4.100.0160.00616.48
7.4.90.0040.01416.46
7.4.80.0120.01119.39
7.4.70.0160.00816.61
7.4.60.0090.00616.67
7.4.50.0030.00316.61
7.4.40.0040.01416.66
7.4.30.0170.00016.57
7.4.00.0070.00715.02
7.3.330.0060.00013.20
7.3.320.0020.00413.15
7.3.310.0040.00416.13
7.3.300.0000.00716.28
7.3.290.0070.00816.27
7.3.280.0080.01016.32
7.3.270.0090.00917.40
7.3.260.0060.02116.30
7.3.240.0060.01516.34
7.3.230.0070.01016.62
7.3.210.0070.01016.39
7.3.200.0110.00516.55
7.3.190.0070.01116.41
7.3.180.0040.01316.51
7.3.170.0120.00616.56
7.3.160.0100.01016.49
7.2.330.0120.00616.54
7.2.320.0160.00016.65
7.2.310.0070.01416.38
7.2.300.0090.00916.56
7.2.290.0130.00316.58
7.2.00.0110.00019.18
7.1.100.0840.00716.38
7.1.70.0000.00817.31
7.1.60.0140.01119.50
7.1.50.0060.01617.00
7.1.00.0030.07722.55
7.0.200.0030.00716.73
7.0.60.0030.04019.93
7.0.50.0030.04717.90
7.0.40.0100.08320.07
7.0.30.0370.07320.19
7.0.20.0130.05020.18
7.0.10.0100.04320.23
7.0.00.0130.07320.25
5.6.280.0070.03020.86
5.6.210.0100.08020.70
5.6.200.0070.08718.12
5.6.190.0030.05320.42
5.6.180.0330.05020.48
5.6.170.0070.05020.51
5.6.160.0130.07020.41
5.6.150.0170.07318.15
5.6.140.0100.07318.13
5.6.130.0070.04718.16
5.6.120.0130.07320.97
5.6.110.0070.05720.97
5.6.100.0070.04321.12
5.6.90.0100.08021.02
5.6.80.0070.03720.50
5.5.350.0130.07020.38
5.5.340.0070.08317.98
5.5.330.0070.05720.21
5.5.320.4630.04320.34
5.5.310.0400.07320.29
5.5.300.0070.08017.92
5.5.290.0070.07317.87
5.5.280.0100.07720.65
5.5.270.0100.03320.84
5.5.260.0130.06720.79
5.5.250.0100.08320.46
5.5.240.0000.04320.15
5.4.450.0770.05319.64
5.4.440.0870.05019.63
5.4.430.0730.07319.62
5.4.420.0700.06019.37
5.4.410.0730.05719.34
5.4.400.0770.05319.16
5.4.390.0700.05719.13
5.4.380.0770.05018.92
5.4.370.0800.05019.31
5.4.360.0730.06719.13
5.4.350.0830.06319.16
5.4.340.1000.06719.16
5.4.320.0770.05319.08
5.4.310.1030.06319.22
5.4.300.0970.05019.19
5.4.290.0730.05319.04
5.4.280.0830.04719.16
5.4.270.0730.06019.20
5.4.260.0730.04718.80
5.4.250.1030.07719.15
5.4.240.0800.04318.80
5.4.230.0700.05319.18
5.4.220.0770.05019.11
5.4.210.0700.05319.14
5.4.200.0800.04318.80
5.4.190.0770.06319.32
5.4.180.0730.05019.14
5.4.170.0670.05319.21
5.4.160.0730.05318.75
5.4.150.0870.04719.14
5.4.140.1000.07016.30
5.4.130.1070.06316.46
5.4.120.0830.04716.41
5.4.110.0800.04716.35
5.4.100.0930.07016.09
5.4.90.0970.06016.46
5.4.80.0900.05316.20
5.4.70.0200.03716.32
5.4.60.0000.05016.43
5.4.50.0030.03316.43
5.4.40.0230.06316.38
5.4.30.0270.04316.45
5.4.20.0070.05016.38

preferences:
52.22 ms | 401 KiB | 5 Q