3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array( "@context" => "http://schema.org", "@type" => "BreadcrumbList", "itemListElement" => array([ "@type" => "ListItem", "position" => 1, "item" =>[ "@id" => "www.example.com/", "name" => "Home" ] //I need $lab[] to show here ]) ); $i = 1; foreach ($pages as $page) { $i++; $arr['itemListElement'][] = [ '@type' => 'ListItem', 'position' => $i, 'item' => [ "@id" => $page->getUri(), "name" =>$page->getLabel() ]]; } var_dump($arr,$lab); json_encode($arr);

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.0040.01418.65
8.3.50.0090.00916.53
8.3.40.0090.00618.79
8.3.30.0190.00018.63
8.3.20.0050.00318.98
8.3.10.0080.00020.91
8.3.00.0100.00017.68
8.2.180.0090.00918.29
8.2.170.0110.01122.96
8.2.160.0040.01121.09
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0070.01119.64
8.2.120.0080.00026.35
8.2.110.0050.00521.13
8.2.100.0100.00319.70
8.2.90.0080.00017.75
8.2.80.0040.00417.97
8.2.70.0060.00317.77
8.2.60.0040.00417.93
8.2.50.0040.00418.10
8.2.40.0040.00419.41
8.2.30.0080.00019.44
8.2.20.0000.00718.05
8.2.10.0040.00418.01
8.2.00.0070.00019.39
8.1.280.0100.01325.92
8.1.270.0040.00423.87
8.1.260.0000.00726.35
8.1.250.0080.00028.09
8.1.240.0030.00622.48
8.1.230.0070.00317.83
8.1.220.0030.00517.74
8.1.210.0060.00318.77
8.1.200.0040.00417.35
8.1.190.0000.00817.35
8.1.180.0090.00018.10
8.1.170.0030.00518.59
8.1.160.0070.00018.89
8.1.150.0050.00318.95
8.1.140.0000.00717.62
8.1.130.0030.00317.32
8.1.120.0110.00017.46
8.1.110.0050.00217.43
8.1.100.0040.00417.36
8.1.90.0000.00717.46
8.1.80.0040.00417.42
8.1.70.0030.00317.48
8.1.60.0040.00417.58
8.1.50.0000.00817.51
8.1.40.0090.00017.55
8.1.30.0040.00417.66
8.1.20.0050.00217.48
8.1.10.0000.00717.50
8.1.00.0000.00817.32
8.0.300.0040.00418.77
8.0.290.0050.00316.88
8.0.280.0030.00318.46
8.0.270.0070.00017.14
8.0.260.0000.00716.79
8.0.250.0000.00717.03
8.0.240.0030.00317.04
8.0.230.0060.00316.97
8.0.220.0000.00716.96
8.0.210.0000.00716.88
8.0.200.0000.00717.01
8.0.190.0050.00317.00
8.0.180.0060.00316.95
8.0.170.0040.00716.90
8.0.160.0040.00416.97
8.0.150.0020.00516.82
8.0.140.0030.00616.89
8.0.130.0060.00013.39
8.0.120.0000.00716.89
8.0.110.0030.00716.82
8.0.100.0060.00316.97
8.0.90.0000.00716.91
8.0.80.0070.01116.93
8.0.70.0000.00717.01
8.0.60.0070.00016.99
8.0.50.0080.00016.96
8.0.30.0130.00816.98
8.0.20.0130.00717.40
8.0.10.0000.00816.93
8.0.00.0110.00717.00
7.4.330.0050.00015.55
7.4.320.0060.00016.53
7.4.300.0030.00316.45
7.4.290.0030.00316.41
7.4.280.0000.00716.59
7.4.270.0030.00316.45
7.4.260.0040.00416.48
7.4.250.0000.00716.36
7.4.240.0070.00016.58
7.4.230.0030.00316.32
7.4.220.0000.00816.38
7.4.210.0100.00716.57
7.4.200.0070.00016.55
7.4.160.0120.00616.45
7.4.140.0060.01417.86
7.4.130.0090.00916.73
7.4.120.0110.00816.51
7.4.110.0060.01216.57
7.4.100.0060.01716.61
7.4.90.0090.00916.59
7.4.80.0170.00619.39
7.4.70.0120.00616.60
7.4.60.0090.00816.50
7.4.50.0070.00316.22
7.4.40.0070.01016.25
7.4.00.0030.01315.05
7.3.330.0000.00613.16
7.3.320.0030.00313.17
7.3.310.0030.00316.25
7.3.300.0000.00616.13
7.3.290.0080.00816.31
7.3.280.0100.00516.24
7.3.260.0090.00916.29
7.3.240.0120.00516.34
7.3.230.0110.00716.42
7.3.210.0110.00616.31
7.3.200.0030.01316.40
7.3.190.0060.01116.27
7.3.180.0150.00616.48
7.3.170.0170.00016.27
7.3.160.0040.01416.47
7.2.330.0150.00616.64
7.2.320.0090.00916.62
7.2.310.0120.00616.49
7.2.300.0030.01516.55
7.2.290.0070.01616.28
7.2.60.2100.01114.58
7.2.50.1980.01214.95
7.2.40.2230.01315.47
7.2.30.2310.01115.37
7.2.20.2180.01215.13
7.2.10.2020.01015.45
7.2.00.1890.00715.15
7.1.200.0000.01215.63
7.1.170.2000.00713.73
7.1.160.2080.01516.91
7.1.150.2310.00916.93
7.1.140.2210.01316.57
7.1.130.2000.01016.62
7.1.120.2020.01016.95
7.1.110.2020.01215.95
7.1.100.1870.00816.01
7.1.90.1820.01515.96
7.1.80.1520.00916.10
7.1.70.1580.01315.23
7.1.60.2380.01433.22
7.1.50.2380.01232.85
7.1.40.2490.01432.59
7.1.30.1940.02132.79
7.1.20.2540.01632.90
7.1.10.1980.01314.68
7.1.00.2150.01814.67

preferences:
35.23 ms | 400 KiB | 5 Q