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.0110.01116.75
8.3.50.0130.00622.99
8.3.40.0120.00318.79
8.3.30.0070.00719.05
8.3.20.0040.00420.13
8.3.10.0060.00323.66
8.3.00.0000.00819.38
8.2.180.0140.00718.29
8.2.170.0100.01022.96
8.2.160.0070.00720.35
8.2.150.0050.00324.18
8.2.140.0090.00024.66
8.2.130.0000.00826.16
8.2.120.0000.00721.00
8.2.110.0080.00020.54
8.2.100.0040.00817.87
8.2.90.0050.00319.21
8.2.80.0050.00317.97
8.2.70.0030.00617.60
8.2.60.0000.00817.93
8.2.50.0040.00418.07
8.2.40.0030.00518.34
8.2.30.0000.00718.06
8.2.20.0040.00417.82
8.2.10.0040.00418.12
8.2.00.0000.00717.71
8.1.280.0130.01025.92
8.1.270.0080.00021.77
8.1.260.0050.00226.35
8.1.250.0040.00428.09
8.1.240.0030.00622.06
8.1.230.0040.00719.15
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0060.00317.13
8.1.190.0000.00917.35
8.1.180.0000.00818.10
8.1.170.0080.00018.63
8.1.160.0030.00321.94
8.1.150.0000.00718.89
8.1.140.0030.00717.46
8.1.130.0050.00317.71
8.1.120.0000.00717.56
8.1.110.0040.00417.43
8.1.100.0070.00017.46
8.1.90.0040.00417.37
8.1.80.0020.00517.39
8.1.70.0080.00017.36
8.1.60.0040.00417.60
8.1.50.0050.00317.50
8.1.40.0000.00717.40
8.1.30.0000.00817.58
8.1.20.0000.00717.54
8.1.10.0050.00217.49
8.1.00.0040.00417.35
8.0.300.0000.00718.77
8.0.290.0000.00716.75
8.0.280.0040.00418.52
8.0.270.0000.00817.28
8.0.260.0030.00317.29
8.0.250.0000.00716.98
8.0.240.0040.00416.84
8.0.230.0000.00717.00
8.0.220.0000.00616.86
8.0.210.0000.00716.79
8.0.200.0030.00316.94
8.0.190.0030.00417.00
8.0.180.0040.00416.86
8.0.170.0040.00416.83
8.0.160.0000.00716.89
8.0.150.0030.00416.80
8.0.140.0000.00716.80
8.0.130.0000.00613.31
8.0.120.0070.00016.86
8.0.110.0060.00316.77
8.0.100.0040.00416.80
8.0.90.0070.00016.73
8.0.80.0120.00316.91
8.0.70.0000.00716.88
8.0.60.0080.00016.74
8.0.50.0040.00416.89
8.0.30.0100.01017.09
8.0.20.0190.00317.40
8.0.10.0040.00417.04
8.0.00.0080.01116.93
7.4.330.0030.00515.00
7.4.320.0000.00616.52
7.4.300.0040.00416.42
7.4.290.0030.00316.54
7.4.280.0000.00716.52
7.4.270.0070.00016.38
7.4.260.0040.00416.49
7.4.250.0050.00316.57
7.4.240.0050.00316.65
7.4.230.0040.00416.59
7.4.220.0100.00716.46
7.4.210.0030.01716.46
7.4.200.0030.00316.42
7.4.160.0070.01216.64
7.4.150.0100.01017.40
7.4.140.0070.01017.86
7.4.130.0090.01116.57
7.4.120.0090.00716.54
7.4.110.0130.00316.54
7.4.100.0170.00316.58
7.4.90.0040.01416.61
7.4.80.0070.01019.39
7.4.70.0090.01016.55
7.4.60.0060.01516.44
7.4.50.0030.00616.48
7.4.40.0080.00816.50
7.4.30.0000.01516.55
7.4.00.0060.01014.95
7.3.330.0000.00613.18
7.3.320.0000.00513.21
7.3.310.0030.00316.19
7.3.300.0030.00316.34
7.3.290.0080.00816.36
7.3.280.0090.00716.34
7.3.270.0030.01217.40
7.3.260.0110.00716.64
7.3.250.0080.01116.55
7.3.240.0100.00616.56
7.3.230.0000.01616.39
7.3.210.0060.01016.63
7.3.200.0100.00719.39
7.3.190.0100.00616.39
7.3.180.0070.00716.43
7.3.170.0060.00916.29
7.3.160.0060.00916.32
7.3.120.0040.01114.89
7.3.110.0000.01114.82
7.3.100.0090.00614.92
7.3.90.0030.01015.02
7.3.80.0030.00914.94
7.3.70.0030.01514.95
7.3.60.0060.00914.61
7.3.50.0070.00314.78
7.3.40.0080.00814.73
7.3.30.0060.00914.76
7.3.20.0130.00016.40
7.3.10.0080.00716.65
7.3.00.0050.00916.68
7.2.330.0060.01216.80
7.2.320.0100.00716.74
7.2.310.0080.01116.68
7.2.300.0090.00616.63
7.2.290.0100.00716.55
7.2.250.0090.00915.02
7.2.240.0090.00915.14
7.2.230.0070.00715.37
7.2.220.0030.01314.98
7.2.210.0080.00315.03
7.2.200.0060.00915.11
7.2.190.0110.00314.88
7.2.180.0100.00314.75
7.2.170.0060.00914.90
7.2.130.0000.01116.68
7.2.120.0060.00716.65
7.2.110.0030.00917.04
7.2.100.0070.01016.71
7.2.90.0000.01416.98
7.2.80.0030.00916.95
7.2.70.0060.00916.65
7.2.60.0050.01116.83
7.2.50.0060.00616.95
7.2.40.0060.00616.78
7.2.30.0060.00617.02
7.2.20.0030.00917.14
7.2.10.0080.00817.12
7.2.00.0100.00218.27
7.1.330.0040.01115.56
7.1.320.0060.00315.55
7.1.310.0040.01115.68
7.1.300.0100.00315.97
7.1.290.0000.01615.69
7.1.280.0060.00615.51
7.1.270.0000.01115.77
7.1.260.0040.00415.82
7.1.250.0040.00815.93
7.1.200.0070.00715.57
7.1.100.0000.01118.15
7.1.70.0000.01117.32
7.1.60.0070.01719.46
7.1.50.0070.01016.70
7.1.00.0030.07322.36
7.0.200.0080.00816.68
7.0.140.0000.07722.21
7.0.110.0100.03719.93
7.0.100.0230.04019.98
7.0.90.0300.04719.93
7.0.80.0300.03319.97
7.0.70.0300.03319.95
7.0.60.0170.04719.91
7.0.50.0070.03319.93
7.0.40.0030.03719.66
7.0.30.0130.03019.85
7.0.20.0000.04319.70
7.0.10.0100.03319.68
7.0.00.0000.04019.84
5.6.280.0000.07721.06
5.6.260.0130.06020.71
5.6.250.0100.05020.70
5.6.240.0070.04020.58
5.6.230.0030.03720.66
5.6.220.0030.04020.63
5.6.210.0030.03320.64
5.6.200.0100.04020.65
5.6.190.0030.03320.71
5.6.180.0000.04020.59
5.6.170.0030.03320.58
5.6.160.0000.05020.59
5.6.150.0070.03720.57
5.6.140.0000.04320.58
5.6.130.0170.02020.64
5.6.120.0000.04320.87
5.6.110.0030.04020.63
5.6.100.0030.03720.59
5.6.90.0030.04020.85
5.6.80.0000.03720.08
5.6.70.0030.03019.95
5.6.60.0070.03020.04
5.6.50.0030.03719.96
5.6.40.0070.03020.08
5.6.30.0030.04319.93
5.6.20.0000.04019.84
5.6.10.0000.04019.98
5.6.00.0070.03319.99
5.5.380.0000.04317.66
5.5.370.0000.03717.65
5.5.360.0000.03717.65
5.5.350.0030.03317.49
5.5.340.0070.03318.25
5.5.330.0100.03317.86
5.5.320.0000.04318.04
5.5.310.0030.03317.82
5.5.300.0030.04717.86
5.5.290.0030.03317.78
5.5.280.0070.03018.01
5.5.270.0070.03017.84
5.5.260.0030.03317.85
5.5.250.0000.04317.58
5.5.240.0100.02717.48
5.5.230.0030.03317.42
5.5.220.0000.03717.47
5.5.210.0030.03317.24
5.5.200.0000.04017.45
5.5.190.0070.03317.48
5.5.180.0000.03317.34
5.5.160.0000.03717.36
5.5.150.0030.03017.46
5.5.140.0070.03017.61
5.5.130.0030.03317.21
5.5.120.0070.04317.21
5.5.110.0070.05717.47
5.5.100.0000.07717.36
5.5.90.0030.04717.11
5.5.80.0030.03717.28
5.5.70.0070.03317.36
5.5.60.0030.03717.41
5.5.50.0070.03717.01
5.5.40.0070.03717.40
5.5.30.0070.03717.10
5.5.20.0030.03017.33
5.5.10.0030.06017.24
5.5.00.0070.03017.48
5.4.450.0070.03019.33
5.4.440.0030.03319.33
5.4.430.0000.04019.57
5.4.420.0030.03319.49
5.4.410.0030.03319.20
5.4.400.0030.03019.17
5.4.390.0000.04019.05
5.4.380.0070.03319.00
5.4.370.0030.03019.01
5.4.360.0070.03019.27
5.4.350.0000.03719.00
5.4.340.0030.03019.00
5.4.320.0030.03319.00
5.4.310.0030.03019.11
5.4.300.0030.03019.10
5.4.290.0000.03319.11
5.4.280.0030.03019.11
5.4.270.0100.06719.00
5.4.260.0070.07319.09
5.4.250.0030.04319.09
5.4.240.0070.04018.94
5.4.230.0030.03718.95
5.4.220.0100.03319.26
5.4.210.0100.03718.98
5.4.200.0030.03018.99
5.4.190.0030.03719.02
5.4.180.0000.03318.97
5.4.170.0000.03318.94
5.4.160.0030.03318.95
5.4.150.0000.04019.00
5.4.140.0030.03716.47
5.4.130.0000.04016.21
5.4.120.0070.04016.47
5.4.110.0070.04316.25
5.4.100.0070.03316.16
5.4.90.0070.05016.48
5.4.80.0100.03016.41
5.4.70.0070.04016.52
5.4.60.0030.04316.38
5.4.50.0070.03716.23
5.4.40.0000.06716.52
5.4.30.0030.04716.46
5.4.20.0030.04716.38
5.4.10.0070.03716.36
5.4.00.0000.04315.72
5.3.290.0000.03314.76
5.3.280.0070.04014.51
5.3.270.0030.06314.71
5.3.260.0000.03314.54
5.3.250.0070.03014.47
5.3.240.0070.06314.59
5.3.230.0130.02314.58
5.3.220.0070.04014.49
5.3.210.0030.05314.50
5.3.200.0100.05314.60
5.3.190.0130.02714.70
5.3.180.0030.08014.67
5.3.170.0070.06314.49
5.3.160.0070.03314.70
5.3.150.0030.03714.49
5.3.140.0070.06714.48
5.3.130.0030.06014.53
5.3.120.0000.05014.46
5.3.110.0030.03714.42
5.3.100.0030.04014.09
5.3.90.0170.06714.05
5.3.80.0130.07013.90
5.3.70.0030.05013.99
5.3.60.0000.04014.05
5.3.50.0000.08313.87
5.3.40.0070.02714.08
5.3.30.0000.05014.00
5.3.20.0000.03713.80
5.3.10.0130.02013.56
5.3.00.0100.06013.56
5.2.170.0030.04712.14
5.2.160.0030.04712.14
5.2.150.0070.02312.14
5.2.140.0030.06012.14
5.2.130.0100.02012.14
5.2.120.0000.03312.14
5.2.110.0030.06012.14
5.2.100.0130.06012.14
5.2.90.0000.05012.14
5.2.80.0030.05712.14
5.2.70.0000.03312.14
5.2.60.0100.05312.14
5.2.50.0070.05712.14
5.2.40.0030.03312.14
5.2.30.0070.05712.14
5.2.20.0000.06312.14
5.2.10.0000.02712.14
5.2.00.0000.03712.14
5.1.60.0000.02712.14
5.1.50.0070.02312.14
5.1.40.0070.02012.14
5.1.30.0000.03012.14
5.1.20.0030.05312.14
5.1.10.0070.02712.14
5.1.00.0000.02712.14
5.0.50.0000.02312.14
5.0.40.0000.02012.14
5.0.30.0000.03012.14
5.0.20.0030.01312.14
5.0.10.0000.02012.14
5.0.00.0000.02712.14
4.4.90.0000.01712.14
4.4.80.0030.01712.14
4.4.70.0000.02312.14
4.4.60.0000.03312.14
4.4.50.0000.01712.14
4.4.40.0000.02312.14
4.4.30.0030.01012.14
4.4.20.0070.01312.14
4.4.10.0030.02312.14
4.4.00.0000.02712.14
4.3.110.0030.01312.14
4.3.100.0030.01312.14
4.3.90.0000.01712.14
4.3.80.0000.02712.14
4.3.70.0070.01712.14
4.3.60.0000.01712.14
4.3.50.0000.02312.14
4.3.40.0000.02012.14
4.3.30.0030.01712.14
4.3.20.0000.03012.14
4.3.10.0000.01712.14
4.3.00.0000.02012.14

preferences:
84.69 ms | 401 KiB | 5 Q