3v4l.org

run code in 300+ PHP versions simultaneously
<?php $regex = '/(.*(?=ab))/'; $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.0140.00318.43
8.3.50.0120.00621.19
8.3.40.0140.00718.98
8.3.30.0160.00018.66
8.3.20.0080.00020.34
8.3.10.0050.00323.48
8.3.00.0080.00017.91
8.2.180.0110.00718.67
8.2.170.0100.00322.96
8.2.160.0130.00720.35
8.2.150.0080.00024.18
8.2.140.0000.00724.66
8.2.130.0000.00826.16
8.2.120.0070.00021.19
8.2.110.0070.00322.25
8.2.100.0040.00817.63
8.2.90.0000.00719.16
8.2.80.0060.00317.97
8.2.70.0060.00317.50
8.2.60.0030.00517.78
8.2.50.0040.00718.07
8.2.40.0030.00521.31
8.2.30.0000.00720.68
8.2.20.0040.00417.82
8.2.10.0030.00517.96
8.2.00.0030.00618.00
8.1.280.0100.00725.92
8.1.270.0100.01023.83
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0080.00022.52
8.1.230.0090.00317.48
8.1.220.0080.00017.74
8.1.210.0000.00818.77
8.1.200.0070.00317.48
8.1.190.0000.00917.23
8.1.180.0000.00718.10
8.1.170.0000.00818.60
8.1.160.0000.00721.88
8.1.150.0050.00318.95
8.1.140.0080.00017.41
8.1.130.0030.00317.57
8.1.120.0040.00417.54
8.1.110.0000.00817.56
8.1.100.0030.00517.59
8.1.90.0040.00417.38
8.1.80.0000.00717.43
8.1.70.0030.00317.59
8.1.60.0040.00417.66
8.1.50.0080.00017.59
8.1.40.0030.00517.62
8.1.30.0070.00417.78
8.1.20.0000.00817.71
8.1.10.0080.00017.70
8.1.00.0000.00717.58
8.0.300.0040.00418.77
8.0.290.0040.00416.86
8.0.280.0000.00718.38
8.0.270.0030.00317.15
8.0.260.0000.00717.21
8.0.250.0000.00817.08
8.0.240.0050.00317.04
8.0.230.0070.00017.01
8.0.220.0050.00316.95
8.0.210.0040.00416.98
8.0.200.0070.00016.93
8.0.190.0040.00416.94
8.0.180.0040.00416.87
8.0.170.0040.00416.90
8.0.160.0030.00516.94
8.0.150.0040.00416.94
8.0.140.0060.00616.90
8.0.130.0070.00013.36
8.0.120.0000.00816.90
8.0.110.0050.00316.88
8.0.100.0000.00716.87
8.0.90.0040.00417.02
8.0.80.0120.00416.92
8.0.70.0040.00416.90
8.0.60.0040.00417.02
8.0.50.0000.00716.83
8.0.30.0080.01217.33
8.0.20.0090.01017.40
8.0.10.0040.00416.87
8.0.00.0110.00816.87
7.4.330.0000.00615.08
7.4.320.0030.00316.62
7.4.300.0070.00016.78
7.4.290.0060.00016.66
7.4.280.0070.00016.69
7.4.270.0080.00016.74
7.4.260.0070.00016.60
7.4.250.0080.00016.52
7.4.240.0040.00316.68
7.4.230.0040.00416.67
7.4.220.0100.00716.86
7.4.210.0090.00616.76
7.4.200.0040.00416.77
7.4.160.0110.00516.62
7.4.150.0070.01017.40
7.4.140.0070.01517.86
7.4.130.0150.00316.86
7.4.120.0080.00816.56
7.4.110.0120.01316.79
7.4.100.0090.00916.54
7.4.90.0160.00716.57
7.4.80.0060.01619.39
7.4.70.0120.00616.51
7.4.60.0130.00316.43
7.4.50.0020.00516.58
7.4.40.0090.00916.47
7.4.30.0120.00616.52
7.4.00.0040.01115.18
7.3.330.0000.00713.18
7.3.320.0060.00013.11
7.3.310.0050.00316.10
7.3.300.0000.00616.19
7.3.290.0040.01016.28
7.3.280.0050.01216.27
7.3.270.0110.00717.40
7.3.260.0210.00616.27
7.3.240.0160.00516.54
7.3.230.0080.00916.39
7.3.210.0090.01216.27
7.3.200.0090.01316.48
7.3.190.0110.00416.26
7.3.180.0060.01216.50
7.3.170.0130.01016.49
7.3.160.0100.01416.50
7.2.330.0070.01516.59
7.2.320.0100.01316.71
7.2.310.0150.00416.83
7.2.300.0000.01616.41
7.2.290.0140.00316.46
7.2.00.0060.00619.44
7.1.100.0240.00316.36
7.1.70.0000.00717.16
7.1.60.0130.01019.50
7.1.50.0140.00716.83
7.1.00.0030.07722.38
7.0.200.0000.00816.53
7.0.60.0000.04319.86
7.0.50.0130.07717.80
7.0.40.0170.08020.32
7.0.30.0130.05020.18
7.0.20.0300.05320.18
7.0.10.0030.04320.29
7.0.00.0070.04020.19
5.6.280.0000.03321.04
5.6.210.0130.08020.60
5.6.200.0000.08018.13
5.6.190.0070.04320.61
5.6.180.0300.05020.60
5.6.170.0200.04320.32
5.6.160.0130.07720.59
5.6.150.0070.05718.11
5.6.140.0000.04318.21
5.6.130.0070.03718.17
5.6.120.0100.07321.10
5.6.110.0030.07021.03
5.6.100.0130.07020.88
5.6.90.0070.08020.94
5.6.80.0070.03720.50
5.5.350.0000.03720.33
5.5.340.0170.07017.91
5.5.330.0000.04320.37
5.5.320.3900.04020.18
5.5.310.0200.08020.24
5.5.300.0100.03318.01
5.5.290.0070.08318.01
5.5.280.0070.08320.76
5.5.270.0000.06020.84
5.5.260.0070.08720.75
5.5.250.0130.06020.65
5.5.240.0030.07320.11
5.4.450.0630.06719.52
5.4.440.0770.06319.32
5.4.430.0830.06319.62
5.4.420.0900.06319.63
5.4.410.0870.05018.96
5.4.400.0870.06319.19
5.4.390.0830.07019.13
5.4.380.0970.05318.77
5.4.370.0770.06018.80
5.4.360.0800.05318.80
5.4.350.0770.05719.28
5.4.340.1000.08319.14
5.4.320.0870.06019.16
5.4.310.0800.06019.16
5.4.300.0770.04719.15
5.4.290.0700.06018.91
5.4.280.0800.08018.99
5.4.270.0900.06719.22
5.4.260.0570.06319.25
5.4.250.0730.06019.30
5.4.240.0830.05019.15
5.4.230.0700.06019.14
5.4.220.0800.04719.14
5.4.210.0800.04719.18
5.4.200.0700.05019.26
5.4.190.0530.05719.21
5.4.180.0630.05319.28
5.4.170.0700.04718.98
5.4.160.0600.05319.28
5.4.150.0830.04718.99
5.4.140.0770.05316.26
5.4.130.0670.05316.24
5.4.120.0700.05016.35
5.4.110.0700.05316.45
5.4.100.0570.05316.39
5.4.90.0600.05316.29
5.4.80.0570.05016.54
5.4.70.0230.04316.48
5.4.60.0070.07016.41
5.4.50.0030.06316.19
5.4.40.0330.06316.20
5.4.30.0400.05716.40
5.4.20.0030.04316.43

preferences:
40.55 ms | 401 KiB | 5 Q