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'] ); $count++; } //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.63
8.3.50.0130.00722.86
8.3.40.0100.00618.59
8.3.30.0140.00018.78
8.3.20.0000.00820.14
8.3.10.0060.00323.53
8.3.00.0030.00619.38
8.2.180.0090.00918.15
8.2.170.0180.00422.96
8.2.160.0110.00420.37
8.2.150.0030.00524.18
8.2.140.0030.00624.66
8.2.130.0000.00726.16
8.2.120.0050.00321.01
8.2.110.0060.00321.05
8.2.100.0060.00617.84
8.2.90.0000.00919.17
8.2.80.0050.00317.97
8.2.70.0080.00017.63
8.2.60.0040.00417.93
8.2.50.0050.00318.10
8.2.40.0040.00418.14
8.2.30.0000.00718.21
8.2.20.0000.00817.77
8.2.10.0000.00818.20
8.2.00.0030.00617.77
8.1.280.0130.00625.92
8.1.270.0000.00822.10
8.1.260.0000.00826.35
8.1.250.0070.00428.09
8.1.240.0060.00322.81
8.1.230.0080.00417.70
8.1.220.0030.00517.76
8.1.210.0030.00518.77
8.1.200.0060.00317.36
8.1.190.0040.00417.23
8.1.180.0030.00618.10
8.1.170.0040.00418.66
8.1.160.0020.00521.97
8.1.150.0070.00018.82
8.1.140.0070.00317.39
8.1.130.0000.00717.81
8.1.120.0000.00817.45
8.1.110.0040.00417.41
8.1.100.0000.00817.34
8.1.90.0040.00417.41
8.1.80.0040.00417.37
8.1.70.0040.00417.45
8.1.60.0040.00417.61
8.1.50.0060.00317.43
8.1.40.0040.00417.40
8.1.30.0000.00817.51
8.1.20.0050.00317.58
8.1.10.0040.00417.55
8.1.00.0070.00017.43
8.0.300.0030.00618.77
8.0.290.0030.00516.63
8.0.280.0000.00718.37
8.0.270.0040.00417.26
8.0.260.0000.00617.32
8.0.250.0000.00716.97
8.0.240.0070.00016.90
8.0.230.0000.00716.99
8.0.220.0070.00016.85
8.0.210.0080.00016.89
8.0.200.0000.00616.96
8.0.190.0000.00816.86
8.0.180.0070.00016.81
8.0.170.0000.00816.99
8.0.160.0040.00416.95
8.0.150.0040.00416.81
8.0.140.0040.00416.71
8.0.130.0030.00313.31
8.0.120.0000.00816.78
8.0.110.0080.00016.87
8.0.100.0040.00416.69
8.0.90.0000.00716.95
8.0.80.0100.00716.97
8.0.70.0040.00416.76
8.0.60.0000.00816.93
8.0.50.0040.00416.79
8.0.30.0100.01117.17
8.0.20.0080.01417.40
8.0.10.0040.00416.89
8.0.00.0090.01116.55
7.4.330.0030.00315.12
7.4.320.0000.00616.57
7.4.300.0030.00316.56
7.4.290.0070.00016.51
7.4.280.0040.00416.59
7.4.270.0000.00716.53
7.4.260.0000.00716.58
7.4.250.0040.00416.43
7.4.240.0040.00416.59
7.4.230.0000.00716.70
7.4.220.0060.01916.59
7.4.210.0050.00816.56
7.4.200.0030.00316.40
7.4.160.0140.00316.39
7.4.150.0040.01517.40
7.4.140.0100.00917.86
7.4.130.0110.00716.58
7.4.120.0060.01216.60
7.4.110.0080.01716.52
7.4.100.0160.00616.44
7.4.90.0120.00916.48
7.4.80.0130.00919.39
7.4.70.0100.00716.55
7.4.60.0090.00916.51
7.4.50.0000.00816.26
7.4.40.0110.00716.35
7.4.30.0110.00616.65
7.4.10.0060.01115.06
7.4.00.0100.00814.98
7.3.330.0000.00613.18
7.3.320.0020.00213.07
7.3.310.0030.00316.40
7.3.300.0060.00016.36
7.3.290.0030.01116.30
7.3.280.0050.01016.33
7.3.270.0130.00817.40
7.3.260.0070.01116.56
7.3.250.0090.01416.59
7.3.240.0030.01616.59
7.3.230.0060.01216.39
7.3.210.0070.01116.51
7.3.200.0140.00919.39
7.3.190.0090.00916.45
7.3.180.0040.01116.46
7.3.170.0080.00816.38
7.3.160.0140.00516.38
7.3.130.0080.01114.77
7.3.120.0100.00815.00
7.3.110.0080.01014.76
7.3.100.0120.00214.88
7.3.90.0080.00814.98
7.3.80.0090.00114.68
7.3.70.0060.01014.78
7.3.60.0080.00414.71
7.3.50.0090.00614.79
7.3.40.0040.01314.81
7.3.30.0050.00614.85
7.3.20.0060.00916.69
7.3.10.0070.00516.72
7.3.00.0030.00916.65
7.2.330.0150.01216.43
7.2.320.0110.00716.46
7.2.310.0070.01316.62
7.2.300.0060.01116.69
7.2.290.0070.01516.59
7.2.260.0110.00615.31
7.2.250.0100.00815.09
7.2.240.0050.01214.98
7.2.230.0050.01114.99
7.2.220.0090.00614.99
7.2.210.0030.01215.12
7.2.200.0060.01015.02
7.2.190.0060.01014.86
7.2.180.0040.00915.00
7.2.170.0060.01115.19
7.2.160.0000.01115.08
7.2.150.0100.00416.93
7.2.140.0070.00416.65
7.2.130.0090.00516.83
7.2.120.0110.00517.03
7.2.110.0050.01016.96
7.2.100.0060.00816.89
7.2.90.0030.01116.89
7.2.80.0050.01116.92
7.2.70.0050.00816.90
7.2.60.0070.00716.98
7.2.50.0050.01016.99
7.2.40.0050.00817.06
7.2.30.0050.00916.85
7.2.20.0070.00816.89
7.2.10.0030.01316.84
7.2.00.0070.00916.94
7.1.330.0060.00915.83
7.1.320.0060.01015.85
7.1.310.0040.00915.85
7.1.300.0060.00815.74
7.1.290.0030.01015.77
7.1.280.0030.00715.77
7.1.270.0110.00015.77
7.1.260.0050.00715.81
7.1.250.0050.00915.82
7.1.240.0080.00615.84
7.1.230.0050.00815.71
7.1.220.0050.00715.71
7.1.210.0050.00715.80
7.1.200.0060.00715.85
7.1.190.0030.00715.67
7.1.180.0070.00815.72
7.1.170.0020.01415.83
7.1.160.0050.01015.77
7.1.150.0070.00515.68
7.1.140.0030.01015.93
7.1.130.0060.00715.83
7.1.120.0050.00915.94
7.1.110.0090.00315.83
7.1.100.0050.00715.79
7.1.90.0050.00915.89
7.1.80.0030.01315.74
7.1.70.0120.00116.17
7.1.60.0030.01217.01
7.1.50.0050.00816.26
7.1.40.0010.01215.80
7.1.30.0060.00615.86
7.1.20.0060.00515.82
7.1.10.0060.00715.81
7.1.00.0030.03318.20
7.0.330.0060.00915.40
7.0.320.0080.00615.39
7.0.310.0070.00715.47
7.0.300.0040.00915.52
7.0.290.0070.00715.47
7.0.280.0090.00515.43
7.0.270.0070.00915.24
7.0.260.0050.00615.32
7.0.250.0070.00615.52
7.0.240.0050.00915.35
7.0.230.0090.00515.41
7.0.220.0130.00415.60
7.0.210.0080.00515.47
7.0.200.0040.00615.86
7.0.190.0040.01115.52
7.0.180.0100.00615.46
7.0.170.0070.00515.42
7.0.160.0100.00515.37
7.0.150.0060.00815.40
7.0.140.0030.03017.50
7.0.130.0030.00915.48
7.0.120.0030.00915.49
7.0.110.0070.03216.91
7.0.100.0070.01817.07
7.0.90.0070.03216.98
7.0.80.0100.02717.07
7.0.70.0110.02216.85
7.0.60.0090.03416.91
7.0.50.0070.02817.02
7.0.40.0070.01915.79
7.0.30.0060.03215.80
7.0.20.0070.03515.78
7.0.10.0050.03115.75
7.0.00.0060.03215.73
5.6.400.0070.00514.26
5.6.390.0030.01014.63
5.6.380.0060.01114.56
5.6.370.0080.00614.31
5.6.360.0070.00814.43
5.6.350.0130.00214.46
5.6.340.0080.00514.28
5.6.330.0100.00714.62
5.6.320.0070.00714.77
5.6.310.0060.00714.70
5.6.300.0050.00914.60
5.6.290.0050.00814.30
5.6.280.0080.02616.66
5.6.270.0060.01114.48
5.6.260.0110.03016.41
5.6.250.0090.02716.47
5.6.240.0060.03116.68
5.6.230.0050.03616.33
5.6.220.0070.02216.43
5.6.210.0080.02616.55
5.6.200.0050.03116.64
5.6.190.0080.03116.78
5.6.180.0050.03316.62
5.6.170.0090.03016.68
5.6.160.0060.03116.61
5.6.150.0080.03216.54
5.6.140.0060.03116.57
5.6.130.0050.03016.66
5.6.120.0090.02916.68
5.6.110.0110.02516.60
5.6.100.0070.03216.49
5.6.90.0050.02216.69
5.6.80.0060.03516.39
5.6.70.0060.02916.29
5.6.60.0100.02816.21
5.6.50.0070.01816.47
5.6.40.0040.02116.38
5.6.30.0060.02116.39
5.6.20.0110.01416.31
5.6.10.0000.02216.40
5.6.00.0060.02016.37
5.5.380.0070.03016.36
5.5.370.0050.03316.47
5.5.360.0050.03316.49
5.5.350.0060.03416.46
5.5.340.0090.02916.50
5.5.330.0050.02116.30
5.5.320.0040.03316.37
5.5.310.0060.02416.57
5.5.300.0050.03416.47
5.5.290.0030.02416.55
5.5.280.0100.02116.60
5.5.270.0030.02616.60
5.5.260.0150.02916.42
5.5.250.0060.02916.35
5.5.240.0050.03116.33
5.5.230.0050.03816.27
5.5.220.0090.02016.11
5.5.210.0080.02016.40
5.5.200.0050.01916.36
5.5.190.0080.01816.15
5.5.180.0040.02016.31
5.5.170.0080.00414.23
5.5.160.0060.01816.03
5.5.150.0030.02816.32
5.5.140.0050.01716.26
5.5.130.0060.01816.20
5.5.120.0070.01716.38
5.5.110.0050.01816.34
5.5.100.0030.01816.21
5.5.90.0030.02016.43
5.5.80.0090.02016.24
5.5.70.0030.01916.21
5.5.60.0050.01816.20
5.5.50.0040.01616.28
5.5.40.0030.02016.20
5.5.30.0020.02316.15
5.5.20.0030.02116.15
5.5.10.0070.02316.17
5.5.00.0070.02016.27
5.4.450.0030.02615.25
5.4.440.0050.03415.23
5.4.430.0060.02815.23
5.4.420.0060.01815.20
5.4.410.0080.01915.21
5.4.400.0090.01215.12
5.4.390.0040.02915.08
5.4.380.0050.01715.08
5.4.370.0090.01815.09
5.4.360.0060.02615.18
5.4.350.0070.01815.09
5.4.340.0050.02115.08
5.4.330.0020.00713.13
5.4.320.0060.01715.13
5.4.310.0040.01415.08
5.4.300.0020.01615.13
5.4.290.0050.01215.11
5.4.280.0040.01315.09
5.4.270.0010.01515.08
5.4.260.0050.01415.14
5.4.250.0040.01615.11
5.4.240.0060.01515.09
5.4.230.0040.01515.12
5.4.220.0030.01615.08
5.4.210.0040.01615.13
5.4.200.0060.01715.09
5.4.190.0040.01615.07
5.4.180.0050.01315.14
5.4.170.0050.01615.09
5.4.160.0040.01415.12
5.4.150.0080.02315.06
5.4.140.0040.01714.20
5.4.130.0020.01714.25
5.4.120.0030.01514.16
5.4.110.0060.02514.18
5.4.100.0060.02614.22
5.4.90.0050.01814.27
5.4.80.0040.02514.28
5.4.70.0040.01714.18
5.4.60.0040.02614.22
5.4.50.0050.02414.25
5.4.40.0010.01914.26
5.4.30.0040.01614.24
5.4.20.0050.02814.13
5.4.10.0060.02614.24
5.4.00.0030.02914.02
5.3.290.0070.03714.80
5.3.280.0070.03314.55
5.3.270.0070.03714.49
5.3.260.0070.05314.52
5.3.250.0000.04314.57
5.3.240.0030.07314.70
5.3.230.0000.05714.73
5.3.220.0030.07714.54
5.3.210.0030.04714.39
5.3.200.0000.04714.51
5.3.190.0100.06714.61
5.3.180.0030.04314.52
5.3.170.0030.05314.47
5.3.160.0070.07314.50
5.3.150.0030.07314.67
5.3.140.0070.04014.45
5.3.130.0070.03714.64
5.3.120.0070.06714.64
5.3.110.0100.07014.52
5.3.100.0030.05313.88
5.3.90.0030.07313.99
5.3.80.0100.04014.13
5.3.70.0030.06714.14
5.3.60.0070.03014.13
5.3.50.0100.07013.91
5.3.40.0030.07714.05
5.3.30.0070.06313.84
5.3.20.0000.03713.74
5.3.10.0030.04013.63
5.3.00.0000.07713.45
5.2.170.0000.05712.30
5.2.160.0070.05712.30
5.2.150.0100.04712.30
5.2.140.0000.03312.30
5.2.130.0030.06312.30
5.2.120.0070.04012.30
5.2.110.0030.02712.30
5.2.100.0030.02712.30
5.2.90.0030.06312.30
5.2.80.0030.06312.30
5.2.70.0030.07012.30
5.2.60.0000.06712.30
5.2.50.0030.03012.30
5.2.40.0030.05312.30
5.2.30.0100.02312.30
5.2.20.0030.05012.30
5.2.10.0000.04312.30
5.2.00.0030.04712.30
5.1.60.0170.04012.30
5.1.50.0030.03012.30
5.1.40.0070.03312.30
5.1.30.0000.05312.30
5.1.20.0100.03712.30
5.1.10.0070.05312.30
5.1.00.0030.03012.30
5.0.50.0070.04012.30
5.0.40.0000.04312.30
5.0.30.0000.04712.30
5.0.20.0000.03012.30
5.0.10.0070.04312.30
5.0.00.0070.05712.30
4.4.90.0000.03712.30
4.4.80.0030.03712.30
4.4.70.0000.02312.30
4.4.60.0000.02312.30
4.4.50.0030.01712.30
4.4.40.0000.02312.30
4.4.30.0000.01712.30
4.4.20.0030.02712.30
4.4.10.0030.03312.30
4.4.00.0000.05312.30
4.3.110.0030.02312.30
4.3.100.0070.02712.30
4.3.90.0000.01712.30
4.3.80.0000.05712.30
4.3.70.0000.02312.30
4.3.60.0000.03012.30
4.3.50.0100.01312.30
4.3.40.0000.04312.30
4.3.30.0000.02012.30
4.3.20.0000.01712.30
4.3.10.0000.03712.30
4.3.00.0030.02712.30

preferences:
44.07 ms | 401 KiB | 5 Q