3v4l.org

run code in 300+ PHP versions simultaneously
<?php $values = [ 'ip' => '127.0.0.1', 'hostname' => 'localhost', 'ipport' => '127.0.0.1:3307', 'hostname' => 'localhost:3308', 'ipv6' => '[2001:0DB8::1234]', 'ipv6port' => '[2001:0DB8::1234]:3309', ]; foreach($values as $k=>$hostport) { $host = $hostport; $port = 'not found'; // has port or ipv6 if (strpos($hostport, ':')) { // ipv6 if (str_starts_with($hostport, '[')) { $portposition = strpos($hostport,']:'); if ($portposition) { $port = substr($hostport, $portposition+2); $host = substr($hostport, 0, $portposition+1); } } else { [$host, $port] = explode(':', $hostport); } } echo $k .': Hostname: ' . $host . ' Port: ' . $port ."\n"; }

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.0120.00520.71
8.4.110.0130.00719.09
8.4.100.0150.00717.79
8.4.90.0070.01220.53
8.4.80.0100.01218.83
8.4.70.0080.00818.81
8.4.60.0080.00822.19
8.4.50.0110.01022.60
8.4.40.0130.00717.63
8.4.30.0100.01020.50
8.4.20.0140.00719.41
8.4.10.0080.00819.61
8.3.250.0110.00918.88
8.3.240.0120.00716.48
8.3.230.0080.00216.54
8.3.220.0100.00818.80
8.3.210.0120.00618.60
8.3.200.0060.00316.60
8.3.190.0110.00918.92
8.3.180.0040.00518.92
8.3.170.0110.00718.86
8.3.160.0080.01118.87
8.3.150.0060.01316.59
8.3.140.0000.00816.51
8.3.130.0110.00316.66
8.3.120.0030.00620.53
8.3.110.0380.01422.58
8.3.100.0220.00622.58
8.3.90.0250.01122.58
8.3.80.0200.00522.58
8.3.70.0240.00022.58
8.3.60.0220.00322.58
8.3.50.0210.00422.58
8.3.40.0180.00422.58
8.3.30.0150.01022.58
8.3.20.0230.00322.58
8.3.10.0210.00022.58
8.3.00.0080.00422.58
8.2.290.0130.00616.66
8.2.280.0080.00918.27
8.2.270.0030.00716.88
8.2.260.0120.00316.54
8.2.250.0040.00418.44
8.2.240.0060.00317.22
8.2.230.0210.00022.58
8.2.220.0210.00022.58
8.2.210.0110.00822.58
8.2.200.0180.00522.58
8.2.190.0190.00422.58
8.2.180.0190.00322.58
8.2.170.0230.00322.58
8.2.160.0160.00722.58
8.2.150.0150.00722.58
8.2.140.0150.00822.58
8.2.130.0230.00022.58
8.2.120.0280.00022.58
8.2.110.0220.00022.58
8.2.100.0130.00822.58
8.2.90.0130.00922.58
8.2.80.0150.00722.58
8.2.70.0210.00022.58
8.2.60.0190.00622.58
8.2.50.0170.01222.58
8.2.40.0240.00022.58
8.2.30.0140.01022.58
8.2.20.0150.00722.58
8.2.10.0090.01422.58
8.2.00.0140.00722.58
8.1.330.0100.01016.22
8.1.320.0110.00917.73
8.1.310.0050.01416.90
8.1.300.0080.00020.23
8.1.290.0150.00522.58
8.1.280.0170.00422.58
8.1.270.0150.00422.58
8.1.260.0140.00922.58
8.1.250.0170.00522.58
8.1.240.0170.00722.58
8.1.230.0230.00022.58
8.1.220.0160.00722.58
8.1.210.0140.00722.58
8.1.200.0150.00422.58
8.1.190.0130.00422.58
8.1.180.0180.00322.58
8.1.170.0230.00022.58
8.1.160.0150.00822.58
8.1.150.0180.00722.58
8.1.140.0180.00322.58
8.1.130.0100.01022.58
8.1.120.0170.00322.58
8.1.110.0160.00322.58
8.1.100.0120.00822.58
8.1.90.0150.00622.58
8.1.80.0200.00322.58
8.1.70.0160.00422.58
8.1.60.0160.00622.58
8.1.50.0220.00022.58
8.1.40.0160.00622.58
8.1.30.0180.00322.58
8.1.20.0110.01122.58
8.1.10.0130.00822.58
8.1.00.0130.00922.58

preferences:
42.29 ms | 403 KiB | 5 Q