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.0170.00416.75
8.3.50.0120.01022.96
8.3.40.0120.00318.42
8.3.30.0080.00618.80
8.3.20.0080.00020.34
8.3.10.0040.00423.69
8.3.00.0060.00319.38
8.2.180.0150.00016.38
8.2.170.0070.00722.96
8.2.160.0080.00820.57
8.2.150.0030.00524.18
8.2.140.0030.00624.66
8.2.130.0080.00026.16
8.2.120.0050.00321.10
8.2.110.0070.00322.12
8.2.100.0090.00317.97
8.2.90.0050.00317.94
8.2.80.0030.00619.46
8.2.70.0040.00418.04
8.2.60.0000.00817.93
8.2.50.0000.00818.10
8.2.40.0000.00820.45
8.2.30.0040.00418.13
8.2.20.0080.00017.64
8.2.10.0050.00318.26
8.2.00.0040.00417.76
8.1.280.0070.01125.92
8.1.270.0090.00022.20
8.1.260.0070.00026.35
8.1.250.0000.00828.09
8.1.240.0080.00322.16
8.1.230.0070.00420.93
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0040.00417.23
8.1.190.0040.00417.35
8.1.180.0090.00018.10
8.1.170.0000.00818.54
8.1.160.0070.00022.05
8.1.150.0000.00718.96
8.1.140.0030.00717.52
8.1.130.0040.00417.80
8.1.120.0040.00417.45
8.1.110.0070.00017.47
8.1.100.0000.00717.52
8.1.90.0000.00717.36
8.1.80.0040.00417.53
8.1.70.0050.00217.49
8.1.60.0000.01017.63
8.1.50.0000.00817.59
8.1.40.0040.00417.51
8.1.30.0060.00317.59
8.1.20.0040.00417.71
8.1.10.0060.00317.42
8.1.00.0030.00617.42
8.0.300.0040.00419.95
8.0.290.0040.00416.63
8.0.280.0020.00518.52
8.0.270.0000.00717.27
8.0.260.0000.00817.33
8.0.250.0000.00716.96
8.0.240.0040.00417.03
8.0.230.0000.00716.94
8.0.220.0030.00316.80
8.0.210.0030.00316.88
8.0.200.0040.00416.98
8.0.190.0000.00816.90
8.0.180.0040.00416.87
8.0.170.0000.00816.79
8.0.160.0030.00516.88
8.0.150.0030.00516.73
8.0.140.0000.00816.80
8.0.130.0060.00013.38
8.0.120.0030.00516.85
8.0.110.0040.00416.79
8.0.100.0050.00316.75
8.0.90.0040.00416.95
8.0.80.0040.01216.93
8.0.70.0050.00216.91
8.0.60.0040.00416.85
8.0.50.0080.00016.72
8.0.30.0110.01117.15
8.0.20.0100.01117.40
8.0.10.0000.00816.86
8.0.00.0110.00716.88
7.4.330.0050.00315.00
7.4.320.0050.00216.61
7.4.300.0030.00316.62
7.4.290.0000.00816.63
7.4.280.0040.00416.50
7.4.270.0070.00016.57
7.4.260.0030.00516.64
7.4.250.0000.00816.55
7.4.240.0030.00516.50
7.4.230.0030.00316.52
7.4.220.0120.00616.66
7.4.210.0090.00616.62
7.4.200.0050.00316.50
7.4.160.0170.00016.61
7.4.150.0130.00617.40
7.4.140.0070.01117.86
7.4.130.0130.00816.58
7.4.120.0090.01416.58
7.4.110.0070.01016.63
7.4.100.0120.00816.61
7.4.90.0110.00716.47
7.4.80.0090.00919.39
7.4.70.0170.00716.51
7.4.60.0190.00016.55
7.4.50.0030.00616.39
7.4.40.0070.01316.24
7.4.30.0030.01516.48
7.4.00.0100.00715.12
7.3.330.0030.00313.08
7.3.320.0050.00013.25
7.3.310.0070.00016.19
7.3.300.0040.00416.41
7.3.290.0110.00716.29
7.3.280.0110.00616.38
7.3.270.0120.00617.40
7.3.260.0040.01616.29
7.3.250.0070.01416.35
7.3.240.0040.01616.42
7.3.230.0140.00416.51
7.3.210.0100.01416.44
7.3.200.0140.00319.39
7.3.190.0090.00916.45
7.3.180.0030.01316.66
7.3.170.0120.01216.66
7.3.160.0030.01416.48
7.3.120.0070.01014.86
7.3.110.0070.00714.91
7.3.100.0060.00315.14
7.3.90.0030.01015.01
7.3.80.0070.00315.00
7.3.70.0030.00714.80
7.3.60.0060.00914.80
7.3.50.0040.01214.70
7.3.40.0060.00914.93
7.3.30.0000.01714.92
7.3.20.0060.00916.71
7.3.10.0050.00916.45
7.3.00.0060.01016.70
7.2.330.0160.00316.60
7.2.320.0120.00816.71
7.2.310.0160.01016.43
7.2.300.0080.01216.51
7.2.290.0050.01416.47
7.2.240.0090.00615.05
7.2.230.0070.00715.13
7.2.220.0030.01615.23
7.2.210.0030.01215.10
7.2.200.0070.00715.14
7.2.190.0100.00715.13
7.2.180.0000.01415.21
7.2.170.0150.00014.92
7.2.160.0140.00315.19
7.2.150.0090.00317.01
7.2.140.0060.01117.04
7.2.130.0070.00616.88
7.2.120.0050.01116.98
7.2.110.0040.00916.80
7.2.100.0050.01216.88
7.2.90.0070.01016.83
7.2.80.0060.01116.95
7.2.70.0080.00616.89
7.2.60.0080.00516.78
7.2.50.0000.01516.82
7.2.40.0060.00516.97
7.2.30.0030.01117.00
7.2.20.0060.00616.88
7.2.10.0060.00917.02
7.2.00.0070.00717.75
7.1.330.0090.00916.05
7.1.320.0000.01615.62
7.1.310.0040.00415.95
7.1.300.0030.01515.78
7.1.290.0100.00715.78
7.1.280.0100.00715.68
7.1.270.0060.01215.63
7.1.260.0090.00616.03
7.1.250.0070.00515.57
7.1.200.0000.01415.76
7.1.100.0070.00718.29
7.1.70.0030.00617.16
7.1.60.0240.00019.46
7.1.50.0000.01217.11
7.1.00.0100.07022.51
7.0.200.0000.00916.78
7.0.140.0070.07022.13
7.0.60.0130.05719.98
7.0.50.0030.07017.93
7.0.40.0130.08320.30
7.0.30.0300.06719.99
7.0.20.0230.08720.01
7.0.10.0100.08720.22
7.0.00.0070.06020.16
5.6.280.0070.06720.93
5.6.210.0030.08720.68
5.6.200.0130.04018.16
5.6.190.0070.05320.39
5.6.180.0330.07720.35
5.6.170.0330.07720.54
5.6.160.0000.09320.61
5.6.150.0100.06018.15
5.6.140.0100.08018.11
5.6.130.0100.05018.13
5.6.120.0100.08020.95
5.6.110.0000.05021.02
5.6.100.0130.07720.99
5.6.90.0030.04020.99
5.6.80.0200.06720.41
5.5.350.0230.07720.54
5.5.340.0070.05317.91
5.5.330.0070.04720.37
5.5.320.0070.07320.20
5.5.310.0300.07320.27
5.5.300.0000.05717.91
5.5.290.0030.09018.01
5.5.280.0070.04721.00
5.5.270.0030.08320.89
5.5.260.0000.04320.88
5.5.250.0070.08020.55
5.5.240.0000.04320.17
5.4.450.0370.05319.14
5.4.440.0370.04319.12
5.4.430.0130.04719.54
5.4.420.0270.03319.55
5.4.410.0230.04319.44
5.4.400.0400.04019.16
5.4.390.0330.04319.13
5.4.380.0370.05718.70
5.4.370.0400.04718.59
5.4.360.0300.05018.61
5.4.350.0430.05018.76
5.4.340.0500.05718.61
5.4.320.0060.03712.48
5.4.310.0070.03812.48
5.4.300.0070.03612.48
5.4.290.0070.03712.48
5.4.280.0060.03612.38
5.4.270.0050.03812.38
5.4.260.0070.03712.38
5.4.250.0060.03812.38
5.4.240.0080.03512.38
5.4.230.0070.03712.38
5.4.220.0050.03612.37
5.4.210.0060.03612.38
5.4.200.0070.03712.38
5.4.190.0070.03512.37
5.4.180.0090.03412.37
5.4.170.0090.04312.38
5.4.160.0030.03912.38
5.4.150.0060.03812.38
5.4.140.0050.03912.06
5.4.130.0050.03812.04
5.4.120.0070.03612.00
5.4.110.0070.03412.00
5.4.100.0090.03212.00
5.4.90.0100.03312.00
5.4.80.0070.03712.00
5.4.70.0070.03411.99
5.4.60.0100.03111.99
5.4.50.0030.03911.99
5.4.40.0060.03511.98
5.4.30.0070.03611.98
5.4.20.0050.03711.98
5.4.10.0060.03511.98
5.4.00.0080.03411.48
5.3.290.0100.03612.80
5.3.280.0070.03712.71
5.3.270.0050.04112.72
5.3.260.0070.03812.72
5.3.250.0070.03612.72
5.3.240.0090.03612.72
5.3.230.0060.03812.71
5.3.220.0070.03712.68
5.3.210.0080.03712.68
5.3.200.0090.03312.68
5.3.190.0080.03612.67
5.3.180.0070.03712.67
5.3.170.0080.03512.66
5.3.160.0070.03912.67
5.3.150.0080.04012.67
5.3.140.0100.03312.66
5.3.130.0070.03912.66
5.3.120.0090.03712.66
5.3.110.0090.04012.66
5.3.100.0040.04312.13
5.3.90.0060.03612.09
5.3.80.0050.03912.09
5.3.70.0050.03712.09
5.3.60.0070.03612.07
5.3.50.0060.03612.02
5.3.40.0070.03512.02
5.3.30.0100.04011.98
5.3.20.0040.04311.76
5.3.10.0050.04111.73
5.3.00.0060.04111.71
5.2.170.0090.0279.22
5.2.160.0040.0309.22
5.2.150.0060.0309.22
5.2.140.0080.0279.22
5.2.130.0050.0289.18
5.2.120.0050.0319.18
5.2.110.0060.0289.18
5.2.100.0060.0289.18
5.2.90.0050.0299.18
5.2.80.0080.0279.17
5.2.70.0050.0359.18
5.2.60.0050.0429.13
5.2.50.0040.0329.09
5.2.40.0050.0289.07
5.2.30.0080.0279.05
5.2.20.0050.0289.04
5.2.10.0050.0288.96
5.2.00.0060.0408.82
5.1.60.0050.0248.11
5.1.50.0030.0268.11
5.1.40.0050.0238.09
5.1.30.0050.0288.43
5.1.20.0030.0288.46
5.1.10.0060.0248.18
5.1.00.0060.0248.18
5.0.50.0050.0196.66
5.0.40.0050.0186.52
5.0.30.0030.0326.34
5.0.20.0020.0216.30
5.0.10.0030.0216.28
5.0.00.0040.0316.27
4.4.90.0030.0174.78
4.4.80.0020.0174.75
4.4.70.0080.0174.75
4.4.60.0020.0164.76
4.4.50.0000.0184.77
4.4.40.0030.0254.71
4.4.30.0020.0174.76
4.4.20.0040.0154.85
4.4.10.0020.0174.85
4.4.00.0030.0254.76
4.3.110.0040.0174.67
4.3.100.0040.0184.66
4.3.90.0050.0184.64
4.3.80.0040.0254.58
4.3.70.0030.0154.63
4.3.60.0060.0124.63
4.3.50.0040.0154.63
4.3.40.0040.0244.54
4.3.30.0020.0163.33
4.3.20.0020.0163.30
4.3.10.0040.0143.25
4.3.00.0030.01715.68

preferences:
52.91 ms | 401 KiB | 5 Q