3v4l.org

run code in 300+ PHP versions simultaneously
<?php $regex = '#([a-zA-z ])\1{2,}$#'; $string = 'rrrr'; preg_match($regex, $string, $matches); var_dump($matches);

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.4.130.0070.00218.64
8.4.120.0110.00824.10
8.4.110.0120.00818.88
8.4.100.0150.00618.05
8.4.90.0110.00920.38
8.4.80.0050.00518.72
8.4.70.0110.00418.83
8.4.60.0130.00718.77
8.4.50.0130.00718.46
8.4.40.0170.00317.93
8.4.30.0130.00619.33
8.4.20.0040.00917.88
8.4.10.0000.00917.78
8.3.260.0140.00516.79
8.3.250.0100.00918.88
8.3.240.0060.01117.20
8.3.230.0060.00318.45
8.3.220.0110.00818.82
8.3.210.0090.00618.32
8.3.200.0090.01216.74
8.3.190.0070.00917.12
8.3.180.0100.00918.84
8.3.170.0040.01418.69
8.3.160.0040.01417.00
8.3.150.0040.01517.10
8.3.140.0110.00016.70
8.3.130.0000.00916.45
8.3.120.0100.00620.84
8.3.110.0030.00620.94
8.3.100.0040.00416.84
8.3.90.0080.00018.45
8.3.80.0040.00717.97
8.3.70.0090.00616.75
8.3.60.0060.01316.75
8.3.50.0140.00618.44
8.3.40.0060.01218.79
8.3.30.0170.00718.79
8.3.20.0040.00419.04
8.3.10.0080.00021.80
8.3.00.0050.00319.56
8.2.290.0140.00517.04
8.2.280.0060.00318.05
8.2.270.0060.01318.88
8.2.260.0070.00716.63
8.2.250.0060.00318.47
8.2.240.0030.00616.84
8.2.230.0090.00022.58
8.2.220.0080.00024.06
8.2.210.0080.00026.77
8.2.200.0040.00418.66
8.2.190.0120.00316.75
8.2.180.0180.00316.48
8.2.170.0000.01522.96
8.2.160.0070.00719.04
8.2.150.0060.00324.18
8.2.140.0030.00624.66
8.2.130.0000.00720.52
8.2.120.0050.00326.35
8.2.110.0000.00919.27
8.2.100.0040.00817.59
8.2.90.0050.00319.23
8.2.80.0000.00817.97
8.2.70.0080.00017.75
8.2.60.0060.00318.04
8.2.50.0090.00018.07
8.2.40.0040.00417.91
8.2.30.0060.00318.10
8.2.20.0020.00518.00
8.2.10.0040.00417.91
8.2.00.0000.00718.12
8.1.330.0110.00816.00
8.1.320.0120.00716.45
8.1.310.0110.00716.42
8.1.300.0090.00918.59
8.1.290.0090.00018.88
8.1.280.0150.00625.92
8.1.270.0040.00423.99
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0060.00321.21
8.1.230.0090.00320.31
8.1.220.0000.00817.74
8.1.210.0080.00018.77
8.1.200.0000.00917.13
8.1.190.0090.00017.23
8.1.180.0040.00418.10
8.1.170.0080.00018.81
8.1.160.0000.00818.72
8.1.150.0080.00020.07
8.1.140.0070.00019.48
8.1.130.0030.00317.52
8.1.120.0000.00717.45
8.1.110.0030.00617.39
8.1.100.0050.00217.55
8.1.90.0000.00817.57
8.1.80.0030.00517.45
8.1.70.0000.00817.50
8.1.60.0050.00317.70
8.1.50.0080.00017.61
8.1.40.0030.00517.60
8.1.30.0000.00817.56
8.1.20.0040.00417.75
8.1.10.0040.00417.57
8.1.00.0080.00017.59
8.0.300.0040.00418.84
8.0.290.0000.00716.75
8.0.280.0000.00718.44
8.0.270.0070.00016.89
8.0.260.0000.00616.86
8.0.250.0070.00017.00
8.0.240.0030.00516.91
8.0.230.0030.00316.92
8.0.220.0000.00716.86
8.0.210.0040.00416.95
8.0.200.0030.00517.03
8.0.190.0030.00617.09
8.0.180.0000.00717.01
8.0.170.0000.00916.98
8.0.160.0000.00816.98
8.0.150.0000.00716.87
8.0.140.0040.00416.96
8.0.130.0050.00513.36
8.0.120.0050.00216.93
8.0.110.0040.00416.79
8.0.100.0000.00717.01
8.0.90.0050.00316.97
8.0.80.0090.00616.90
8.0.70.0040.00416.93
8.0.60.0070.00017.01
8.0.50.0040.00416.81
8.0.30.0110.00617.08
8.0.20.0100.00917.40
8.0.10.0000.00917.16
8.0.00.0120.00816.96
7.4.330.0030.00315.55
7.4.320.0000.00616.54
7.4.300.0030.00316.59
7.4.290.0050.00516.78
7.4.280.0030.00516.71
7.4.270.0070.00016.63
7.4.260.0070.00016.66
7.4.250.0030.00516.59
7.4.240.0000.00816.61
7.4.230.0000.00716.72
7.4.220.0030.01516.91
7.4.210.0030.01016.76
7.4.200.0030.00316.63
7.4.160.0060.01016.47
7.4.150.0170.00717.40
7.4.140.0120.00617.86
7.4.130.0140.01016.57
7.4.120.0110.00916.61
7.4.110.0040.01216.51
7.4.100.0150.00916.46
7.4.90.0130.01016.64
7.4.80.0140.00419.39
7.4.70.0110.00616.54
7.4.60.0000.01616.59
7.4.50.0030.01216.50
7.4.40.0130.00316.51
7.4.30.0130.01016.34
7.4.00.0070.00714.75
7.3.330.0030.00313.19
7.3.320.0030.00313.02
7.3.310.0070.00016.22
7.3.300.0000.00716.30
7.3.290.0110.00416.27
7.3.280.0110.00716.27
7.3.270.0090.00917.40
7.3.260.0060.01416.23
7.3.250.0100.00916.43
7.3.240.0090.00916.59
7.3.230.0100.00716.35
7.3.210.0080.01516.27
7.3.200.0120.00416.30
7.3.190.0120.00316.24
7.3.180.0100.00616.30
7.3.170.0090.00616.23
7.3.160.0060.01216.57
7.2.330.0160.00716.63
7.2.320.0150.00616.66
7.2.310.0130.01016.64
7.2.300.0110.00716.56
7.2.290.0070.01416.70
7.2.60.0070.01016.85
7.1.200.0060.00915.83
7.1.70.0060.00916.96
7.1.60.0030.00717.42
7.1.50.0130.01734.62
7.1.40.0230.01034.38
7.1.30.0170.02034.55
7.1.20.0230.01734.89
7.1.10.0100.01016.79
7.1.00.0030.02016.92
7.0.200.0090.00916.47
7.0.190.0070.00316.69
7.0.180.0030.01316.21
7.0.170.0030.01016.20
7.0.160.0070.01016.18
7.0.150.0030.01316.25
7.0.140.0070.01316.37
7.0.130.0030.01716.52
7.0.120.0000.01316.71
7.0.110.0030.01016.32
7.0.100.0030.01316.28
7.0.90.0000.01316.43
7.0.80.0000.01316.35
7.0.70.0030.01016.25
7.0.60.0030.01316.40
7.0.50.0030.01316.62
7.0.40.0100.00716.61
7.0.30.0070.00716.73
7.0.20.0070.01016.44
7.0.10.0100.00716.43
7.0.00.0000.01316.43

preferences:
29.38 ms | 403 KiB | 5 Q