3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = [ "test1", "test2", "test3", "test4", "test5", ]; $handle = fopen('php://memory', 'w+'); // Accepting the default values doesnt work fputcsv($handle, $data); // Providing all default parameter values work fputcsv($handle, $data, ",", "\"", "\\", "\n"); 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.130.0110.01117.81
8.4.120.0100.01023.87
8.4.110.0080.01018.91
8.4.100.0120.00818.68
8.4.90.0140.00420.68
8.4.80.0060.00318.73
8.4.70.0050.00418.88
8.4.60.0070.00919.01
8.4.50.0100.00820.12
8.4.40.0100.01017.75
8.4.30.0080.01118.68
8.4.20.0070.01321.16
8.4.10.0110.00917.70
8.3.260.0030.00516.95
8.3.250.0100.00818.87
8.3.240.0100.00816.56
8.3.230.0120.00516.42
8.3.220.0140.00418.92
8.3.210.0100.00818.25
8.3.200.0050.00416.46
8.3.190.0040.00417.14
8.3.180.0080.00618.91
8.3.170.0030.00617.00
8.3.160.0140.00320.53
8.3.150.0040.01517.20
8.3.140.0070.01116.43
8.3.130.0040.01416.55
8.3.50.0140.00416.71
8.2.290.0080.01020.50
8.2.280.0140.00620.27
8.2.270.0040.01416.37
8.2.260.0090.00916.64
8.2.250.0140.00716.65
8.1.320.0100.00516.30
8.1.00.0150.00516.84
8.0.300.0280.00416.52
8.0.00.0230.00916.61
7.4.330.0260.00616.16
7.2.00.0250.00716.29
7.0.80.0220.00714.79
5.6.400.0190.00815.34
5.0.50.0100.00313.63
4.3.110.0070.00113.63

preferences:
33.9 ms | 403 KiB | 5 Q