3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = <<<EOL "test0","test1 test2 test3 test4 test5 test6","test7", test01,test02,test03,test04 EOL; $my_csv_text = get_csv_from_internet(); // Open a memory "file" for read/write... $f = fopen('php://memory', 'r+'); fwrite($f, $string); rewind($f); while (($data = fgetcsv($f)) !== FALSE) { var_dump($data); }

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.3.60.0110.01118.30
8.3.50.0140.00716.09
8.3.40.0150.00018.61
8.3.30.0110.00718.61
8.3.20.0050.00320.34
8.3.10.0080.00021.91
8.3.00.0000.00720.30
8.2.180.0170.00018.29
8.2.170.0170.00022.96
8.2.160.0090.00620.47
8.2.150.0050.00324.18
8.2.140.0050.00324.66
8.2.130.0080.00020.99
8.2.120.0070.00026.35
8.2.110.0090.00019.39
8.2.100.0110.00017.91
8.2.90.0030.00619.17
8.2.80.0040.00418.04
8.2.70.0060.00317.50
8.2.60.0060.00317.80
8.2.50.0000.00818.10
8.2.40.0040.00420.59
8.2.30.0040.00420.84
8.2.20.0000.00717.91
8.2.10.0000.00818.17
8.2.00.0040.00418.11
8.1.280.0160.00725.92
8.1.270.0020.00522.24
8.1.260.0080.00026.35
8.1.250.0050.00328.09
8.1.240.0090.00022.41
8.1.230.0090.00517.45
8.1.220.0000.00917.74
8.1.210.0030.00618.77
8.1.200.0060.00317.35
8.1.190.0040.00417.13
8.1.180.0040.00418.10
8.1.170.0040.00418.37
8.1.160.0050.00219.01
8.1.150.0040.00420.61
8.1.140.0000.00919.56
8.1.130.0000.00718.72
8.1.120.0050.00317.48
8.1.110.0040.00417.34
8.1.100.0000.00817.29
8.1.90.0060.00317.46
8.1.80.0050.00217.29
8.1.70.0040.00417.39
8.1.60.0120.00017.43
8.1.50.0000.01217.57
8.1.40.0030.00517.52
8.1.30.0000.00817.67
8.1.20.0040.00417.63
8.1.10.0040.00417.46
8.1.00.0040.00417.41
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0000.00718.32
8.0.270.0030.00317.14
8.0.260.0040.00416.77
8.0.250.0000.00716.84
8.0.240.0000.00716.96
8.0.230.0030.00516.96
8.0.220.0000.00716.92
8.0.210.0000.00716.94
8.0.200.0060.00017.00
8.0.190.0030.00616.95
8.0.180.0000.00816.82
8.0.170.0070.00016.84
8.0.160.0050.00216.90
8.0.150.0000.00716.85
8.0.140.0070.00016.92
8.0.130.0030.00313.27
8.0.120.0090.00016.76
8.0.110.0000.00716.80
8.0.100.0000.00716.91
8.0.90.0040.00416.80
8.0.80.0110.00516.89
8.0.70.0040.00416.79
8.0.60.0040.00416.98
8.0.50.0020.00516.71
8.0.30.0070.01116.90
8.0.20.0110.00917.40
8.0.10.0040.00417.02
8.0.00.0180.00616.64
7.4.330.0050.00015.55
7.4.320.0030.00316.57
7.4.300.0030.00316.36
7.4.290.0000.00716.55
7.4.280.0040.00416.42
7.4.270.0030.00316.63
7.4.260.0030.00316.58
7.4.250.0000.00716.46
7.4.240.0000.00716.43
7.4.230.0070.00016.40
7.4.220.0130.01316.54
7.4.210.0030.01216.53
7.4.200.0030.00316.44
7.4.160.0090.00616.52
7.4.150.0070.01217.40
7.4.140.0080.01217.86
7.4.130.0140.00716.44
7.4.120.0100.01116.55
7.4.110.0000.01816.59
7.4.100.0030.01416.39
7.4.90.0080.00816.59
7.4.80.0090.00919.39
7.4.70.0090.01216.42
7.4.60.0040.01216.63
7.4.50.0030.01016.39
7.4.40.0060.00916.35
7.4.30.0060.01016.59
7.4.00.0070.01014.66
7.3.330.0000.00513.20
7.3.320.0030.00313.14
7.3.310.0030.00316.18
7.3.300.0000.00816.17
7.3.290.0030.00316.26
7.3.280.0100.00616.25
7.3.270.0100.00717.40
7.3.260.0060.01116.34
7.3.250.0110.00916.45
7.3.240.0080.01216.22
7.3.230.0110.00616.20
7.3.210.0100.00616.30
7.3.200.0130.00316.27
7.3.190.0130.00316.41
7.3.180.0140.00416.14
7.3.170.0080.00816.37
7.3.160.0080.00816.56
7.2.330.0110.00816.39
7.2.320.0080.00816.30
7.2.310.0070.01016.42
7.2.300.0180.00416.23
7.2.290.0070.01116.66
7.2.60.0040.01116.63
7.2.00.0070.00719.29
7.1.200.0150.00315.49
7.1.100.0060.00317.75
7.1.70.0030.01016.69
7.1.60.0200.02034.95
7.1.50.0230.01034.77
7.1.40.0170.01434.17
7.1.30.0180.01134.57
7.1.20.0240.00734.40
7.1.10.0030.01316.46
7.1.00.0060.00916.37
7.0.200.0100.00716.44
7.0.190.0090.00616.70
7.0.180.0120.00316.07
7.0.170.0030.01216.07
7.0.160.0020.01216.09
7.0.150.0040.01216.16
7.0.140.0060.00916.31
7.0.130.0090.00916.54
7.0.120.0000.01516.38
7.0.110.0030.01716.25
7.0.100.0070.01016.37
7.0.90.0160.00316.06
7.0.80.0090.00616.34
7.0.70.0090.00616.07
7.0.60.0060.00915.95
7.0.50.0030.01016.13
7.0.40.0030.01416.46
7.0.30.0070.01016.21
7.0.20.0080.00816.27
7.0.10.0130.00316.15
7.0.00.0140.00316.19

preferences:
41.98 ms | 401 KiB | 5 Q