3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array( "mac_address"=>"989096e255a1", "Username"=>"", "status" =>"Known", "attributes" => array( "Owner"=>"rogue@wpi.edu", "IPAM-Hostname"=>"dresden.wpi.edu", "IPAM-AdminState"=>"OK", "IPAM-NAS-IP-Address"=>"", "IPAM-NAS-Port-ID"=>"", "IPAM-RADIUS-VLAN"=>"", "IPAM-TimeStamp"=>"2017-07-11 11:18:33 EDT", "Guest Role ID"=>"", "MAC-Auth Expiry"=>"", "Username"=>"", "morestuff" => array( "a" =>123, "b" =>"", "c" =>123, "d" =>123 ), ), ); $filtered = array_filter($arr, function($var) {return !empty($var);}); $filtered["attributes"] = array_filter($arr["attributes"], function($var) {return !empty($var);}); print_r($filtered);

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.0200.00316.50
8.3.50.0180.00016.29
8.3.40.0070.00718.67
8.3.30.0030.01118.68
8.3.20.0070.00320.42
8.3.10.0080.00023.48
8.3.00.0080.00021.94
8.2.180.0040.01116.75
8.2.170.0000.01422.96
8.2.160.0100.00719.21
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00419.27
8.2.120.0080.00026.35
8.2.110.0060.00320.47
8.2.100.0110.00017.97
8.2.90.0110.00019.41
8.2.80.0040.00418.16
8.2.70.0090.00317.50
8.2.60.0050.00318.05
8.2.50.0050.00318.16
8.2.40.0000.00720.30
8.2.30.0080.00021.09
8.2.20.0040.00718.17
8.2.10.0040.00418.05
8.2.00.0070.00018.14
8.1.280.0130.00325.92
8.1.270.0040.00422.01
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0000.00823.83
8.1.230.0080.00419.01
8.1.220.0090.00017.79
8.1.210.0040.00418.77
8.1.200.0060.00317.35
8.1.190.0050.00317.23
8.1.180.0040.00418.10
8.1.170.0040.00418.48
8.1.160.0070.00018.96
8.1.150.0040.00418.90
8.1.140.0040.00419.51
8.1.130.0000.00718.86
8.1.120.0000.00717.47
8.1.110.0000.00717.41
8.1.100.0040.00417.51
8.1.90.0020.00517.48
8.1.80.0000.00817.40
8.1.70.0000.00717.38
8.1.60.0000.00817.48
8.1.50.0080.00017.43
8.1.40.0060.00317.52
8.1.30.0000.00817.66
8.1.20.0040.00417.66
8.1.10.0000.00817.54
8.1.00.0040.00417.53
8.0.300.0050.00318.77
8.0.290.0030.00516.63
8.0.280.0000.00718.32
8.0.270.0030.00317.13
8.0.260.0060.00016.86
8.0.250.0030.00316.97
8.0.240.0070.00016.96
8.0.230.0040.00416.85
8.0.220.0020.00516.90
8.0.210.0050.00216.85
8.0.200.0030.00316.98
8.0.190.0040.00416.96
8.0.180.0070.00016.80
8.0.170.0070.00016.95
8.0.160.0000.00716.79
8.0.150.0070.00016.87
8.0.140.0000.00716.82
8.0.130.0030.00313.41
8.0.120.0040.00416.88
8.0.110.0030.00316.79
8.0.100.0000.00816.71
8.0.90.0040.00416.98
8.0.80.0080.00816.87
8.0.70.0040.00416.80
8.0.60.0070.00016.96
8.0.50.0040.00416.77
8.0.30.0070.01117.06
8.0.20.0100.01117.40
8.0.10.0030.00517.04
8.0.00.0090.01316.75
7.4.330.0030.00315.55
7.4.320.0000.00716.61
7.4.300.0030.00316.61
7.4.290.0000.00716.65
7.4.280.0030.00516.40
7.4.270.0030.00316.52
7.4.260.0000.00816.60
7.4.250.0070.00016.57
7.4.240.0000.00716.61
7.4.230.0040.00416.52
7.4.220.0110.00716.40
7.4.210.0070.00716.53
7.4.200.0070.00016.70
7.4.160.0060.01016.61
7.4.150.0120.00417.40
7.4.140.0130.00617.86
7.4.130.0070.01116.68
7.4.120.0110.00916.46
7.3.330.0040.00413.29
7.3.320.0040.00413.33
7.3.310.0040.00416.32
7.3.300.0000.00716.32
7.3.290.0030.00316.23
7.3.280.0070.01116.29
7.3.270.0030.01617.40
7.3.260.0150.00416.51
7.3.250.0080.01116.44
7.3.240.0120.00616.32

preferences:
52.8 ms | 401 KiB | 5 Q