3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = 'Year,Make,Model,Description,Price 1997,Ford,E350,"ac, abs, moon",3000.00 1999,Chevy,"Venture ""Extended Edition""","",4900.00 1999,Chevy,"Venture ""Extended Edition, Very Large""","",5000.00 1996,Jeep,Grand Cherokee,"MUST SELL! air, moon roof, loaded",4799.00'; $handle = fopen("data://text/plain,$data", 'r'); while (($row = fgetcsv($handle, )) !== FALSE) { // do something with row values print_r($row); } fclose($handle);

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.0040.00620.68
8.4.110.0130.00818.96
8.4.100.0140.00617.62
8.4.90.0090.01220.81
8.4.80.0100.00724.15
8.4.70.0030.00519.09
8.4.60.0120.00920.80
8.4.50.0110.00920.27
8.4.40.0160.00017.55
8.4.30.0070.01120.39
8.4.20.0090.00017.70
8.4.10.0140.00719.43
8.3.250.0150.00317.10
8.3.240.0120.00716.72
8.3.230.0070.00416.54
8.3.220.0100.00818.73
8.3.210.0090.00718.45
8.3.200.0040.00416.56
8.3.190.0100.00917.33
8.3.180.0090.01018.64
8.3.170.0150.00316.95
8.3.160.0150.00318.07
8.3.150.0060.00318.49
8.3.140.0180.00916.27
8.3.50.0150.00516.65
8.2.290.0030.00517.17
8.2.280.0140.00618.16
8.2.270.0130.00416.70
8.2.260.0160.01216.48
8.1.320.0040.00517.74
7.4.270.0290.00618.14

preferences:
31.37 ms | 403 KiB | 5 Q