3v4l.org

run code in 300+ PHP versions simultaneously
<?php $links = array( 0 => array('productlink' => '/14/asic-company-reports', 'iconclass' => 'icon-picons-paper-2 icn'), 1 => array('productlink' => '/4/credit-and-bankruptcy', 'iconclass' => 'icon-picons-credit-card icn'), 2 => array('productlink' => '/1/business-intelligence', 'iconclass' => 'icon-picons-phone-book-2 icn'), 3 => array('productlink' => '/buy/42/apply-for-a-business-name#/step1', 'iconclass' => 'icon-picons-writing icn'), 4 => array('productlink' => '/19/asic-edge', 'iconclass' => 'icon-picons-documents-box icn'), 5 => array('productlink' => '/20/execucheck', 'iconclass' => 'icon-picons-user icn'), 6 => array('productlink' => '/buy/240/national-bankruptcy-extract', 'iconclass' => 'icon-picons-dollar icn'), 7 => array('productlink' => '/knowledgebase/4/landdata.html', 'iconclass' => 'icon-picons-location icn'), 8 => array('productlink' => '/17/policecheck', 'iconclass' => 'icon-picons-cv3 icn'), 9 => array('productlink' => '/18/PropertyReport', 'iconclass' => 'icon-picons-home-2 icn'), 10 => array('productlink' => '/3/personal-property', 'iconclass' => 'icon-picons-paper icn'), 11 => array('productlink' => '/15/vehicle-reports', 'iconclass' => 'icon-picons-car icn'), 12 => array('productlink' => '/domainchecker.php', 'iconclass' => 'icon-picons-laptop-web icn'), 13 => array('productlink' => '/5/web-services-centre', 'iconclass' => 'icon-picons-cloud-synce icn'), ); $words = array( 0 => array('title' => '/14/asic-company-reports', 'article' => 'icon-picons-paper-2 icn'), 1 => array('title' => '/4/credit-and-bankruptcy', 'article' => 'icon-picons-credit-card icn'), 2 => array('title' => '/1/business-intelligence', 'article' => 'icon-picons-phone-book-2 icn'), 3 => array('title' => '/buy/42/apply-for-a-business-name#/step1', 'article' => 'icon-picons-writing icn'), 4 => array('title' => '/19/asic-edge', 'article' => 'icon-picons-documents-box icn'), 5 => array('title' => '/20/execucheck', 'article' => 'icon-picons-user icn'), 6 => array('title' => '/buy/240/national-bankruptcy-extract', 'article' => 'icon-picons-dollar icn'), 7 => array('title' => '/knowledgebase/4/landdata.html', 'article' => 'icon-picons-location icn'), 8 => array('title' => '/17/policecheck', 'article' => 'icon-picons-cv3 icn'), 9 => array('title' => '/18/PropertyReport', 'article' => 'icon-picons-home-2 icn'), 10 => array('title' => '/3/personal-property', 'article' => 'icon-picons-paper icn'), 11 => array('title' => '/15/vehicle-reports', 'article' => 'icon-picons-car icn'), 12 => array('title' => '/domainchecker.php', 'article' => 'icon-picons-laptop-web icn'), 13 => array('title' => '/5/web-services-centre', 'article' => 'icon-picons-cloud-synce icn'), ); $count =0; $cart= array(); foreach ($words as $word) { $cart[$count] = array('title' => $word['title'], 'article' => $word['article'], 'link' => $links[$count]['productlink'] ); $count++; } //echo $links[0]['productlink']; //var_dump($words); // after //var_dump($links); // after var_dump($cart); // after ?>

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.0070.01116.63
8.3.50.0230.00923.00
8.3.40.0160.00718.81
8.3.30.0070.00719.00
8.3.20.0050.00320.34
8.3.10.0090.00023.70
8.3.00.0040.00419.38
8.2.180.0060.01218.29
8.2.170.0110.01122.96
8.2.160.0090.00620.52
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0080.00020.82
8.2.110.0070.00321.00
8.2.100.0060.00617.84
8.2.90.0090.00018.34
8.2.80.0040.00418.28
8.2.70.0090.00017.63
8.2.60.0000.00817.50
8.2.50.0040.00417.63
8.2.40.0030.00619.77
8.2.30.0080.00018.05
8.2.20.0040.00417.82
8.2.10.0080.00018.13
8.2.00.0000.00817.80
8.1.280.0160.00625.92
8.1.270.0040.00421.77
8.1.260.0080.00026.35
8.1.250.0050.00328.09
8.1.240.0090.00922.56
8.1.230.0040.00822.75
8.1.220.0050.00317.74
8.1.210.0050.00318.77
8.1.200.0000.00917.48
8.1.190.0000.00917.35
8.1.180.0080.00018.10
8.1.170.0080.00018.68
8.1.160.0050.00221.90
8.1.150.0000.00718.90
8.1.140.0050.00517.47
8.1.130.0000.00717.83
8.1.120.0000.00717.54
8.1.110.0050.00317.48
8.1.100.0040.00417.47
8.1.90.0040.00417.38
8.1.80.0040.00417.36
8.1.70.0040.00417.39
8.1.60.0090.00017.57
8.1.50.0040.00417.52
8.1.40.0030.00517.54
8.1.30.0090.00017.63
8.1.20.0030.00717.69
8.1.10.0050.00317.38
8.1.00.0030.00517.47
8.0.300.0040.00420.02
8.0.290.0040.00416.75
8.0.280.0050.00318.46
8.0.270.0030.00317.19
8.0.260.0040.00417.29
8.0.250.0000.00716.98
8.0.240.0040.00416.94
8.0.230.0070.00016.81
8.0.220.0000.00716.91
8.0.210.0000.00816.94
8.0.200.0000.00816.98
8.0.190.0080.00016.98
8.0.180.0000.00716.93
8.0.170.0080.00016.99
8.0.160.0000.00716.96
8.0.150.0080.00016.79
8.0.140.0070.00016.68
8.0.130.0030.00313.32
8.0.120.0080.00016.89
8.0.110.0030.00516.89
8.0.100.0020.00516.94
8.0.90.0040.00416.94
8.0.80.0120.00416.87
8.0.70.0000.00716.73
8.0.60.0000.00716.80
8.0.50.0000.00816.96
8.0.30.0100.01216.97
8.0.20.0100.01017.40
8.0.10.0080.00016.85
8.0.00.0060.01216.82
7.4.330.0080.00015.00
7.4.320.0030.00316.65
7.4.300.0000.00716.61
7.4.290.0040.00416.47
7.4.280.0030.00616.45
7.4.270.0040.00316.68
7.4.260.0030.00316.49
7.4.250.0000.00816.50
7.4.240.0000.00816.52
7.4.230.0070.00016.64
7.4.220.0090.00916.50
7.4.210.0070.01416.71
7.4.200.0000.00716.62
7.4.160.0120.00616.45
7.4.150.0130.00717.40
7.4.140.0150.00617.86
7.4.130.0090.01016.55
7.4.120.0100.01016.56
7.4.110.0150.00416.68
7.4.100.0030.01616.31
7.4.90.0160.00316.62
7.4.80.0040.01519.39
7.4.70.0100.01416.45
7.4.60.0150.00616.42
7.4.50.0050.00016.50
7.4.40.0060.01316.58
7.4.30.0100.00716.66
7.4.00.0050.01114.80
7.3.330.0030.00313.18
7.3.320.0030.00313.06
7.3.310.0000.00716.18
7.3.300.0000.00716.22
7.3.290.0070.00716.29
7.3.280.0090.00916.34
7.3.270.0130.00917.40
7.3.260.0090.01216.59
7.3.250.0110.01016.44
7.3.240.0090.00916.30
7.3.230.0070.01116.44
7.3.210.0140.00616.37
7.3.200.0090.00919.39
7.3.190.0140.00916.44
7.3.180.0030.01316.41
7.3.170.0130.00316.34
7.3.160.0030.01516.52
7.3.120.0100.00814.85
7.3.110.0060.01114.76
7.3.100.0100.00714.79
7.3.90.0070.01214.90
7.3.80.0060.00414.66
7.3.70.0070.00714.86
7.3.60.0030.00914.64
7.3.50.0030.01214.84
7.3.40.0030.01214.66
7.3.30.0090.00214.61
7.3.20.0100.00416.72
7.3.10.0050.00916.76
7.3.00.0070.00916.61
7.2.330.0160.00316.71
7.2.320.0040.01416.67
7.2.310.0140.01216.38
7.2.300.0150.00316.49
7.2.290.0180.00416.77
7.2.250.0110.00715.11
7.2.240.0090.00715.12
7.2.230.0060.01115.30
7.2.220.0080.00315.21
7.2.210.0090.00615.09
7.2.200.0090.00914.87
7.2.190.0070.00814.95
7.2.180.0060.01115.20
7.2.170.0070.01214.92
7.2.160.0040.01115.09
7.2.150.0060.00616.67
7.2.140.0030.01417.05
7.2.130.0030.00916.92
7.2.120.0090.00616.77
7.2.110.0060.00916.98
7.2.100.0070.01016.78
7.2.90.0090.00617.00
7.2.80.0040.01116.84
7.2.70.0110.00016.74
7.2.60.0070.01116.67
7.2.50.0060.00917.10
7.2.40.0060.00917.01
7.2.30.0070.00716.95
7.2.20.0100.00716.72
7.2.10.0060.00916.62
7.2.00.0050.00618.18
7.1.330.0080.00715.74
7.1.320.0070.00715.99
7.1.310.0060.00615.92
7.1.300.0060.00815.79
7.1.290.0040.01215.83
7.1.280.0040.01115.84
7.1.270.0070.00415.73
7.1.260.0040.01015.86
7.1.250.0100.00315.55
7.1.200.0040.01115.79
7.1.100.0040.00718.18
7.1.70.0040.00417.19
7.1.60.0040.01319.46
7.1.50.0140.00716.99
7.1.00.0030.07722.34
7.0.200.0030.00716.86
7.0.140.0030.07322.07
7.0.60.0070.08719.86
7.0.50.0000.05717.90
7.0.40.0070.07320.20
7.0.30.0230.04020.18
7.0.20.0270.07720.21
7.0.10.0230.07720.12
7.0.00.0030.05720.16
5.6.280.0070.06721.10
5.6.210.0070.07020.49
5.6.200.0030.08318.12
5.6.190.0100.05720.56
5.6.180.0200.03720.41
5.6.170.0230.07020.49
5.6.160.0130.08020.48
5.6.150.0030.07018.21
5.6.140.0030.05018.07
5.6.130.0030.04018.18
5.6.120.0130.07721.01
5.6.110.0070.08721.13
5.6.100.0130.06721.05
5.6.90.0070.08021.12
5.6.80.0170.07020.42
5.5.350.0300.07320.48
5.5.340.0070.08317.92
5.5.330.0070.04020.36
5.5.320.0270.03720.17
5.5.310.0370.07720.41
5.5.300.0200.06718.02
5.5.290.0130.06017.98
5.5.280.0070.09020.97
5.5.270.0030.08320.89
5.5.260.0170.07720.88
5.5.250.0270.07320.57
5.5.240.0000.07720.29
5.4.450.1430.05319.13
5.4.440.0270.05019.48
5.4.430.0370.04319.56
5.4.420.0300.04319.20
5.4.410.0170.03319.11
5.4.400.0300.03018.78
5.4.390.0300.04019.18
5.4.380.0330.05318.69
5.4.370.0300.05318.75
5.4.360.0430.04718.62
5.4.350.0400.05318.66
5.4.340.0370.05718.55
5.4.320.0120.03512.49
5.4.310.0050.04012.48
5.4.300.0060.03612.49
5.4.290.0050.03812.48
5.4.280.0070.03512.38
5.4.270.0060.03612.38
5.4.260.0080.03612.38
5.4.250.0070.03712.38
5.4.240.0060.03712.38
5.4.230.0080.03612.38
5.4.220.0070.04312.38
5.4.210.0100.03212.38
5.4.200.0060.03912.38
5.4.190.0090.03312.37
5.4.180.0060.03712.37
5.4.170.0040.03812.38
5.4.160.0060.03612.38
5.4.150.0040.03812.37
5.4.140.0080.03712.05
5.4.130.0060.03512.04
5.4.120.0080.03412.00
5.4.110.0080.03312.00
5.4.100.0070.03412.00
5.4.90.0050.03812.00
5.4.80.0060.03712.00
5.4.70.0070.03511.99
5.4.60.0080.03312.00
5.4.50.0090.03211.99
5.4.40.0100.03111.98
5.4.30.0110.03111.98
5.4.20.0050.03711.98
5.4.10.0070.03311.98
5.4.00.0040.03811.47
5.3.290.0060.03912.80
5.3.280.0060.03812.71
5.3.270.0070.03912.72
5.3.260.0050.04112.72
5.3.250.0080.03612.72
5.3.240.0080.03712.72
5.3.230.0060.04712.71
5.3.220.0060.03912.68
5.3.210.0090.04012.68
5.3.200.0060.03812.68
5.3.190.0100.03312.68
5.3.180.0120.03912.67
5.3.170.0090.03712.67
5.3.160.0090.03712.67
5.3.150.0100.03612.67
5.3.140.0060.04512.66
5.3.130.0090.03712.66
5.3.120.0070.03812.65
5.3.110.0090.03612.66
5.3.100.0070.03612.11
5.3.90.0040.03812.09
5.3.80.0080.03512.09
5.3.70.0070.03612.09
5.3.60.0060.03712.07
5.3.50.0070.03612.02
5.3.40.0060.03612.02
5.3.30.0050.03611.98
5.3.20.0090.03211.76
5.3.10.0070.03911.72
5.3.00.0100.03411.71
5.2.170.0080.0289.22
5.2.160.0030.0309.22
5.2.150.0060.0299.22
5.2.140.0090.0259.22
5.2.130.0080.0269.18
5.2.120.0050.0289.18
5.2.110.0030.0319.19
5.2.100.0050.0289.18
5.2.90.0050.0289.18
5.2.80.0020.0339.18
5.2.70.0070.0289.18
5.2.60.0070.0289.13
5.2.50.0070.0289.10
5.2.40.0080.0269.08
5.2.30.0060.0299.05
5.2.20.0040.0309.04
5.2.10.0040.0298.96
5.2.00.0040.0308.82
5.1.60.0050.0248.11
5.1.50.0050.0278.10
5.1.40.0080.0218.09
5.1.30.0070.0238.43
5.1.20.0020.0288.46
5.1.10.0050.0258.18
5.1.00.0030.0268.18
5.0.50.0040.0206.66
5.0.40.0030.0206.52
5.0.30.0050.0306.34
5.0.20.0040.0196.30
5.0.10.0040.0206.28
5.0.00.0040.0316.27
4.4.90.0050.0144.78
4.4.80.0050.0144.76
4.4.70.0050.0154.75
4.4.60.0030.0164.75
4.4.50.0030.0164.77
4.4.40.0080.0244.71
4.4.30.0050.0174.76
4.4.20.0040.0164.84
4.4.10.0050.0144.84
4.4.00.0040.0244.76
4.3.110.0020.0174.67
4.3.100.0030.0154.66
4.3.90.0040.0144.63
4.3.80.0030.0254.58
4.3.70.0050.0134.63
4.3.60.0020.0164.63
4.3.50.0050.0144.63
4.3.40.0000.0274.54
4.3.30.0050.0143.33
4.3.20.0030.0163.30
4.3.10.0030.0153.26
4.3.00.0070.01315.68

preferences:
44.55 ms | 401 KiB | 5 Q