3v4l.org

run code in 300+ PHP versions simultaneously
<?php $domainName = '...cloud.daanscho.one....'; // Strip periods, apply punycode encoding, and convert to lowercase $domainName = strtolower( trim($domainName, '.') ); var_dump($domainName); $domainName = '...cloud.daanscho.one....'; // Strip periods, apply punycode encoding, and convert to lowercase $domainName = strtolower( preg_replace('/^[.]*(?U)(.*)[.]*$/u', '\\1', $domainName) ); var_dump($domainName);

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.0160.01218.56
8.3.50.0110.00416.79
8.3.40.0060.00918.98
8.3.30.0090.00618.82
8.3.20.0080.00020.13
8.3.10.0070.00021.76
8.3.00.0080.00020.71
8.2.180.0070.00718.18
8.2.170.0170.00022.96
8.2.160.0070.00722.40
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00420.44
8.2.120.0040.00426.35
8.2.110.0000.00921.02
8.2.100.0090.00318.16
8.2.90.0000.00818.22
8.2.80.0000.00817.97
8.2.70.0000.00817.80
8.2.60.0000.00817.80
8.2.50.0090.00018.10
8.2.40.0080.00022.46
8.2.30.0080.00021.02
8.2.20.0080.00017.98
8.2.10.0040.00418.09
8.2.00.0000.00718.09
8.1.280.0000.01425.92
8.1.270.0040.00423.96
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0060.00322.19
8.1.230.0070.00422.75
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0100.00017.35
8.1.190.0050.00317.35
8.1.180.0040.00418.10
8.1.170.0040.00418.78
8.1.160.0040.00419.00
8.1.150.0040.00418.96
8.1.140.0000.00719.60
8.1.130.0080.00018.77
8.1.120.0000.01117.49
8.1.110.0040.00417.54
8.1.100.0060.00317.56
8.1.90.0000.00817.55
8.1.80.0040.00417.43
8.1.70.0000.00717.45
8.1.60.0030.00617.67
8.1.50.0040.00417.68
8.1.40.0000.00817.54
8.1.30.0080.00017.78
8.1.20.0040.00417.67
8.1.10.0040.00417.66
8.1.00.0040.00417.45
8.0.300.0000.00719.81
8.0.290.0080.00016.75
8.0.280.0070.00018.31
8.0.270.0030.00317.21
8.0.260.0030.00316.89
8.0.250.0000.00717.12
8.0.240.0030.00316.91
8.0.230.0030.00717.01
8.0.220.0070.00017.07
8.0.210.0040.00417.05
8.0.200.0000.00617.11
8.0.190.0080.00017.09
8.0.180.0050.00217.02
8.0.170.0050.00317.06
8.0.160.0040.00417.07
8.0.150.0000.00717.04
8.0.140.0030.00717.00
8.0.130.0060.00213.45
8.0.120.0040.00417.00
8.0.110.0000.00816.95
8.0.100.0040.00416.91
8.0.90.0000.00717.10
8.0.80.0060.01217.01
8.0.70.0040.00416.89
8.0.60.0040.00417.02
8.0.50.0070.00016.92
8.0.30.0150.00717.33
8.0.20.0100.01017.40
8.0.10.0030.00517.05
8.0.00.0030.01316.85
7.4.330.0000.00515.55
7.4.320.0040.00416.66
7.4.300.0000.00616.79
7.4.290.0090.00016.64
7.4.280.0040.00416.75
7.4.270.0040.00416.60
7.4.260.0030.00316.63
7.4.250.0030.00516.47
7.4.240.0000.00716.66
7.4.230.0040.00416.70
7.4.220.0130.01316.65
7.4.210.0050.00916.70
7.4.200.0070.00016.77
7.4.160.0070.00916.54
7.4.150.0080.01117.40
7.4.140.0080.00917.86
7.4.130.0210.01116.63
7.4.120.0090.01016.74
7.4.110.0080.00816.82
7.4.100.0090.00916.56
7.4.90.0130.00316.50
7.4.80.0070.01019.39
7.4.70.0100.00716.77
7.4.60.0090.00916.73
7.4.50.0080.00416.84
7.4.40.0070.01616.73
7.4.30.0160.00016.66
7.4.00.0100.00514.97
7.3.330.0020.00213.08
7.3.320.0000.00513.08
7.3.310.0000.00716.48
7.3.300.0030.00316.45
7.3.290.0000.00716.45
7.3.280.0070.01016.34
7.3.270.0100.00717.40
7.3.260.0130.00316.51
7.3.250.0100.00916.30
7.3.240.0050.01616.36
7.3.230.0140.00516.65
7.3.210.0110.00616.22
7.3.200.0190.00316.58
7.3.190.0110.00516.34
7.3.180.0130.00316.70
7.3.170.0060.00916.26
7.3.160.0090.00616.71
7.3.120.0110.00715.18
7.3.110.0030.01415.04
7.3.100.0100.00314.87
7.3.90.0070.00415.20
7.3.80.0080.00514.79
7.3.70.0070.00714.86
7.3.60.0030.01314.89
7.3.50.0110.00414.80
7.3.40.0060.00914.67
7.3.30.0060.00614.88
7.3.20.0060.00616.77
7.3.10.0120.00316.81
7.3.00.0040.01016.66
7.2.330.0080.01116.57
7.2.320.0170.00616.45
7.2.310.0100.00716.59
7.2.300.0180.00616.69
7.2.290.0060.01216.74
7.2.250.0030.01414.98
7.2.240.0030.01715.08
7.2.230.0100.00315.10
7.2.220.0050.00515.17
7.2.210.0070.00715.30
7.2.200.0030.01215.15
7.2.190.0090.00615.04
7.2.180.0070.01015.20
7.2.170.0000.01314.81
7.2.130.0080.00816.96
7.2.120.0030.01316.92
7.2.110.0000.01616.90
7.2.100.0120.00317.01
7.2.90.0070.01416.68
7.2.80.0100.00716.94
7.2.70.0080.00616.93
7.2.60.0000.01616.77
7.2.50.0070.00717.09
7.2.40.0100.00717.05
7.2.30.0040.01417.02
7.2.20.0090.00316.96
7.2.10.0100.00716.66
7.2.00.0050.00818.14
7.1.330.0100.00315.88
7.1.320.0100.00315.84
7.1.310.0140.00315.89
7.1.300.0040.00715.59
7.1.290.0110.00415.96
7.1.280.0030.00915.52
7.1.270.0030.01016.10
7.1.260.0040.00415.97
7.1.250.0100.00716.05
7.1.100.0030.01318.35
7.1.70.0000.01117.46
7.1.60.0370.01033.41
7.1.50.0400.01032.82
7.1.40.0230.02332.73
7.1.30.0430.00732.95
7.1.20.0430.01033.11
7.1.10.0230.01015.14
7.1.00.0330.02015.07
7.0.200.0300.00714.70
7.0.190.0400.01314.80
7.0.180.0370.00714.78
7.0.170.0430.01014.63
7.0.160.0300.01314.55
7.0.150.0370.01014.63
7.0.140.0300.01014.77
7.0.130.0400.01014.73
7.0.120.0370.01014.84
7.0.110.0230.01314.72
7.0.100.0370.00714.49
7.0.90.0300.00314.88
7.0.80.0170.01314.56
7.0.70.0170.01314.76
7.0.60.0270.00314.58
7.0.50.0230.01014.41
7.0.40.0300.01314.71
7.0.30.0330.01314.86
7.0.20.0370.01314.71
7.0.10.0100.00714.77
7.0.00.0470.00714.73

preferences:
40.99 ms | 401 KiB | 5 Q