3v4l.org

run code in 300+ PHP versions simultaneously
<?php $csv = new SplFileObject('php://temp', 'wb'); $csv->setCsvControl(',', '"', '\\\'); $csv->fputcsv(['Escape my " character.', 'Field 2']); $csv->rewind(); $csv->fpassthru();

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)
7.0.20.0230.06320.10
7.0.10.0130.08320.10
7.0.00.0070.08720.15
5.6.170.0230.04320.47
5.6.160.0070.08720.48
5.6.150.0070.03318.23
5.6.140.0130.05018.28
5.6.130.0070.07018.27
5.6.120.0100.03721.14
5.6.110.0170.04021.02
5.6.100.0100.05320.97
5.6.90.0130.08320.88
5.6.80.0230.05720.47
5.5.310.0200.05020.23
5.5.300.0130.05318.08
5.5.290.0000.07718.08
5.5.280.0070.07720.98
5.5.270.0100.03320.84
5.5.260.0100.07720.75
5.5.250.0200.04720.61
5.5.240.0370.06320.13

preferences:
138.46 ms | 1394 KiB | 7 Q