3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = [ ['foo', 'bar', 'baz="bazinga!"'], ['foo', 'bar', 'baz="bazinga!"'], ['foo', 'bar', 'baz="bazinga!"'], ['foo', 'bar', 'baz="bazinga!"'], ['foo', 'bar', 'baz="bazinga!"'], ['foo', 'bar', 'baz="bazinga!"'] ]; ob_start(); $buffer = fopen('php://output', 'w'); array_walk($a, function ($row) use ($buffer) { fputcsv($buffer, $row); }); $csv = ob_get_clean(); echo $csv;

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.20.0170.00319.56
8.4.10.0090.00017.71
8.3.150.0050.00317.17
8.3.140.0090.00019.00
8.3.130.0040.00418.08
8.3.120.0040.00420.58
8.3.110.0110.00420.94
8.3.100.0070.00318.43
8.3.90.0120.00026.77
8.3.80.0090.00017.97
8.3.70.0090.00616.41
8.3.60.0070.01118.40
8.3.50.0100.01218.05
8.3.40.0100.00718.67
8.3.30.0090.00618.46
8.3.20.0080.00021.91
8.3.10.0000.00823.70
8.3.00.0150.00019.79
8.2.270.0180.00016.84
8.2.260.0060.00916.52
8.2.250.0030.00618.36
8.2.240.0060.00318.88
8.2.230.0060.01122.58
8.2.220.0030.00624.06
8.2.210.0050.00226.77
8.2.200.0050.00518.29
8.2.190.0070.00716.59
8.2.180.0140.00316.78
8.2.170.0030.01722.96
8.2.160.0150.00020.39
8.2.150.0060.00324.18
8.2.140.0080.00024.66
8.2.130.0040.00420.35
8.2.120.0000.00826.35
8.2.110.0040.00819.16
8.2.100.0030.00917.71
8.2.90.0000.00818.86
8.2.80.0040.00417.97
8.2.70.0030.00517.93
8.2.60.0040.00418.01
8.2.50.0030.00618.16
8.2.40.0030.00520.61
8.2.30.0020.00521.14
8.2.20.0050.00218.03
8.2.10.0000.00818.06
8.2.00.0000.00718.13
8.1.310.0090.00916.05
8.1.300.0070.01120.19
8.1.290.0040.00430.84
8.1.280.0060.01025.92
8.1.270.0030.00522.14
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0050.00523.97
8.1.230.0070.00417.83
8.1.220.0000.00817.74
8.1.210.0060.00318.77
8.1.200.0080.00017.38
8.1.190.0060.00317.23
8.1.180.0050.00518.10
8.1.170.0000.00818.46
8.1.160.0040.00418.82
8.1.150.0040.00421.99
8.1.140.0070.00017.76
8.1.130.0050.00518.95
8.1.120.0000.00717.48
8.1.110.0050.00317.44
8.1.100.0070.00017.39
8.1.90.0040.00417.52
8.1.80.0070.00017.51
8.1.70.0040.00417.54
8.1.60.0040.00417.47
8.1.50.0030.00517.57
8.1.40.0040.00417.49
8.1.30.0040.00417.70
8.1.20.0030.00617.67
8.1.10.0000.00817.49
8.1.00.0030.00517.43
8.0.300.0040.00418.77
8.0.290.0030.00616.75
8.0.280.0000.00718.51
8.0.270.0040.00417.26
8.0.260.0030.00316.89
8.0.250.0030.00316.96
8.0.240.0040.00417.07
8.0.230.0000.00817.04
8.0.220.0030.00616.93
8.0.210.0040.00416.95
8.0.200.0000.00716.97
8.0.190.0000.00716.97
8.0.180.0000.00917.00
8.0.170.0000.00817.02
8.0.160.0030.00516.88
8.0.150.0000.00816.89
8.0.140.0070.00016.80
8.0.130.0000.00713.35
8.0.120.0060.00316.85
8.0.110.0080.00016.85
8.0.100.0040.00417.07
8.0.90.0040.00416.84
8.0.80.0060.00916.96
8.0.70.0000.00717.02
8.0.60.0070.00016.96
8.0.50.0030.00616.94
8.0.30.0070.01317.12
8.0.20.0100.00817.40
8.0.10.0000.00717.06
8.0.00.0030.01517.00
7.4.330.0040.00415.55
7.4.320.0070.00016.52
7.4.300.0030.00316.50
7.4.290.0040.00316.65
7.4.280.0040.00416.51
7.4.270.0040.00416.36
7.4.260.0000.00716.60
7.4.250.0060.00316.54
7.4.240.0000.00716.61
7.4.230.0030.00316.70
7.4.220.0040.00416.61
7.4.210.0110.00716.61
7.4.200.0000.00716.34
7.4.160.0090.00716.56
7.4.150.0120.01417.40
7.4.140.0110.00817.86
7.4.130.0170.00716.41
7.4.120.0090.00916.55
7.4.110.0110.01216.60
7.4.100.0110.00816.41
7.4.90.0260.02316.57
7.4.80.0120.00919.39
7.4.70.0150.00716.68
7.4.60.0060.01116.58
7.4.50.0070.00716.42
7.4.40.0060.00916.57
7.4.00.0130.00314.93
7.3.330.0000.00513.37
7.3.320.0000.00613.44
7.3.310.0060.00016.43
7.3.300.0000.00616.32
7.3.290.0090.00816.40
7.3.280.0060.01016.40
7.3.270.0100.00717.40
7.3.260.0100.00816.30
7.3.240.0100.00716.48
7.3.230.0140.00516.36
7.3.210.0100.00716.32
7.3.200.0090.00616.46
7.3.190.0060.00916.50
7.3.180.0030.01216.28
7.3.170.0140.00316.48
7.3.160.0040.01216.59
7.2.330.0110.00716.69
7.2.320.0140.01016.59
7.2.310.0090.00916.64
7.2.300.0060.01016.79
7.2.290.0000.01816.76
7.2.60.0100.00716.95
7.2.20.0070.01219.64
7.2.10.0150.01219.41
7.2.00.0120.01319.77
7.1.200.0130.00415.80
7.1.140.0110.01218.63
7.1.130.0090.01618.47
7.1.120.0090.01218.75
7.1.110.0100.00918.11
7.1.100.0080.01018.00
7.1.90.0130.00917.90
7.1.80.0100.01318.18
7.1.70.0110.00916.91
7.1.60.0300.01735.06
7.1.50.0260.02434.70
7.1.40.0220.01734.28
7.1.30.0320.01734.33
7.1.20.0300.01934.33
7.1.10.0090.01616.36
7.1.00.0080.01616.43

preferences:
68.09 ms | 403 KiB | 5 Q