3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = 'aaa.bbb.ccc.ddd.eee.fff.ggg.hhh'; $max = 10; $retry = 1; do { echo $test . "\n"; preg_match("/^.+?\.(.+)$/", $test, $result); if (false === $result) throw new \InvalidArgumentException('invalid'); $test = $result[1]; } while ($retry++ < $max);

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.0080.00618.56
8.3.50.0100.01016.46
8.3.40.0150.00418.99
8.3.30.0070.00719.00
8.3.20.0080.00020.95
8.3.10.0080.00021.80
8.3.00.0040.00419.78
8.2.180.0120.00616.50
8.2.170.0090.00622.96
8.2.160.0130.00320.46
8.2.150.0070.00025.66
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0050.00319.79
8.2.110.0060.00320.49
8.2.100.0090.00317.97
8.2.90.0000.00819.20
8.2.80.0060.00317.97
8.2.70.0080.00017.75
8.2.60.0060.00317.93
8.2.50.0030.00618.10
8.2.40.0000.00922.41
8.2.30.0040.00421.18
8.2.20.0070.00018.02
8.2.10.0040.00418.25
8.2.00.0000.00718.06
8.1.280.0100.00725.92
8.1.270.0050.00323.84
8.1.260.0040.00426.35
8.1.250.0070.00428.09
8.1.240.0060.00322.14
8.1.230.0040.00817.59
8.1.220.0000.00817.77
8.1.210.0090.00018.77
8.1.200.0060.00317.35
8.1.190.0040.00417.38
8.1.180.0040.00418.10
8.1.170.0040.00418.68
8.1.160.0000.00718.96
8.1.150.0040.00420.72
8.1.140.0000.00919.60
8.1.130.0030.00518.73
8.1.120.0040.00417.56
8.1.110.0030.00517.59
8.1.100.0040.00417.58
8.1.90.0040.00417.55
8.1.80.0040.00417.54
8.1.70.0060.00317.54
8.1.60.0040.00417.56
8.1.50.0040.00417.64
8.1.40.0040.00817.60
8.1.30.0040.00417.78
8.1.20.0080.00017.64
8.1.10.0060.00317.62
8.1.00.0000.00717.52
8.0.300.0000.00718.77
8.0.290.0000.00916.88
8.0.280.0070.00018.39
8.0.270.0000.00717.27
8.0.260.0000.00717.12
8.0.250.0030.00317.06
8.0.240.0030.00617.14
8.0.230.0000.00717.05
8.0.220.0030.00317.14
8.0.210.0040.00417.17
8.0.200.0060.00017.12
8.0.190.0060.00317.11
8.0.180.0000.00717.18
8.0.170.0040.00417.09
8.0.160.0000.00817.12
8.0.150.0040.00417.00
8.0.140.0000.00817.10
8.0.130.0040.00413.42
8.0.120.0000.00817.08
8.0.110.0030.00316.96
8.0.100.0050.00217.09
8.0.90.0000.00816.88
8.0.80.0030.01317.13
8.0.70.0040.00417.09
8.0.60.0040.00417.14
8.0.50.0030.00516.95
8.0.30.0100.00717.42
8.0.20.0110.01017.43
8.0.10.0000.00917.06
8.0.00.0060.01117.02
7.4.330.0000.00515.55
7.4.320.0030.00316.70
7.4.300.0050.00316.80
7.4.290.0030.00616.76
7.4.280.0040.00416.78
7.4.270.0040.00416.68
7.4.260.0040.00416.56
7.4.250.0070.00016.79
7.4.240.0000.00816.72
7.4.230.0000.00716.77
7.4.220.0130.00916.91
7.4.210.0040.01216.82
7.4.200.0000.00716.60
7.4.160.0100.00616.75
7.4.150.0110.01217.40
7.4.140.0190.00417.86
7.4.130.0030.01316.70
7.4.120.0120.00916.73
7.4.110.0150.00316.68
7.4.100.0130.00316.81
7.4.90.0130.00416.71
7.4.80.0090.00919.39
7.4.70.0170.00716.73
7.4.60.0100.00616.64
7.4.50.0040.01116.65
7.4.40.0040.01416.81
7.4.30.0110.00716.88
7.4.00.0100.00615.29
7.3.330.0000.00513.27
7.3.320.0000.00513.27
7.3.310.0070.00016.41
7.3.300.0030.00316.49
7.3.290.0080.01016.53
7.3.280.0080.00916.53
7.3.270.0120.00917.40
7.3.260.0100.00716.74
7.3.250.0130.00516.57
7.3.240.0080.01016.64
7.3.230.0110.00816.68
7.3.210.0130.00416.86
7.3.200.0030.01716.54
7.3.190.0100.00616.62
7.3.180.0090.00616.83
7.3.170.0070.01016.74
7.3.160.0060.01616.66
7.3.10.0030.00916.94
7.3.00.0030.01016.94
7.2.330.0060.01116.70
7.2.320.0140.00616.82
7.2.310.0090.00916.76
7.2.300.0090.01216.78
7.2.290.0040.01216.82
7.2.130.0060.00917.15
7.2.120.0040.01117.18
7.2.110.0090.00617.29
7.2.100.0030.00717.27
7.2.90.0110.00417.35
7.2.80.0070.00317.22
7.2.70.0070.00317.20
7.2.60.0090.00617.18
7.2.50.0040.00417.05
7.2.40.0080.00817.18
7.2.30.0070.00717.17
7.2.20.0070.01117.34
7.2.10.0030.01017.17
7.2.00.0080.00318.43
7.1.250.0030.00516.08
7.1.200.0050.00615.77
7.1.100.0060.00618.41
7.1.70.0050.00517.05
7.1.60.1600.02033.48
7.1.50.1630.03033.29
7.1.40.2000.02032.93
7.1.30.2000.02033.04
7.1.20.1870.01732.84
7.1.10.1370.01014.75
7.1.00.1200.01315.19
7.0.200.1600.01315.22
7.0.190.1670.00715.18
7.0.180.1970.01314.85
7.0.170.1200.01014.73
7.0.160.1470.01014.76
7.0.150.1300.01714.55
7.0.140.1270.00714.76
7.0.130.1070.01014.87
7.0.120.1070.00715.07
7.0.110.1930.01014.82
7.0.100.2070.00714.66
7.0.90.1200.00014.70
7.0.80.1770.01014.68
7.0.70.2270.01314.84
7.0.60.1900.01314.67
7.0.50.2130.01714.80
7.0.40.1900.01014.91
7.0.30.0100.01314.83
7.0.20.1570.01014.87
7.0.10.1930.01014.87
7.0.00.1330.00714.70

preferences:
60.88 ms | 401 KiB | 5 Q