3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_domain_tld = 'iran.co.ir'; preg_match("/[a-z0-9\-]{1,63}\.[a-z\.]{2,6}$/", parse_url($_url_string, PHP_URL_HOST), $_domain_tld); echo $_domain_tld[0];

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.0150.00416.63
8.3.50.0110.00821.89
8.3.40.0100.00718.85
8.3.30.0140.00319.04
8.3.20.0040.00420.31
8.3.10.0040.00423.63
8.3.00.0050.00319.85
8.2.180.0140.00418.55
8.2.170.0110.00422.96
8.2.160.0070.00720.47
8.2.150.0090.00024.18
8.2.140.0030.00724.66
8.2.130.0060.00319.16
8.2.120.0050.00326.35
8.2.110.0070.00321.04
8.2.100.0120.00018.05
8.2.90.0080.00019.22
8.2.80.0000.00817.97
8.2.70.0040.00418.00
8.2.60.0030.00517.90
8.2.50.0060.00318.07
8.2.40.0080.00022.32
8.2.30.0040.00420.60
8.2.20.0040.00417.93
8.2.10.0020.00518.02
8.2.00.0000.00818.06
8.1.280.0040.01125.92
8.1.270.0060.00320.43
8.1.260.0050.00328.09
8.1.250.0080.00028.09
8.1.240.0000.00823.98
8.1.230.0150.00017.63
8.1.220.0080.00017.74
8.1.210.0000.00918.77
8.1.200.0060.00317.48
8.1.190.0030.00517.35
8.1.180.0050.00218.10
8.1.170.0070.00318.74
8.1.160.0000.00720.78
8.1.150.0000.00918.90
8.1.140.0030.00519.40
8.1.130.0030.00317.65
8.1.120.0000.00817.54
8.1.110.0000.00717.56
8.1.100.0000.00817.58
8.1.90.0040.00417.46
8.1.80.0000.00817.43
8.1.70.0030.00517.42
8.1.60.0060.00317.68
8.1.50.0040.00417.50
8.1.40.0040.00417.63
8.1.30.0000.00817.65
8.1.20.0030.00617.74
8.1.10.0040.00417.72
8.1.00.0050.00317.55
8.0.300.0020.00518.77
8.0.290.0050.00216.75
8.0.280.0030.00318.38
8.0.270.0080.00017.34
8.0.260.0030.00317.17
8.0.250.0000.00717.05
8.0.240.0030.00317.07
8.0.230.0000.00717.03
8.0.220.0000.00717.04
8.0.210.0050.00316.89
8.0.200.0070.00017.11
8.0.190.0040.00417.11
8.0.180.0070.00316.95
8.0.170.0070.00316.96
8.0.160.0040.00417.05
8.0.150.0070.00417.02
8.0.140.0070.00017.02
8.0.130.0000.00613.45
8.0.120.0000.00916.87
8.0.110.0030.00516.92
8.0.100.0040.00416.98
8.0.90.0020.00517.05
8.0.80.0110.00417.13
8.0.70.0040.00416.91
8.0.60.0000.00717.08
8.0.50.0020.00516.85
8.0.30.0140.00617.34
8.0.20.0120.00717.40
8.0.10.0040.00417.26
8.0.00.0080.01217.07
7.4.330.0000.00516.78
7.4.320.0040.00416.55
7.4.300.0060.00016.73
7.4.290.0000.00716.74
7.4.280.0070.00316.64
7.4.270.0030.00316.58
7.4.260.0030.00516.55
7.4.250.0050.00216.69
7.4.240.0030.00516.67
7.4.230.0000.00716.48
7.4.220.0080.01116.59
7.4.210.0040.01116.72
7.4.200.0040.00416.48
7.4.160.0060.01116.58
7.4.150.0070.01117.40
7.4.140.0120.00917.86
7.4.130.0050.01616.64
7.4.120.0050.01216.73
7.4.110.0090.00916.82
7.4.100.0140.00316.79
7.4.90.0070.01016.76
7.4.80.0070.01119.39
7.4.70.0110.00516.56
7.4.60.0060.00916.70
7.4.50.0080.00816.67
7.4.40.0080.00816.74
7.4.30.0080.01116.66
7.4.00.0000.01414.80
7.3.330.0000.00513.23
7.3.320.0000.00513.08
7.3.310.0000.00716.26
7.3.300.0030.00316.41
7.3.290.0070.00916.39
7.3.280.0100.01016.43
7.3.270.0070.01117.40
7.3.260.0100.01316.50
7.3.250.0130.00916.51
7.3.240.0150.00516.52
7.3.230.0090.00916.75
7.3.210.0130.00716.58
7.3.200.0120.00316.52
7.3.190.0100.00716.59
7.3.180.0100.00716.51
7.3.170.0070.01016.55
7.3.160.0160.00616.49
7.2.330.0070.01016.71
7.2.320.0070.01616.68
7.2.310.0060.01216.65
7.2.300.0100.00716.83
7.2.290.0080.01116.71
7.2.60.0060.00916.91
7.2.00.0090.00619.52
7.1.200.0120.00315.89
7.1.100.0000.00918.48
7.1.70.0080.00017.36
7.1.60.0110.01419.13
7.1.50.0070.01317.13
7.1.00.0000.07722.47
7.0.200.0030.00617.01
7.0.60.0000.04319.97
7.0.50.0100.07317.91
7.0.40.0100.04320.14
7.0.30.0170.05020.18
7.0.20.0300.07720.18
7.0.10.0000.04720.11
7.0.00.0100.06320.03
5.6.280.0000.07320.88
5.6.210.0070.08720.47
5.6.200.0030.04018.11
5.6.190.0000.04720.61
5.6.180.0230.04020.67
5.6.170.0300.07020.51
5.6.160.0100.04720.41
5.6.150.0030.04318.19
5.6.140.0030.08318.14
5.6.130.0030.04318.11
5.6.120.0170.06021.11
5.6.110.0170.07021.13
5.6.100.0000.04721.00
5.6.90.0100.08320.95
5.6.80.0100.03320.39
5.5.350.0230.06720.27
5.5.340.0030.06717.91
5.5.330.0000.06020.36
5.5.320.0570.04320.28
5.5.310.0170.04720.34
5.5.300.0030.04017.91
5.5.290.0100.05317.96
5.5.280.0030.05320.79
5.5.270.0030.04020.75
5.5.260.0070.08320.75
5.5.250.0200.06320.57
5.5.240.0100.07320.25

preferences:
53.21 ms | 401 KiB | 5 Q