3v4l.org

run code in 500+ PHP versions simultaneously
<?php $columns=[ 'id', 'snippet'=>[ 'publishedAt', 'channelId', 'channelTitle', 'description', 'thumbnails'=>[ 'default'=>['url','width','height'], 'medium'=>['url','width','height'], 'high'=>['url','width','height'], 'standard'=>['url','width','height'], 'maxres'=>['url','width','height'] ], 'tags', 'categoryId' ], 'status'=>[ 'uploadStatus', 'privacyStatus', 'license', 'embeddable', 'publicStatsViewable', 'madeForKids' ], 'statistics'=>[ 'viewCount', 'likeCount', 'favoriteCount', 'commentCount' ] ]; function simplify($columns, $root = '') { $output = []; foreach ($columns as $key => $value) { if (is_array($value)) { $output = array_merge($output, simplify($value, $root . $key . '-')); } else { $output[$root . $value] = 1; } } return $output; } var_export(simplify($columns));

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.70.0110.00616.73
8.5.60.0130.00616.71
8.5.50.0100.00718.42
8.5.30.0100.00817.53
8.5.20.0090.00819.65
8.5.10.0090.00920.29
8.5.00.0120.01020.20
8.4.210.0130.00819.59
8.4.180.0150.00622.10
8.4.170.0110.01320.45
8.4.160.0120.00923.88
8.4.150.0060.00616.90
8.4.140.0100.01117.64
8.4.130.0120.00918.76
8.4.120.0110.00822.35
8.4.110.0140.00722.67
8.4.100.0120.00917.70
8.4.90.0050.00420.53
8.4.80.0100.00720.69
8.4.70.0110.01118.89
8.4.60.0120.00820.36
8.4.50.0100.01020.52
8.4.40.0160.00319.59
8.4.30.0120.00620.61
8.4.20.0140.00717.91
8.4.10.0060.00322.30
8.3.300.0110.00920.79
8.3.290.0120.00920.70
8.3.280.0140.00618.48
8.3.270.0150.00416.36
8.3.260.0120.00916.66
8.3.250.0090.00918.81
8.3.240.0100.00616.55
8.3.230.0030.00416.69
8.3.220.0090.01120.84
8.3.210.0130.00516.80
8.3.200.0070.00216.55
8.3.190.0040.00419.07
8.3.180.0080.00918.77
8.3.170.0150.00017.27
8.3.160.0080.00816.42
8.3.150.0070.00716.70
8.3.140.0000.00816.54
8.3.130.0080.00016.79
8.3.120.0060.00318.95
8.3.110.0060.00318.28
8.3.100.0050.00516.57
8.3.90.0000.00726.77
8.3.80.0030.00616.50
8.3.70.0130.00318.31
8.3.60.0070.01018.18
8.3.50.0090.01220.21
8.3.40.0150.00420.29
8.3.30.0070.00718.84
8.3.20.0040.00424.18
8.3.10.0000.00824.66
8.3.00.0080.00026.16
8.2.300.0090.01222.17
8.2.290.0120.00720.59
8.2.280.0110.00820.18
8.2.270.0070.01316.59
8.2.260.0050.00317.50
8.2.250.0090.00016.77
8.2.240.0040.00416.78
8.2.230.0040.00420.94
8.2.220.0040.00424.06
8.2.210.0160.00326.77
8.2.200.0070.00318.16
8.2.190.0100.00516.61
8.2.180.0160.01025.92
8.2.170.0150.00018.89
8.2.160.0070.00722.96
8.2.150.0070.00025.66
8.2.140.0050.00224.66
8.2.130.0040.00426.16
8.2.120.0050.00220.94
8.2.110.0060.00322.13
8.2.100.0060.00617.91
8.2.90.0030.00617.75
8.2.80.0040.00418.97
8.2.70.0080.00017.50
8.2.60.0000.00917.63
8.2.50.0050.00517.98
8.2.40.0040.00418.09
8.2.30.0020.00518.24
8.2.20.0040.00419.33
8.2.10.0070.00018.19
8.2.00.0040.00419.25
8.1.340.0120.00817.63
8.1.330.0130.00522.11
8.1.320.0080.00616.31
8.1.310.0030.00616.82
8.1.300.0070.01118.20
8.1.290.0060.00330.84
8.1.280.0070.00725.92
8.1.270.0040.00424.66
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0040.00422.04
8.1.230.0100.00022.05
8.1.220.0070.00318.55
8.1.210.0000.00818.77
8.1.200.0090.00317.48
8.1.190.0040.00417.10
8.1.180.0000.00818.10
8.1.170.0040.00417.62
8.1.160.0030.00618.98
8.1.150.0050.00218.56
8.1.140.0030.00517.37
8.1.130.0030.00319.02
8.1.120.0000.00717.34
8.1.110.0080.00017.35
8.1.100.0040.00817.50
8.1.90.0150.00017.50
8.1.80.0130.00217.45
8.1.70.0130.00317.27
8.1.60.0150.00317.48
8.1.50.0000.01717.45
8.1.40.0140.00417.48
8.1.30.0140.00417.65
8.1.20.0130.00417.64
8.1.10.0110.00617.53
8.1.00.0170.00017.54
8.0.300.0040.00418.77
8.0.290.0070.00416.61
8.0.280.0070.00018.45
8.0.270.0000.00716.77
8.0.260.0000.00718.45
8.0.250.0050.00216.84
8.0.240.0070.00016.95
8.0.230.0020.00516.83
8.0.220.0150.00016.91
8.0.210.0100.00716.81
8.0.200.0100.00516.84
8.0.190.0090.00616.97
8.0.180.0000.01516.88
8.0.170.0130.00216.84
8.0.160.0140.00216.82
8.0.150.0160.00016.70
8.0.140.0150.00016.80
8.0.130.0110.00416.82
8.0.120.0130.00216.89
8.0.110.0070.00716.87
8.0.100.0070.00716.92
8.0.90.0080.00416.79
8.0.80.0090.00516.80
8.0.70.0120.00316.74
8.0.60.0060.01016.81
8.0.50.0120.00016.69
8.0.30.0050.00816.88
8.0.20.0130.00316.95
8.0.10.0100.00616.97
7.4.330.0000.00515.55
7.4.320.0040.00416.50
7.4.300.0120.00416.58
7.4.290.0150.00016.59
7.4.280.0150.00016.50
7.4.270.0140.00016.41
7.4.260.0060.00616.42
7.4.250.0030.01116.57
7.4.240.0120.00016.47
7.4.230.0100.00316.44
7.4.220.0000.01016.59
7.4.210.0130.00016.48
7.4.200.0050.00516.65
7.4.190.0070.00316.70
7.4.180.0060.00316.66
7.4.160.0080.00416.02
7.4.150.0090.00416.54
7.4.140.0060.00616.17
7.4.130.0080.00416.32
7.4.120.0110.00016.25
7.4.110.0110.00316.43
7.4.100.0000.01116.57
7.4.90.0130.00016.43
7.4.80.0080.00416.40
7.4.70.0100.00316.23
7.4.60.0140.00016.46
7.4.50.0060.00616.35
7.4.40.0120.00016.16
7.4.30.0090.00316.24
7.4.20.0060.00616.29
7.4.10.0100.00516.36
7.4.00.0110.00316.40

preferences:
50.31 ms | 1475 KiB | 5 Q