3v4l.org

run code in 500+ PHP versions simultaneously
<?php $csv = <<<'CSV' a,b,c,d 1,2,3,4 1,2,3,4 1,2,3,4 1,2,3,4 1,2,3,4 1,2,3,4 1,2,3,4 1,2,3,4 1,2,3,4 1,2,3,4 1,2,3,4 1,2,3,4 1,2,3,4 1,2,3,4 1,2,3,4 1,2,3,4 1,2,3,4 1,2,3,4 1,2,3,4 CSV; // Extension is important $filename = '/tmp/data.txt'; $nBytes = file_put_contents($filename,$csv); if ( $nBytes === false ) { trigger_error("Unable to write data to file", E_USER_ERROR); } $fi = finfo_open( FILEINFO_MIME_TYPE ); if ($fi === false ) { trigger_error("Unable to open finfo", E_USER_ERROR); } $mimeType = finfo_file($fi, $filename, FILEINFO_MIME_TYPE); echo $mimeType;

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.5.90.0110.00316.63
8.5.80.0060.00416.80
8.5.70.0090.00916.70
8.5.60.0110.00516.79
8.5.50.0110.00616.63
8.5.30.0120.00619.41
8.5.20.0110.00619.57
8.5.10.0100.00820.27
8.5.00.0110.01119.77
8.4.240.0100.01119.44
8.4.230.0070.00519.68
8.4.220.0150.00619.63
8.4.210.0130.00823.25
8.4.180.0110.01219.61
8.4.170.0110.01023.72
8.4.160.0110.01223.92
8.4.150.0070.00516.78
8.4.140.0120.00917.57
8.4.130.0090.01118.00
8.4.120.0060.00220.59
8.4.110.0140.00622.30
8.4.100.0100.00617.63
8.4.90.0150.00818.06
8.4.80.0050.00417.74
8.4.70.0060.00417.83
8.4.60.0120.00718.56
8.4.50.0070.00517.66
8.4.40.0160.00321.77
8.4.30.0120.00318.71
8.4.20.0000.00921.50
8.4.10.0100.00023.70
8.3.330.0060.00518.56
8.3.320.0130.00818.28
8.3.310.0130.00918.41
8.3.300.0150.00520.93
8.3.290.0140.00718.04
8.3.280.0120.01018.26
8.3.270.0120.00816.48
8.3.260.0060.00316.80
8.3.250.0120.00718.83
8.3.240.0080.00816.73
8.3.230.0110.00916.63
8.3.220.0130.00616.89
8.3.210.0050.00318.32
8.3.200.0060.00316.44
8.3.190.0100.00917.10
8.3.180.0140.00616.66
8.3.170.0070.01016.98
8.3.160.0090.00918.26
8.3.150.0150.00418.10
8.3.140.0000.00818.91
8.3.130.0070.01018.15
8.3.120.0050.00518.82
8.3.110.0060.00320.94
8.3.100.0000.00816.42
8.3.90.0000.00826.77
8.3.80.0060.00316.25
8.3.70.0110.01116.63
8.3.60.0110.01118.36
8.3.50.0090.00619.99
8.3.40.0160.00320.17
8.3.30.0120.00318.74
8.3.20.0060.00324.18
8.3.10.0040.00424.66
8.3.00.0040.00426.16
8.2.320.0110.00818.03
8.2.310.0130.00717.94
8.2.300.0160.00618.14
8.2.290.0040.00520.54
8.2.280.0130.00618.30
8.2.270.0120.00617.19
8.2.260.0040.00418.41
8.2.250.0080.00016.82
8.2.240.0130.00716.95
8.2.230.0080.00022.58
8.2.220.0070.00724.06
8.2.210.0040.00426.77
8.2.200.0030.00616.75
8.2.190.0120.00318.41
8.2.180.0040.01825.92
8.2.170.0090.00618.91
8.2.160.0070.00722.96
8.2.150.0080.00025.66
8.2.140.0090.00024.66
8.2.130.0080.00026.16
8.2.120.0050.00326.16
8.2.110.0060.00322.26
8.2.100.0070.00417.72
8.2.90.0080.00017.50
8.2.80.0040.00417.97
8.2.70.0240.00079.33
8.2.60.0140.00779.33
8.2.50.0170.00279.33
8.2.40.0180.00079.33
8.2.30.0180.00079.33
8.2.20.0160.00279.33
8.2.10.0140.00479.33
8.2.00.0080.00879.33
8.1.340.0100.01219.56
8.1.330.0130.00518.20
8.1.320.0140.00516.08
8.1.310.0040.01418.34
8.1.300.0100.00617.77
8.1.290.0030.00630.84
8.1.280.0070.01025.92
8.1.270.0000.00824.66
8.1.260.0000.00726.35
8.1.250.0050.00328.09
8.1.240.0060.00323.89
8.1.230.0090.00619.16
8.1.220.0040.00417.78
8.1.210.0000.00818.77
8.1.200.0170.00079.33
8.1.190.0070.00979.33
8.1.180.0180.00079.33
8.1.170.0130.00479.33
8.1.160.0180.00079.33
8.1.150.0120.00579.33
8.1.140.0110.00579.33
8.1.130.0070.01179.33
8.1.120.0120.00679.33
8.1.110.0170.00079.33
8.1.100.0140.00379.33
8.1.90.0080.00879.33
8.1.80.0180.00079.33
8.1.70.0170.00079.33
8.1.60.0110.00879.33
8.1.50.0130.00779.33
8.1.40.0110.00879.33
8.1.30.0140.00579.33
8.1.20.0160.00479.33
8.1.10.0120.00879.33
8.1.00.0190.00079.33
8.0.300.0040.00418.77
8.0.290.0130.00579.33
8.0.280.0000.01879.33
8.0.270.0150.00379.33
8.0.260.0180.00079.33
8.0.250.0130.00579.33
8.0.240.0100.00779.33
8.0.230.0100.01079.33
8.0.220.0160.00479.33
8.0.210.0180.00079.33
8.0.200.0120.00879.33
8.0.190.0160.00479.33
8.0.180.0220.00079.33
8.0.170.0100.01079.33
8.0.160.0120.00679.33
8.0.150.0190.00079.33
8.0.140.0130.00779.33
8.0.130.0200.00079.33
8.0.120.0230.00079.33
8.0.110.0120.00779.33
8.0.100.0150.00479.33
8.0.90.0090.00979.33
8.0.80.0140.00579.33
8.0.70.0150.00479.33
8.0.60.0130.00679.33
8.0.50.0140.00379.33
8.0.30.0180.00079.33
8.0.20.0160.00479.33
8.0.10.0080.00979.33
7.4.330.0160.00079.33
7.4.320.0170.00379.33
7.4.300.0000.02079.33
7.4.290.0210.00079.33
7.4.280.0180.00479.33
7.4.270.0120.00879.33
7.4.260.0160.00379.33
7.4.250.0080.01279.33
7.4.240.0190.00079.33
7.4.230.0000.01879.33
7.4.220.0140.00579.33
7.4.210.0110.00979.33
7.4.200.0130.00779.33
7.4.190.0120.00879.33
7.4.180.0130.00779.33
7.4.160.0150.00779.33
7.4.150.0140.00779.33
7.4.140.0200.00079.33
7.4.130.0130.00479.33
7.4.120.0180.00079.33
7.4.110.0150.00479.33
7.4.100.0200.00079.33
7.4.90.0000.01879.33
7.4.80.0120.00979.33
7.4.70.0080.01279.33
7.4.60.0160.00379.33
7.4.50.0190.00079.33
7.4.40.0180.00379.33
7.4.30.0110.00879.33
7.4.20.0180.00379.33
7.4.10.0170.00379.33
7.4.00.0120.00879.33

preferences:
43.59 ms | 1275 KiB | 5 Q