3v4l.org

run code in 300+ PHP versions simultaneously
<?php $csv = <<<'CSV' name, mail, age, bio john, j@ohn.com, 32, mary, mary@popp.com, 29, jeff, brid@ges.co, 47, "peterson, peter", peter@sson.com, 44, "loves: hobbies puzzles" CSV; $file = fopen('php://temp', 'rw'); var_dump($file); echo "\n"; fwrite($file, $csv); rewind($file); fpassthru($file); rewind($file); echo "\n\n"; function csv($file) { $header = null; while ($row = fgetcsv($file)) { $row = array_map('trim', $row); if ($header) { yield array_combine($header, $row); } else { $header = $row; } } } print_r(iterator_to_array(csv($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)
8.3.120.0060.00318.97
8.3.110.0080.00018.28
8.3.100.0090.00016.75
8.3.90.0040.00426.77
8.3.80.0060.00318.43
8.3.70.0120.00618.68
8.3.60.0180.00016.50
8.3.50.0150.00722.06
8.3.40.0100.00618.92
8.3.30.0000.01518.89
8.3.20.0070.00020.38
8.3.10.0040.00421.89
8.3.00.0030.00522.47
8.2.240.0000.00816.58
8.2.230.0030.00520.94
8.2.220.0060.00624.06
8.2.210.0120.00626.77
8.2.200.0060.00318.41
8.2.190.0090.00616.85
8.2.180.0100.00718.42
8.2.170.0150.00022.96
8.2.160.0080.00619.30
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0060.00322.13
8.2.120.0050.00326.35
8.2.110.0060.00320.52
8.2.100.0110.00017.91
8.2.90.0030.00619.25
8.2.80.0000.00817.97
8.2.70.0040.00417.63
8.2.60.0050.00517.92
8.2.50.0030.00518.10
8.2.40.0060.00320.37
8.2.30.0000.00719.31
8.2.20.0040.00417.61
8.2.10.0040.00418.19
8.2.00.0090.00017.76
8.1.300.0130.00716.19
8.1.290.0060.00318.88
8.1.280.0170.00025.92
8.1.270.0060.00323.96
8.1.260.0060.00328.09
8.1.250.0040.00428.09
8.1.240.0030.00723.96
8.1.230.0090.00323.90
8.1.220.0000.00817.74
8.1.210.0080.00018.77
8.1.200.0030.00617.36
8.1.190.0030.00517.35
8.1.180.0030.00618.10
8.1.170.0050.00318.65
8.1.160.0000.00722.19
8.1.150.0050.00218.94
8.1.140.0040.00419.56
8.1.130.0070.00017.77
8.1.120.0000.00817.52
8.1.110.0060.00317.50
8.1.100.0000.00817.52
8.1.90.0020.00517.38
8.1.80.0040.00417.49
8.1.70.0000.00717.51
8.1.60.0030.00617.65
8.1.50.0060.00317.57
8.1.40.0000.00817.48
8.1.30.0000.00917.66
8.1.20.0050.00217.67
8.1.10.0000.00717.52
8.1.00.0040.00417.43
8.0.300.0000.00818.77
8.0.290.0040.00416.88
8.0.280.0040.00418.46
8.0.270.0030.00617.33
8.0.260.0030.00317.45
8.0.250.0000.00716.99
8.0.240.0000.00717.02
8.0.230.0100.00017.09
8.0.220.0000.00717.00
8.0.210.0000.00817.09
8.0.200.0000.00717.13
8.0.190.0030.00617.01
8.0.180.0040.00416.92
8.0.170.0040.00417.07
8.0.160.0040.00417.15
8.0.150.0030.00517.02
8.0.140.0080.00016.98
8.0.130.0000.00513.46
8.0.120.0040.00417.02
8.0.110.0000.00717.10
8.0.100.0080.00017.04
8.0.90.0000.00716.98
8.0.80.0100.00616.99
8.0.70.0040.00417.06
8.0.60.0030.00517.08
8.0.50.0000.00717.07
8.0.30.0080.01116.99
8.0.20.0100.00917.40
8.0.10.0000.00717.07
8.0.00.0090.00916.92
7.4.330.0080.00015.08
7.4.320.0030.00316.43
7.4.300.0000.00716.51
7.4.290.0040.00416.64
7.4.280.0040.00416.62
7.4.270.0060.00016.46
7.4.260.0070.00016.41
7.4.250.0000.00716.44
7.4.240.0000.00816.55
7.4.230.0000.00816.60
7.4.220.0090.00916.69
7.4.210.0050.00916.71
7.4.200.0040.00416.74
7.4.160.0120.00516.72
7.4.150.0170.00017.40
7.4.140.0090.01017.86
7.4.130.0050.01216.60
7.4.120.0080.01016.45
7.4.110.0030.01416.69
7.4.100.0130.00316.54
7.4.90.0090.01516.55
7.4.80.0100.01119.39
7.4.70.0130.00416.57
7.4.60.0660.00516.41
7.4.50.0050.00616.33
7.4.40.0120.00616.75
7.4.30.0040.01316.53
7.4.00.0030.01015.13
7.3.330.0000.00513.41
7.3.320.0030.00313.45
7.3.310.0030.00416.43
7.3.300.0070.00016.46
7.3.290.0070.00016.38
7.3.280.0080.01016.43
7.3.270.0160.00017.40
7.3.260.0080.01316.42
7.3.250.0110.00716.33
7.3.240.0060.01716.46
7.3.230.0070.01016.55
7.3.210.0160.00816.44
7.3.200.0150.00416.28
7.3.190.0070.01616.53
7.3.180.0100.00716.52
7.3.170.0040.01816.38
7.3.160.0030.01916.43
7.2.330.0120.00616.50
7.2.320.0140.00416.27
7.2.310.0100.01316.84
7.2.300.0030.01416.45
7.2.290.0120.00916.45
7.2.60.0090.00616.72
7.2.00.0040.01219.25
7.1.200.0070.00715.66
7.1.70.0080.00417.28
7.1.60.0040.00817.14
7.1.00.0070.07322.45
7.0.200.0130.00614.96
7.0.100.4530.08319.93
7.0.90.0170.05720.01
7.0.80.5230.07320.07
7.0.70.0100.06320.07
7.0.60.0130.06020.05
7.0.50.0170.08020.40
7.0.40.0200.08020.33
7.0.30.0230.05020.36
7.0.20.0070.08320.32
7.0.10.0170.05320.35
7.0.00.0100.06320.32
5.6.250.0170.07020.74
5.6.240.0300.06320.77
5.6.230.0170.07720.63
5.6.220.0170.07720.75
5.6.210.0200.05720.56
5.6.200.0200.06021.15
5.6.190.0270.07021.20
5.6.180.0200.06021.05
5.6.170.0130.05721.20
5.6.160.0270.06021.08
5.6.150.0170.05321.06
5.6.140.0200.05721.02
5.6.130.0130.07721.11
5.6.120.0300.06321.11
5.6.110.0130.08021.08
5.6.100.0130.07721.11
5.6.90.0230.05321.06
5.6.80.0270.04720.41
5.6.70.0170.07720.46
5.6.60.0100.07720.46
5.6.50.0100.05720.41
5.6.40.0100.05720.42
5.6.30.0130.05320.44
5.6.20.0200.06720.50
5.6.10.0130.06020.41
5.6.00.0100.06320.39

preferences:
64.52 ms | 403 KiB | 5 Q