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', 'user-service/api/' ]; foreach ($urls as $url) { echo preg_match('/\./', $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.5.10.0110.00816.55
8.5.00.0120.01120.16
8.4.150.0020.00014.05
8.4.140.0110.01017.53
8.4.130.0120.00817.89
8.4.120.0130.00820.33
8.4.110.0120.00822.22
8.4.100.0120.00917.80
8.4.90.0110.00918.88
8.4.80.0030.00619.72
8.4.70.0050.00317.96
8.4.60.0070.00420.41
8.4.50.0120.00817.93
8.4.40.0080.00817.64
8.4.30.0100.00718.66
8.4.20.0160.00319.84
8.4.10.0080.00019.51
8.3.280.0140.00718.49
8.3.270.0110.00816.52
8.3.260.0120.00816.81
8.3.250.0090.01018.95
8.3.240.0130.00616.75
8.3.230.0110.00816.62
8.3.220.0090.01017.33
8.3.210.0030.00516.64
8.3.200.0050.00416.73
8.3.190.0120.01017.30
8.3.180.0110.00816.63
8.3.170.0120.00618.77
8.3.160.0150.00316.88
8.3.150.0170.00318.65
8.3.140.0080.00016.90
8.3.130.0100.00618.52
8.3.120.0110.00618.54
8.3.110.0150.00418.35
8.3.100.0030.01418.25
8.3.90.0330.01326.77
8.3.80.0470.00326.77
8.3.70.0420.00826.77
8.3.60.0420.00726.77
8.3.50.0360.01326.77
8.3.40.0270.01026.77
8.3.30.0400.00726.77
8.3.20.0390.00326.77
8.3.10.0340.00826.77
8.3.00.0250.01426.77
8.2.290.0130.00520.75
8.2.280.0030.00520.53
8.2.270.0070.01118.88
8.2.260.0110.00016.77
8.2.250.0050.00316.61
8.2.240.0150.00017.07
8.2.230.0040.00420.94
8.2.220.0100.00024.06
8.2.210.0290.00626.77
8.2.200.0310.00926.77
8.2.190.0290.00026.77
8.2.180.0310.00826.77
8.2.170.0160.00626.77
8.2.160.0350.01026.77
8.2.150.0370.00626.77
8.2.140.0310.00726.77
8.2.130.0260.00926.77
8.2.120.0280.01226.77
8.2.110.0400.01026.77
8.2.100.0470.00026.77
8.2.90.0260.02026.77
8.2.80.0400.00326.77
8.2.70.0250.01326.77
8.2.60.0240.00326.77
8.2.50.0190.00026.77
8.2.40.0160.00326.77
8.2.30.0280.00426.77
8.2.20.0280.00426.77
8.2.10.0220.00326.77
8.2.00.0090.00926.77
8.1.330.0130.00721.95
8.1.320.0140.00516.48
8.1.310.0040.00416.84
8.1.300.0180.00018.22
8.1.290.0310.00626.77
8.1.280.0240.01726.77
8.1.270.0340.01026.77
8.1.260.0440.00426.77
8.1.250.0360.00726.77
8.1.240.0320.00626.77
8.1.230.0190.00526.77
8.1.220.0350.00326.77
8.1.210.0370.00026.77
8.1.200.0240.01426.77
8.1.190.0250.01326.77
8.1.180.0310.00726.77
8.1.170.0350.00026.77
8.1.160.0250.00626.77
8.1.150.0230.00726.77
8.1.140.0130.01026.77
8.1.130.0330.00426.77
8.1.120.0360.00326.77
8.1.110.0380.00826.77
8.1.100.0470.00026.77
8.1.90.0350.00726.77
8.1.80.0280.01426.77
8.1.70.0320.00426.77
8.1.60.0290.01026.77
8.1.50.0350.00626.77
8.1.40.0290.01326.77
8.1.30.0310.01026.77
8.1.20.0290.01326.77
8.1.10.0370.00826.77
8.1.00.0250.01926.77

preferences:
24.85 ms | 403 KiB | 5 Q