3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = array( 'pageData' => array( 'title' => 'Links • Intranet', ), 'linkCategories' => array( 'Unsorted' => array( array( 'linkTitle' => 'a link title', 0 => 'a link title', 'linkDescription' => 'This is an example of a link you can store. This is the external website', 1 => 'This is an example of a link you can store. This is the external website', 'linkUrl' => 'https://www.asbcdef.co.uk/', 2 => 'https://www.abcdef.co.uk/', ), array( 'linkTitle' => 'People', 0 => 'People', 'linkDescription' => 'This is another link', 1 => 'This is another link', 'linkUrl' => 'https://www.efgjk.co.uk/people/', 2 => 'https://www.efgjk.co.uk/people/', ), ), 'Cat 2' => array( array( 'linkTitle' => 'People', 0 => 'People', 'linkDescription' => 'This is another link', 1 => 'This is another link', 'linkUrl' => 'https://www.efgjk.co.uk/people/', 2 => 'https://www.efgjk.co.uk/people/', ), ) ), ); foreach ($data['linkCategories'] as $category => $links) { echo $category . PHP_EOL; foreach ($links as $link) { echo $link['linkTitle'] . PHP_EOL; } echo PHP_EOL . 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.3.60.0140.00718.40
8.3.50.0070.01016.43
8.3.40.0090.00618.59
8.3.30.0110.00318.63
8.3.20.0000.00720.85
8.3.10.0070.00021.63
8.3.00.0080.00018.67
8.2.180.0090.00616.75
8.2.170.0110.00418.91
8.2.160.0030.01222.96
8.2.150.0100.00024.18
8.2.140.0000.00824.66
8.2.130.0070.00026.16
8.2.120.0080.00020.81
8.2.110.0070.00420.89
8.2.100.0040.00817.97
8.2.90.0080.00018.03
8.2.80.0040.00418.91
8.2.70.0040.00417.75
8.2.60.0040.00417.63
8.2.50.0000.00818.05
8.2.40.0000.00918.34
8.2.30.0070.00019.46
8.2.20.0000.00718.06
8.2.10.0080.00019.26
8.2.00.0040.00419.38
8.1.280.0080.00625.92
8.1.270.0000.00820.64
8.1.260.0050.00326.35
8.1.250.0080.00028.09
8.1.240.0030.00623.96
8.1.230.0110.00022.68
8.1.220.0080.00017.78
8.1.210.0000.00918.77
8.1.200.0030.00617.38
8.1.190.0040.00417.22
8.1.180.0030.00618.10
8.1.170.0080.00017.62
8.1.160.0040.00419.04
8.1.150.0070.00018.88
8.1.140.0050.00518.78
8.1.130.0000.00717.49
8.1.120.0000.00717.36
8.1.110.0040.00417.55
8.1.100.0000.00817.38
8.1.90.0000.00717.38
8.1.80.0100.00017.40
8.1.70.0030.00317.47
8.1.60.0000.00817.50
8.1.50.0040.00417.51
8.1.40.0040.00417.45
8.1.30.0050.00217.66
8.1.20.0030.00717.59
8.1.10.0040.00417.62
8.1.00.0000.00817.46
8.0.300.0040.00419.60
8.0.290.0060.00316.75
8.0.280.0030.00318.51
8.0.270.0070.00018.03
8.0.260.0000.00716.84
8.0.250.0030.00316.84
8.0.240.0000.00717.05
8.0.230.0070.00016.88
8.0.220.0000.00716.97
8.0.210.0000.00716.94
8.0.200.0030.00316.87
8.0.190.0070.00016.87
8.0.180.0090.00016.98
8.0.170.0000.01016.93
8.0.160.0070.00316.84
8.0.150.0040.00416.80
8.0.140.0050.00216.77
8.0.130.0050.00013.39
8.0.120.0080.00016.86
8.0.110.0000.00716.81
8.0.100.0030.00616.96
8.0.90.0040.00416.87
8.0.80.0090.00916.84
8.0.70.0080.00016.92
8.0.60.0030.00616.71
8.0.50.0000.00716.82
8.0.30.0090.00916.79
8.0.20.0100.01117.10
8.0.10.0000.00716.86
8.0.00.0110.00716.66
7.4.330.0050.00016.78
7.4.320.0060.00016.39
7.4.300.0000.00616.68
7.4.290.0070.00016.55
7.4.280.0000.00816.44
7.4.270.0050.00216.63
7.4.260.0000.00513.30
7.4.250.0050.00216.41
7.4.240.0060.00316.49
7.4.230.0070.00016.53
7.4.220.0060.00216.71
7.4.210.0090.00716.67
7.4.200.0070.00016.73
7.4.130.0090.01216.48
7.4.120.0090.00916.54
7.4.110.0060.01716.71
7.4.100.0120.00616.64
7.4.90.0090.00916.41
7.4.80.0040.01419.39
7.4.70.0030.01316.51
7.4.60.0110.00716.50
7.4.50.0030.01216.30
7.4.40.0090.00616.57
7.4.20.0110.00816.22
7.4.10.0160.00016.57
7.4.00.0180.00316.38
7.3.330.0000.00716.43
7.3.320.0030.00313.34
7.3.310.0060.00016.30
7.3.300.0050.00316.20
7.3.290.0060.00816.27
7.3.260.0070.01016.71
7.3.240.0110.00916.33
7.3.230.0120.00316.40
7.3.210.0100.00716.40
7.3.200.0070.01716.56
7.3.190.0080.01316.39
7.3.180.0040.01416.41
7.3.170.0030.01316.32
7.3.160.0030.01316.52
7.3.140.0130.00616.23
7.3.130.0170.00316.30
7.3.120.0140.00716.29
7.3.110.0170.00316.02
7.3.100.0090.00916.05
7.3.90.0150.00616.26
7.3.80.0070.01416.41
7.3.70.0120.00616.04
7.3.60.0090.00616.15
7.3.50.0110.00616.17
7.3.40.0110.01116.16
7.3.30.0120.00616.29
7.3.20.0080.00816.33
7.3.10.0070.01416.22
7.3.00.0100.00716.20
7.2.330.0220.00316.48
7.2.320.0090.00916.39
7.2.310.0160.00616.73
7.2.300.0180.00616.69
7.2.290.0090.01216.48
7.2.270.0030.01316.45
7.2.260.0120.00316.57
7.2.250.0070.01116.32
7.2.240.0080.00816.17
7.2.230.0070.01416.37
7.2.220.0110.01116.22
7.2.210.0060.01116.58
7.2.200.0030.01316.57
7.2.190.0100.00616.41
7.2.180.0090.00916.64
7.2.170.0100.01316.28
7.2.160.0130.00316.63
7.2.150.0080.00816.48
7.2.140.0130.00316.33
7.2.130.0110.00716.37
7.2.120.0150.00716.52
7.2.110.0160.00016.42
7.2.100.0070.01416.61
7.2.90.0070.01416.72
7.2.80.0040.01716.55
7.2.70.0080.01616.34
7.2.60.0100.00616.59
7.2.50.0090.00916.55
7.2.40.0120.01216.38
7.2.30.0090.00916.58
7.2.20.0060.01216.25
7.2.10.0060.01216.30
7.2.00.0100.00716.55

preferences:
62.31 ms | 400 KiB | 5 Q