3v4l.org

run code in 300+ PHP versions simultaneously
<?php $file = new SplTempFileObject(); $file->fwrite( "first row, first field", "first \"row\", second field" "second row, first field", "second row, second field" "third row, first field", "third row, second field" ); $file->setFlags(SplTempFileObject::READ_CSV); var_dump(iterator_to_array($file));

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.0330.07020.01
7.0.10.0200.04320.23
7.0.00.0130.05720.09
5.6.170.0230.04720.44
5.6.160.0030.06720.48
5.6.150.0030.08718.17
5.6.140.0070.04318.17
5.6.130.0100.07018.18
5.6.120.0100.05321.05
5.6.110.0000.04721.09
5.6.100.0070.09020.95
5.6.90.0030.04021.11
5.6.80.0100.07720.41
5.5.310.0170.08020.30
5.5.300.0070.03717.95
5.5.290.0130.07317.99
5.5.280.0070.08020.76
5.5.270.0130.08020.86
5.5.260.0130.05320.86
5.5.250.0070.07720.54
5.5.240.0230.07020.23

preferences:
140.33 ms | 1394 KiB | 7 Q