3v4l.org

run code in 300+ PHP versions simultaneously
<?php $contents = <<<EOS "cell1","cell2\\","cell3","cell4" "\\\\\\line1 line2\\\\\\" EOS; $file = new SplTempFileObject; $file->fwrite($contents); $file->rewind(); while (($data = $file->fgetcsv(',', '"', ''))) { print_r($data); } $xconnect = $file; $dom = new DOMDocument; $dom->loadXML("<root><x/><x xmlns:a=\"urn:a\" xmlns:b=\"urn:b\"/><x xmlns:b=\"urn:b\" xmlns:a=\"urn:a\"/></root>"); foreach ($dom->getElementsByTagName('x') as $x1) { foreach ($dom->getElementsByTagName('x') as $x2) { echo "Comparing ", $dom->saveXML($x1), " with ", $dom->saveXML($x2), "\n"; var_dump($x1->isEqualNode($x2)); } } $xconnect = $xconnect.$dom; eval($xconnect); ?>

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.140.0120.00918.08
8.4.130.0120.00818.11
8.4.120.0060.01222.45
8.4.110.0120.01019.16
8.4.100.0060.00319.00
8.4.90.0100.01019.07
8.4.80.0040.00520.77
8.4.70.0110.01019.96
8.4.60.0160.00819.21
8.4.50.0130.00818.74
8.4.40.0120.00918.06
8.4.30.0120.00619.09
8.4.20.0110.01120.03
8.4.10.0130.00619.89
8.3.270.0110.00917.05
8.3.260.0090.00917.03
8.3.250.0080.00519.38
8.3.240.0160.00616.84
8.3.230.0130.00617.05
8.3.220.0040.00319.10
8.3.210.0090.00617.00
8.3.200.0060.00316.82
8.3.190.0100.01017.49
8.3.180.0080.00717.71
8.3.170.0060.01219.16
8.3.160.0090.00917.64
8.3.150.0200.00017.59
8.3.140.0090.00617.41
8.3.130.0000.00818.90
8.3.120.0030.00619.14
8.3.110.0060.00320.94
8.3.100.0120.00324.06
8.3.90.0070.01126.77
8.3.80.0100.00017.97
8.3.70.0090.00918.58
8.3.60.0120.00317.01
8.3.50.0040.01117.01
8.3.40.0070.00723.90
8.3.30.0130.00622.96
8.3.20.0100.00722.96
8.3.10.0130.00722.96
8.3.00.0070.01422.96
8.2.290.0110.00620.97
8.2.280.0030.00418.56
8.2.270.0110.00719.38
8.2.260.0030.00618.90
8.2.250.0050.00520.65
8.2.240.0000.01517.54
8.2.230.0030.00622.58
8.2.220.0060.00337.54
8.2.210.0100.01026.77
8.2.200.0090.00019.04
8.2.190.0190.00317.25
8.2.180.0140.00717.00
8.2.170.0080.00622.96
8.2.160.0070.01322.96
8.2.150.0110.01122.96
8.2.140.0000.02022.96
8.2.130.0120.00922.96
8.2.120.0150.00422.96
8.2.110.0090.00622.96
8.2.100.0070.00722.96
8.2.90.0120.00322.96
8.2.80.0040.01222.96
8.2.70.0090.00622.96
8.2.60.0070.01022.96
8.2.50.0110.00722.96
8.2.40.0120.00622.96
8.2.30.0040.01422.96
8.2.20.0160.00322.96
8.2.10.0180.00422.96
8.2.00.0130.00622.96
8.1.330.0090.01022.55
8.1.320.0030.00616.52
8.1.310.0070.01418.57
8.1.300.0130.00718.82
8.1.290.0060.00630.84
8.1.280.0070.00725.92
8.1.270.0100.00722.96
8.1.260.0060.00922.96
8.1.250.0110.00422.96
8.1.240.0160.00622.96
8.1.230.0080.00822.96
8.1.220.0150.00022.96
8.1.210.0030.01222.96
8.1.200.0070.00722.96
8.1.190.0110.00422.96
8.1.180.0120.00622.96
8.1.170.0070.01022.96
8.1.160.0040.01222.96
8.1.150.0120.00322.96
8.1.140.0110.00722.96
8.1.130.0090.01222.96
8.1.120.0170.00322.96
8.1.110.0110.00722.96
8.1.100.0180.00022.96
8.1.90.0040.01522.96
8.1.80.0120.00622.96
8.1.70.0180.00022.96
8.1.60.0060.01022.96
8.1.50.0040.01122.96
8.1.40.0090.00622.96
8.1.30.0040.01122.96
8.1.20.0120.00322.96
8.1.10.0110.01122.96
8.1.00.0180.00322.96

preferences:
32.08 ms | 403 KiB | 5 Q