3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array( '31' => array( 'Amsterdam' => array(), 'Rotterdam' => array(), 'Den Haag' => array(), 'Utrecht' => array(), 'Eindhoven' => array(), 'Tilburg' => array(), 'Almere' => array( '036' => array( 'BU00340212' => array( 'name' => 'Muziekwijk Noord', 'residents' => array( 'Henk', 'Dirk', 'Jaap', ), ), 'BU00340213' => array( 'name' => 'Muziekwijk Zuid', 'residents' => array( 'Wim', 'Pim', 'Jim', 'Tim', ), ), ) ), 'Groningen' => array(), 'Breda' => array(), 'Nijmegen' => array(), ) ); function recursive($data, $countryCode = null, $countryData = null, $city = null, $cityData = null, $netNummer = null, $netData = null, $cbscode = null, $cbsData = null, $residents = null){ if($residents){ $resident = array_shift($residents); echo $city . '(netnummer: ' . $netNummer . ')(cbscode: ' . $cbscode .'): ' . $resident . '<br>'; if($residents){ recursive($data, $countryCode, $countryData, $city, $cityData, $netNummer, $netData, $cbscode, $cbsData, $residents); } return null; } if($cbscode && $cbsData){ $residents = $cbsData['residents']; recursive($data, $countryCode, $countryData, $city, $cityData, $netNummer, $netData, $cbscode, $cbsData, $residents); } if($countryCode && $countryData && $netData){ $cbscode = key($netData); $cbsData = array_shift($netData); recursive($data, $countryCode, $countryData, $city, $cityData, $netNummer, $netData, $cbscode, $cbsData); } if($countryCode && $countryData && $city && $cityData){ $netNummer = key($cityData); $netData = array_shift($cityData); recursive($data, $countryCode, $countryData, $city, $cityData, $netNummer, $netData); } if($countryCode && $countryData){ $city = key($countryData); $cityData = array_shift($countryData); recursive($data, $countryCode, $countryData, $city, $cityData); } if($data){ $countryCode = key($data); $countryData = array_shift($data); if($countryData){ recursive($data, $countryCode, $countryData); } } return null; } recursive($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.5.00.0130.01120.05
8.4.150.0070.00716.89
8.4.140.0160.00617.70
8.4.130.0120.00817.80
8.4.120.0120.00720.57
8.4.110.0100.01022.43
8.4.100.0110.01018.71
8.4.90.0090.01118.86
8.4.80.0060.00220.54
8.4.70.0040.00717.80
8.4.60.0110.00918.70
8.4.50.0110.00920.59
8.4.40.0030.00617.69
8.4.30.0130.00718.87
8.4.20.0070.01418.89
8.4.10.0060.00319.45
8.3.280.0080.00416.25
8.3.270.0080.01116.79
8.3.260.0130.00616.63
8.3.250.0100.00818.67
8.3.240.0100.00916.47
8.3.230.0120.00816.57
8.3.220.0040.00419.04
8.3.210.0060.00216.62
8.3.200.0070.00216.62
8.3.190.0040.00417.29
8.3.180.0070.00917.19
8.3.170.0060.00318.75
8.3.160.0000.01817.30
8.3.150.0090.00617.05
8.3.140.0070.00716.86
8.3.130.0150.00416.86
8.3.120.0030.00719.05
8.3.110.0090.00020.94
8.3.100.0070.00318.40
8.3.90.0030.00516.84
8.3.80.0090.00018.31
8.3.70.0160.00316.63
8.3.60.0110.01118.21
8.3.50.0130.00418.21
8.3.40.0150.00018.67
8.3.30.0150.00318.68
8.3.20.0050.00321.82
8.3.10.0060.00318.97
8.3.00.0000.00721.76
8.2.290.0100.00920.68
8.2.280.0040.00518.37
8.2.270.0110.00716.99
8.2.260.0140.00316.69
8.2.250.0040.00416.50
8.2.240.0000.00817.16
8.2.230.0000.00922.58
8.2.220.0030.00624.06
8.2.210.0070.01126.77
8.2.200.0030.00618.41
8.2.190.0070.01416.75
8.2.180.0040.01118.55
8.2.170.0060.00922.96
8.2.160.0000.01522.26
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0000.00826.16
8.2.110.0070.00321.95
8.2.100.0160.00017.72
8.2.90.0030.00619.57
8.2.80.0080.00017.97
8.2.70.0060.00317.93
8.2.60.0000.00818.16
8.2.50.0050.00219.46
8.2.40.0000.00821.25
8.2.30.0060.00320.42
8.2.20.0040.00418.04
8.2.10.0000.00719.04
8.2.00.0000.00718.01
8.1.330.0120.00921.95
8.1.320.0120.00616.11
8.1.310.0070.01116.76
8.1.300.0030.01317.81
8.1.290.0090.00018.88
8.1.280.0070.01425.92
8.1.270.0080.00020.80
8.1.260.0030.00526.35
8.1.250.0070.00028.09
8.1.240.0000.00923.68
8.1.230.0060.00623.88
8.1.220.0060.00317.78
8.1.210.0030.00518.97
8.1.200.0000.01017.25
8.1.190.0030.00717.10
8.1.180.0050.00318.10
8.1.170.0040.00418.46
8.1.160.0000.00818.91
8.1.150.0070.00018.89
8.1.140.0040.00420.22
8.1.130.0000.00720.29
8.1.120.0070.00317.41
8.1.110.0040.00417.50
8.1.100.0000.00817.50
8.1.90.0030.00517.56
8.1.80.0040.00417.45
8.1.70.0000.00717.49
8.1.60.0030.00617.62
8.1.50.0050.00517.42
8.1.40.0050.00317.52
8.1.30.0030.00517.59
8.1.20.0080.00017.75
8.1.10.0000.00817.52
8.1.00.0000.00717.51
8.0.300.0040.00419.73
8.0.290.0060.00316.88
8.0.280.0030.00318.42
8.0.270.0000.00716.82
8.0.260.0030.00318.48
8.0.250.0060.00017.03
8.0.240.0040.00416.89
8.0.230.0000.00717.05
8.0.220.0070.00016.85
8.0.210.0000.00716.89
8.0.200.0000.00716.89
8.0.190.0040.00416.99
8.0.180.0030.00616.95
8.0.170.0050.00317.00
8.0.160.0040.00416.83
8.0.150.0030.00316.89
8.0.140.0000.00716.93
8.0.130.0000.00613.31
8.0.120.0000.00816.80
8.0.110.0050.00216.94
8.0.100.0050.00317.05
8.0.90.0050.00316.91
8.0.80.0070.00717.00
8.0.70.0040.00416.93
8.0.60.0040.00416.89
8.0.50.0040.00416.75
8.0.30.0090.01016.83
8.0.20.0130.00617.07
8.0.10.0000.00717.06
8.0.00.0100.00816.79
7.4.330.0050.00015.55
7.4.320.0030.00316.63
7.4.300.0060.00016.71
7.4.290.0000.00816.53
7.4.280.0050.00316.60
7.4.270.0000.00716.63
7.4.260.0070.00016.64
7.4.250.0050.00316.48
7.4.240.0040.00416.62
7.4.230.0030.00316.45
7.4.220.0050.00316.63
7.4.210.0070.01216.64
7.4.200.0040.00416.54
7.4.160.0080.00816.50
7.4.140.0130.01017.86
7.4.130.0140.00416.61
7.4.120.0160.01016.59
7.4.110.0070.01316.55
7.4.100.0130.01016.42
7.4.90.0060.01116.52
7.4.80.0120.00619.39
7.4.70.0090.01416.38
7.4.60.0030.01416.63
7.4.50.0080.00416.37
7.4.40.0110.00716.45
7.4.00.0000.01715.09
7.3.330.0000.00513.27
7.3.320.0000.00513.36
7.3.310.0030.00316.22
7.3.300.0000.00716.45
7.3.290.0030.00616.23
7.3.280.0110.00516.34
7.3.260.0100.00916.56
7.3.230.0070.01116.53
7.3.210.0130.00416.44
7.3.200.0130.00316.57
7.3.190.0070.01416.38
7.3.180.0100.00716.56
7.3.170.0130.01016.36
7.3.160.0080.00916.48
7.3.50.0000.01414.64
7.3.40.0090.00314.77
7.3.30.0100.00314.90
7.3.20.0110.00614.74
7.3.10.0570.01214.80
7.3.00.0070.00714.99
7.2.330.0100.00716.43
7.2.320.0130.01016.80
7.2.310.0080.00816.87
7.2.300.0110.01116.81
7.2.290.0120.00616.82
7.2.180.0100.00315.16
7.2.170.0100.01315.01
7.2.160.0030.01015.24
7.2.150.0060.01215.25
7.2.140.0110.01315.18
7.2.130.0150.00915.21
7.2.120.0130.01314.99
7.2.110.0060.00915.18
7.2.100.0030.01014.83
7.2.90.0110.00615.17
7.2.80.0200.00415.15
7.2.70.0100.00715.34
7.2.60.0070.01015.13
7.2.50.0070.01015.17
7.2.40.0070.01115.18
7.2.30.0100.00315.10
7.2.20.0120.00614.82
7.2.10.0090.00915.08
7.2.00.0130.00614.92
7.1.280.0210.00313.82
7.1.270.0130.00413.91
7.1.260.0140.00014.10
7.1.250.0000.01213.76

preferences:
39.44 ms | 403 KiB | 5 Q