3v4l.org

run code in 300+ PHP versions simultaneously
<?php $datas = [ [ 'article_id' => 1, 'article_title' => ' Article 1', 'article_content' => 'This is some dummy text for the first article.', ], [ 'article_id' => 2, 'article_title' => 'Article 2', 'article_content' => 'This is the content for article #2', ] ]; $linkID = 2; $articles = array_column($datas, null, 'article_id'); if (isset($articles[$linkID])) { list('article_title'=> $title, 'article_content' => $content) = $articles[$linkID]; echo $title . \PHP_EOL; echo $content . \PHP_EOL; }

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.00.0100.01120.05
8.4.150.0020.00114.05
8.4.140.0130.00717.53
8.4.130.0130.00718.43
8.4.120.0060.00524.34
8.4.110.0100.00820.64
8.4.100.0140.00619.55
8.4.90.0050.00319.04
8.4.80.0150.00419.53
8.4.70.0120.00718.02
8.4.60.0130.00418.74
8.4.50.0130.00818.72
8.4.40.0130.00619.52
8.4.30.0060.01318.85
8.4.20.0130.00720.19
8.4.10.0090.00017.86
8.3.280.0090.01218.38
8.3.270.0120.00916.72
8.3.260.0070.00516.59
8.3.250.0130.00718.81
8.3.240.0120.00817.20
8.3.230.0110.00716.57
8.3.220.0130.00517.02
8.3.210.0050.00418.41
8.3.200.0040.00516.65
8.3.190.0110.00817.17
8.3.180.0140.00616.63
8.3.170.0120.00618.90
8.3.160.0060.00320.17
8.3.150.0090.00916.41
8.3.140.0060.00316.50
8.3.130.0100.00018.47
8.3.120.0060.00920.59
8.3.110.0080.00018.18
8.3.100.0100.00016.40
8.3.90.0140.00726.77
8.3.80.0030.00616.62
8.3.70.0040.01116.63
8.3.60.0070.01018.41
8.3.50.0080.00918.07
8.3.40.0080.01218.49
8.3.30.0070.00718.68
8.3.20.0040.00420.92
8.3.10.0080.00023.52
8.3.00.0050.00223.71
8.2.290.0070.00420.23
8.2.280.0070.00520.21
8.2.270.0030.00519.15
8.2.260.0080.00016.49
8.2.250.0060.00316.59
8.2.240.0030.00617.16
8.2.230.0090.00020.94
8.2.220.0030.00524.06
8.2.210.0000.00726.77
8.2.200.0090.00016.75
8.2.190.0030.01716.63
8.2.180.0140.00725.92
8.2.170.0070.01418.96
8.2.160.0070.00722.96
8.2.150.0060.00325.66
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0060.00319.33
8.2.110.0100.00019.38
8.2.100.0080.00417.72
8.2.90.0080.00017.84
8.2.80.0080.00317.97
8.2.70.0040.00418.03
8.2.60.0060.00618.03
8.2.50.0050.00318.10
8.2.40.0000.00819.47
8.2.30.0000.00719.18
8.2.20.0000.00818.13
8.2.10.0000.00719.29
8.2.00.0000.00819.29
8.1.330.0090.00721.73
8.1.320.0100.00915.95
8.1.310.0070.00018.50
8.1.300.0080.00318.30
8.1.290.0060.00330.84
8.1.280.0120.00425.92
8.1.270.0050.00318.95
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00523.92
8.1.230.0050.00520.90
8.1.220.0000.00817.74
8.1.210.0040.00418.84
8.1.200.0000.00817.35
8.1.190.0040.00417.36
8.1.180.0000.00818.10
8.1.170.0030.00618.50
8.1.160.0040.00418.82
8.1.150.0080.00418.89
8.1.140.0030.00322.11
8.1.130.0040.00820.07
8.1.120.0000.00717.42
8.1.110.0000.00717.28
8.1.100.0050.00217.41
8.1.90.0040.00417.39
8.1.80.0050.00217.31
8.1.70.0040.00417.33
8.1.60.0000.00817.57
8.1.50.0080.00017.50
8.1.40.0000.00917.52
8.1.30.0040.00417.66
8.1.20.0000.01017.53
8.1.10.0000.00717.56
8.1.00.0040.00417.53
8.0.300.0060.00319.95
8.0.290.0000.00816.75
8.0.280.0030.00318.43
8.0.270.0040.00416.70
8.0.260.0030.00318.36
8.0.250.0030.00316.95
8.0.240.0030.00317.02
8.0.230.0070.00016.89
8.0.220.0000.00716.87
8.0.210.0000.00816.91
8.0.200.0070.00016.84
8.0.190.0080.00016.94
8.0.180.0040.00416.85
8.0.170.0030.00516.79
8.0.160.0000.00716.90
8.0.150.0040.00416.85
8.0.140.0050.00316.77
8.0.130.0030.00313.32
8.0.120.0000.00816.87
8.0.110.0040.00416.88
8.0.100.0040.00416.89
8.0.90.0000.00716.86
8.0.80.0180.00616.89
8.0.70.0050.00216.89
8.0.60.0040.00416.87
8.0.50.0050.00216.90
8.0.30.0140.00117.12
8.0.20.0140.00617.40
8.0.10.0040.00416.82
8.0.00.0110.00716.52
7.4.330.0050.00015.55
7.4.320.0000.00716.44
7.4.300.0030.00316.45
7.4.290.0050.00216.51
7.4.280.0060.00316.48
7.4.270.0000.00716.48
7.4.260.0000.00716.43
7.4.250.0040.00416.52
7.4.240.0000.00716.55
7.4.230.0070.00016.52
7.4.220.0040.00416.57
7.4.210.0080.01016.53
7.4.200.0000.00816.55
7.4.160.0080.00816.47
7.4.140.0080.01017.86
7.4.130.0110.00816.55
7.4.120.0130.00616.34
7.4.110.0060.01216.40
7.4.100.0140.00916.41
7.4.90.0100.00716.68
7.4.80.0140.00319.39
7.4.70.0060.01216.62
7.4.60.0150.00616.66
7.4.50.0040.01116.32
7.4.40.0060.01016.46
7.4.00.0030.01315.20
7.3.330.0000.00513.26
7.3.320.0050.00013.32
7.3.310.0030.00316.20
7.3.300.0000.00716.33
7.3.290.0040.00416.38
7.3.280.0080.00916.37
7.3.260.0120.00816.45
7.3.240.0090.01116.40
7.3.230.0070.01416.49
7.3.210.0140.00316.46
7.3.200.0060.00916.47
7.3.190.0060.01116.64
7.3.180.0030.01316.36
7.3.170.0140.00716.28
7.3.160.0110.00416.50
7.3.120.0080.00315.04
7.3.110.0070.01014.88
7.3.100.0000.01414.95
7.3.90.0090.00614.71
7.3.80.0060.00614.80
7.3.70.0110.00714.70
7.3.60.0060.00614.54
7.3.50.0070.01014.74
7.3.40.0070.00414.54
7.3.30.0000.00814.78
7.3.20.0090.00616.65
7.3.10.0040.00816.69
7.3.00.0480.00815.42
7.2.330.0090.00816.52
7.2.320.0200.01316.82
7.2.310.0110.00716.47
7.2.300.0030.01316.67
7.2.290.0090.00916.43
7.2.250.0070.01014.66
7.2.240.0040.01415.15
7.2.230.0060.01315.28
7.2.220.0090.00614.90
7.2.210.0030.01314.98
7.2.200.0060.00315.17
7.2.190.0100.00714.95
7.2.180.0070.00715.20
7.2.170.0000.01315.14
7.2.160.0090.00315.15
7.2.150.0040.00717.13
7.2.140.0080.00316.68
7.2.130.0240.00916.17
7.2.120.0130.00815.96
7.2.110.0240.00515.90
7.2.100.0120.00816.08
7.2.90.0180.00316.18
7.2.80.0180.01015.93
7.2.70.0200.00316.11
7.2.60.0170.00815.79
7.2.50.0220.00516.08
7.2.40.0310.00515.94
7.2.30.0170.01215.90
7.2.20.0180.00715.87
7.2.10.0230.00615.98
7.2.00.0200.00815.77
7.1.330.0000.01415.58
7.1.320.0000.01215.94
7.1.310.0090.00615.88
7.1.300.0130.00316.02
7.1.290.0060.00615.68
7.1.280.0070.00715.84
7.1.270.0030.01315.86
7.1.260.0100.00315.99
7.1.250.0160.00714.96
7.0.330.0290.00313.19
5.6.380.0120.00314.02

preferences:
163.45 ms | 403 KiB | 5 Q