3v4l.org

run code in 300+ PHP versions simultaneously
<?php $urls = [ 'https://example.com/api/', 'https://www.example.com/test-subpath', 'https://www.example.com', 'example.com/test/page', 'www.example.com', 'www.subdomain.example.com', 'https://www.subdomain.example.com', 'subdomain.example.com', 'http://subdomain.example.com', 'https://subdomain.example.com', ]; foreach ($urls as $url) { echo filter_var($url, FILTER_VALIDATE_URL) ? 'OKAY' : 'FAIL', ': ', $url, PHP_EOL; }

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.120.0130.00620.59
8.4.110.0080.00318.75
8.4.100.0160.00517.88
8.4.90.0120.00917.79
8.4.80.0060.00222.71
8.4.70.0140.00717.69
8.4.60.0090.00717.71
8.4.50.0030.00820.46
8.4.40.0080.00817.75
8.4.30.0140.00720.27
8.4.20.0110.01119.59
8.4.10.0130.00619.28
8.3.250.0130.00618.75
8.3.240.0150.00416.56
8.3.230.0140.00516.47
8.3.220.0070.00219.13
8.3.210.0030.00416.41
8.3.200.0110.00616.76
8.3.190.0100.00917.25
8.3.180.0080.01018.97
8.3.170.0120.00618.86
8.3.160.0110.00716.70
8.3.150.0190.00018.98
8.3.140.0090.00617.18
8.3.130.0060.00616.62
8.3.120.0100.00018.79
8.3.110.0130.00318.02
8.3.100.0030.00618.43
8.3.90.0360.01026.77
8.3.80.0340.00726.77
8.3.70.0290.01026.77
8.3.60.0340.00526.77
8.3.50.0230.00326.77
8.3.40.0180.00126.77
8.3.30.0210.00726.77
8.3.20.0310.00426.77
8.3.10.0230.00726.77
8.3.00.0270.00926.77
8.2.290.0130.00520.53
8.2.280.0080.00616.80
8.2.270.0190.00018.98
8.2.260.0080.00416.34
8.2.250.0040.00416.69
8.2.240.0070.01316.94
8.2.230.0170.00320.94
8.2.220.0060.01224.06
8.2.210.0240.00626.77
8.2.200.0250.01326.77
8.2.190.0250.00626.77
8.2.180.0240.01626.77
8.2.170.0400.00926.77
8.2.160.0380.00626.77
8.2.150.0340.00826.77
8.2.140.0380.00626.77
8.2.130.0330.00726.77
8.2.120.0380.00626.77
8.2.110.0370.01026.77
8.2.100.0350.01126.77
8.2.90.0330.00826.77
8.2.80.0290.00726.77
8.2.70.0280.01226.77
8.2.60.0350.00726.77
8.2.50.0370.00626.77
8.2.40.0320.00526.77
8.2.30.0290.00926.77
8.2.20.0260.01326.77
8.2.10.0290.01026.77
8.2.00.0280.01126.77
8.1.330.0130.00516.41
8.1.320.0130.00616.24
8.1.310.0090.00016.48
8.1.300.0030.00615.92
8.1.290.0320.01026.77
8.1.280.0330.00826.77
8.1.270.0300.01326.77
8.1.260.0360.00626.77
8.1.250.0280.00326.77
8.1.240.0200.01026.77
8.1.230.0150.01226.77
8.1.220.0280.00826.77
8.1.210.0280.00926.77
8.1.200.0310.00526.77
8.1.190.0280.00926.77
8.1.180.0310.00526.77
8.1.170.0320.00626.77
8.1.160.0300.00826.77
8.1.150.0310.00726.77
8.1.140.0330.00526.77
8.1.130.0300.00826.77
8.1.120.0290.00926.77
8.1.110.0320.01026.77
8.1.100.0280.01426.77
8.1.90.0310.00726.77
8.1.80.0320.00626.77
8.1.70.0360.00926.77
8.1.60.0320.00726.77
8.1.50.0250.00626.77
8.1.40.0340.00426.77
8.1.30.0340.00826.77
8.1.20.0360.00726.77
8.1.10.0330.00626.77
8.1.00.0280.01226.77

preferences:
43.39 ms | 403 KiB | 5 Q