3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ 'data' => [ 0 => 2678, 1 => 2378, ], 'active' => [ 0 => 866, 1 => 111, ], ]; $fp = fopen('php://stdout', 'w'); fputcsv($fp, array_keys($array)); $array = array_map(null, ...array_values($array)); foreach ($array as $row) { fputcsv($fp, $row); }

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.10.0110.00716.54
8.5.00.0140.00819.80
8.4.150.0020.00114.05
8.4.140.0140.00817.74
8.4.130.0140.00617.48
8.4.120.0060.00620.62
8.4.110.0110.01018.69
8.4.100.0100.01118.96
8.4.90.0110.01020.50
8.4.80.0050.00318.75
8.4.70.0150.00519.06
8.4.60.0130.00818.93
8.4.50.0110.01118.70
8.4.40.0130.00717.39
8.4.30.0120.00917.52
8.4.20.0200.00018.57
8.4.10.0030.00617.78
8.3.280.0110.00918.16
8.3.270.0110.00816.49
8.3.260.0130.00516.55
8.3.250.0100.01018.82
8.3.240.0120.00818.12
8.3.230.0120.00716.29
8.3.220.0050.00318.94
8.3.210.0090.00918.34
8.3.200.0060.00316.53
8.3.190.0050.00516.85
8.3.180.0120.00619.01
8.3.170.0120.00916.74
8.3.160.0090.00917.05
8.3.150.0110.00719.03
8.3.140.0110.00718.53
8.3.130.0050.00518.61
8.3.120.0120.00818.96
8.3.110.0030.00720.94
8.3.100.0060.00324.06
8.3.90.0040.00426.77
8.3.80.0040.00816.55
8.3.70.0120.00316.63
8.3.60.0110.00718.33
8.3.50.0100.01018.02
8.3.40.0090.00918.62
8.3.30.0130.00918.37
8.3.20.0140.00018.66
8.3.10.0090.00021.61
8.3.00.0000.01422.48
8.2.290.0130.00620.24
8.2.280.0100.00918.52
8.2.270.0060.01217.05
8.2.260.0000.01816.38
8.2.250.0070.00316.66
8.2.240.0080.00818.93
8.2.230.0030.00522.58
8.2.220.0060.00337.54
8.2.210.0040.00426.77
8.2.200.0070.00318.29
8.2.190.0100.00716.58
8.2.180.0100.00725.92
8.2.170.0110.00418.83
8.2.160.0090.00922.96
8.2.150.0000.00725.66
8.2.140.0000.00824.66
8.2.130.0020.00526.16
8.2.120.0040.01119.52
8.2.110.0060.00319.38
8.2.100.0120.00017.72
8.2.90.0040.00417.74
8.2.80.0050.00317.97
8.2.70.0000.00917.93
8.2.60.0000.00818.02
8.2.50.0000.00918.10
8.2.40.0030.00621.11
8.2.30.0040.00420.60
8.2.20.0030.00618.06
8.2.10.0040.00418.13
8.2.00.0000.00719.56
8.1.330.0100.00918.17
8.1.320.0040.00417.89
8.1.310.0070.01116.21
8.1.300.0000.00918.44
8.1.290.0060.00330.84
8.1.280.0040.01225.92
8.1.270.0050.00324.66
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0090.00017.35
8.1.230.0110.00018.88
8.1.220.0050.00317.74
8.1.210.0040.00718.77
8.1.200.0060.00317.35
8.1.190.0040.00417.12
8.1.180.0000.00818.10
8.1.170.0050.00318.96
8.1.160.0030.00518.89
8.1.150.0000.00818.94
8.1.140.0050.00320.70
8.1.130.0000.00818.97
8.1.120.0040.00417.35
8.1.110.0030.00317.50
8.1.100.0070.00017.31
8.1.90.0000.01117.49
8.1.80.0040.00717.48
8.1.70.0060.00417.46
8.1.60.0090.00517.58
8.1.50.0040.00617.41
8.1.40.0070.00517.44
8.1.30.0080.00517.47
8.1.20.0090.00517.60
8.1.10.0050.00817.44
8.1.00.0060.00717.32
8.0.300.0030.00718.77
8.0.290.0060.00316.75
8.0.280.0070.00018.56
8.0.270.0000.00816.88
8.0.260.0030.00319.17
8.0.250.0030.00517.05
8.0.240.0000.00817.02
8.0.230.0060.00316.95
8.0.220.0100.00216.88
8.0.210.0070.00416.85
8.0.200.0080.00216.96
8.0.190.0070.00416.93
8.0.180.0080.00416.87
8.0.170.0050.00516.87
8.0.160.0090.00416.86
8.0.150.0050.00516.87
8.0.140.0110.00016.84
8.0.130.0060.00415.07
8.0.120.0040.00816.97
8.0.110.0060.00516.92
8.0.100.0060.00516.95
8.0.90.0070.00416.93
8.0.80.0070.00916.96
8.0.70.0090.00216.94
8.0.60.0060.00516.85
8.0.50.0060.00516.75
8.0.30.0090.00917.03
8.0.20.0090.00617.14
8.0.10.0050.00516.96
8.0.00.0090.00716.88
7.4.330.0050.00015.55
7.4.320.0060.00016.43
7.4.300.0040.00716.57
7.4.290.0040.00816.51
7.4.280.0110.00216.46
7.4.270.0040.00816.49
7.4.260.0100.00516.55
7.4.250.0020.01116.58
7.4.240.0070.00716.49
7.4.230.0060.00716.54
7.4.220.0110.00116.39
7.4.210.0090.00616.56
7.4.200.0090.00216.45
7.4.190.0100.00316.61
7.4.180.0100.00516.65
7.4.160.0080.00816.46
7.4.150.0060.00616.37
7.4.140.0120.00817.63
7.4.130.0100.00516.40
7.4.120.0100.00916.44
7.4.110.0070.00916.46
7.4.100.0100.00816.38
7.4.90.0050.00816.54
7.4.80.0070.00917.92
7.4.70.0100.00816.47
7.4.60.0080.01016.42
7.4.50.0110.00716.30
7.4.40.0090.00916.28
7.4.30.0070.00316.38
7.4.20.0040.00816.41
7.4.10.0110.00316.40
7.4.00.0040.01015.85
7.3.330.0100.00014.70
7.3.320.0110.00214.66
7.3.310.0090.00316.26
7.3.300.0070.00616.31
7.3.290.0050.00616.20
7.3.280.0130.00516.29
7.3.270.0100.00716.27
7.3.260.0110.00816.40
7.3.250.0130.00316.38
7.3.240.0160.00416.39
7.3.230.0080.00916.38
7.3.220.0040.01316.10
7.3.210.0070.01016.34
7.3.200.0120.00916.19
7.3.190.0120.00516.24
7.3.180.0140.00516.29
7.3.170.0120.00616.20
7.3.160.0120.00716.24
7.3.150.0140.00416.11
7.3.140.0170.00016.15
7.3.130.0070.01216.29
7.3.120.0140.00116.17
7.3.110.0070.00816.13
7.3.100.0060.00916.22
7.3.90.0040.01116.43
7.3.80.0120.00516.21
7.3.70.0090.00416.31
7.3.60.0100.00416.43
7.3.50.0080.00716.33
7.3.40.0080.00616.29
7.3.30.0080.00516.40
7.3.20.0090.00517.99
7.3.10.0110.00818.11
7.3.00.0170.00318.12
7.2.340.0000.01516.39
7.2.330.0120.00916.62
7.2.320.0130.00416.61
7.2.310.0120.00516.44
7.2.300.0160.01016.36
7.2.290.0130.00316.57
7.2.280.0070.00716.52
7.2.270.0110.00416.41
7.2.260.0120.00516.40
7.2.250.0080.00816.48
7.2.240.0070.00816.41
7.2.230.0120.00216.39
7.2.220.0100.00416.38
7.2.210.0140.00216.38
7.2.200.0090.00616.59
7.2.190.0100.00316.53
7.2.180.0100.00616.39
7.2.170.0080.00716.52
7.2.160.0090.00316.48
7.2.150.0080.00718.43
7.2.140.0090.00418.53
7.2.130.0100.00318.57
7.2.120.0110.00218.24
7.2.110.0060.00818.41
7.2.100.0090.00518.40
7.2.90.0100.00418.35
7.2.80.0790.00417.17
7.2.70.0680.01017.20
7.2.60.0130.00517.19
7.2.50.0260.00717.17
7.2.40.1260.00417.22
7.2.30.0880.00517.24
7.2.20.1420.00617.34
7.2.10.0790.00317.16
7.2.00.0710.00917.32
7.1.330.0060.01017.45
7.1.320.0100.00417.41
7.1.310.0100.00317.42
7.1.300.0100.00317.39
7.1.290.0080.00817.34
7.1.280.0060.00817.26
7.1.270.0110.00317.37
7.1.260.0090.00417.29
7.1.250.0130.00217.36
7.1.240.0060.00617.21
7.1.230.0110.00317.40
7.1.220.0070.00717.38
7.1.210.0080.00517.23
7.1.200.0710.00516.01
7.1.190.0080.00816.09
7.1.180.0110.00516.08
7.1.170.0890.00716.02
7.1.160.0990.00815.95
7.1.150.0740.00715.95
7.1.140.0940.00516.07
7.1.130.0690.00516.07
7.1.120.0660.00715.98
7.1.110.0620.00816.04
7.1.100.0590.00516.15
7.1.90.0100.00616.02
7.1.80.0120.00516.00
7.1.70.0150.00416.13
7.1.60.0160.00822.06
7.1.50.0150.01022.14
7.1.40.0210.00722.11
7.1.30.0140.00622.22
7.1.20.0190.00422.05
7.1.10.0130.00716.04
7.1.00.0120.00316.10
7.0.330.0080.00616.95
7.0.320.0070.00717.03
7.0.310.0050.00916.90
7.0.300.0050.00817.01
7.0.290.0070.00717.13
7.0.280.0080.00716.95
7.0.270.0110.00117.06
7.0.260.0100.00417.00
7.0.250.0100.00417.12
7.0.240.0030.01017.20
7.0.230.0080.00817.14
7.0.220.0050.00817.00
7.0.210.0060.00517.00
7.0.200.0070.00717.06
7.0.190.0090.00317.06
7.0.180.0050.00817.01
7.0.170.0050.00617.02
7.0.160.0100.00217.02
7.0.150.0100.00216.99
7.0.140.0090.00516.94
7.0.130.0070.00616.98
7.0.120.0100.00717.01
7.0.110.0090.00517.00
7.0.100.0060.00616.93
7.0.90.0070.00516.96
7.0.80.0120.00216.79
7.0.70.0090.00616.93
7.0.60.0110.00416.99
7.0.50.0080.00816.85
7.0.40.0040.01115.99
7.0.30.0070.00915.89
7.0.20.0090.00415.85
7.0.10.0080.00616.04
7.0.00.0100.00215.91
5.6.400.0090.00515.82
5.6.390.0070.00415.75
5.6.380.0040.00815.73
5.6.370.0090.00515.79
5.6.360.0070.00815.78
5.6.350.0040.00815.78
5.6.340.0080.00315.73
5.6.330.0100.00515.87
5.6.320.0050.00715.81
5.6.310.0080.00515.75
5.6.300.0080.00415.60
5.6.290.0100.00115.66
5.6.280.0060.00815.80
5.6.270.0080.00615.92
5.6.260.0070.00815.82
5.6.250.0040.00715.69
5.6.240.0080.00515.69
5.6.230.0090.00515.80
5.6.220.0050.00815.75
5.6.210.0080.00815.71
5.6.200.0120.00515.97
5.6.190.0100.00515.80
5.6.180.0090.00615.75
5.6.170.0060.00915.71
5.6.160.0040.00915.91
5.6.150.0080.00615.90
5.6.140.0120.00015.69
5.6.130.0100.00516.00
5.6.120.0090.00615.70
5.6.110.0050.01315.90
5.6.100.0080.00915.77
5.6.90.0080.00815.79
5.6.80.0050.00715.79
5.6.70.0090.00315.67
5.6.60.0080.00615.67
5.6.50.0060.00915.67
5.6.40.0110.00315.68
5.6.30.0100.00415.75
5.6.20.0130.00115.67
5.6.10.0050.00815.74
5.6.00.0120.00315.71

preferences:
40.73 ms | 403 KiB | 5 Q