3v4l.org

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

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.00416.75
8.3.50.0110.00716.10
8.3.40.0160.00618.79
8.3.30.0030.01218.57
8.3.20.0050.00320.24
8.3.10.0040.00423.67
8.3.00.0080.00022.09
8.2.180.0140.00716.50
8.2.170.0150.00422.96
8.2.160.0070.00719.16
8.2.150.0060.00924.18
8.2.140.0070.00024.66
8.2.130.0070.00319.34
8.2.120.0040.00426.35
8.2.110.0110.00020.56
8.2.100.0080.00419.51
8.2.90.0040.00419.40
8.2.80.0040.00418.03
8.2.70.0060.00317.38
8.2.60.0050.00318.04
8.2.50.0040.00418.10
8.2.40.0030.00620.62
8.2.30.0050.00219.25
8.2.20.0040.00418.05
8.2.10.0050.00318.04
8.2.00.0000.00718.02
8.1.280.0070.01125.92
8.1.270.0000.00822.20
8.1.260.0000.00826.35
8.1.250.0070.00028.09
8.1.240.0060.00322.11
8.1.230.0110.00019.22
8.1.220.0000.00817.77
8.1.210.0000.00918.77
8.1.200.0000.00917.38
8.1.190.0040.00417.35
8.1.180.0000.00718.10
8.1.170.0040.00418.44
8.1.160.0040.00418.96
8.1.150.0040.00420.52
8.1.140.0000.00719.59
8.1.130.0030.00318.82
8.1.120.0070.00017.37
8.1.110.0000.00817.36
8.1.100.0000.00717.46
8.1.90.0050.00217.44
8.1.80.0040.00417.47
8.1.70.0000.00717.44
8.1.60.0060.00317.63
8.1.50.0050.00317.51
8.1.40.0000.00817.47
8.1.30.0060.00317.53
8.1.20.0000.00717.71
8.1.10.0060.00317.49
8.1.00.0020.00517.46
8.0.300.0070.00018.77
8.0.290.0040.00416.75
8.0.280.0040.00418.42
8.0.270.0040.00417.25
8.0.260.0040.00416.82
8.0.250.0040.00416.85
8.0.240.0030.00416.96
8.0.230.0060.00316.95
8.0.220.0030.00316.89
8.0.210.0040.00416.90
8.0.200.0040.00416.91
8.0.190.0030.00516.94
8.0.180.0070.00016.92
8.0.170.0070.00016.91
8.0.160.0000.00716.86
8.0.150.0070.00016.94
8.0.140.0000.00716.75
8.0.130.0050.00013.29
8.0.120.0030.00516.87
8.0.110.0000.00717.01
8.0.100.0000.00716.84
8.0.90.0080.00016.75
8.0.80.0180.00416.86
8.0.70.0070.00016.85
8.0.60.0070.00016.79
8.0.50.0040.00416.76
8.0.30.0110.00716.87
8.0.20.0110.00817.40
8.0.10.0000.00716.97
8.0.00.0070.01016.61
7.4.330.0000.00515.55
7.4.320.0030.00316.50
7.4.300.0000.00616.59
7.4.290.0030.00316.45
7.4.280.0030.00616.60
7.4.270.0000.00716.59
7.4.260.0070.00016.48
7.4.250.0030.00616.57
7.4.240.0040.00316.59
7.4.230.0000.00716.70
7.4.220.0120.00616.55
7.4.210.0100.00316.61
7.4.200.0030.00316.40
7.4.160.0100.00716.55
7.4.150.0030.01417.40
7.4.140.0150.00617.86
7.4.130.0150.00616.62
7.4.120.0070.01316.51
7.3.330.0030.00313.39
7.3.320.0050.00013.32
7.3.310.0070.00016.27
7.3.300.0000.00816.41
7.3.290.0030.01416.38
7.3.280.0080.00816.36
7.3.270.0120.00617.40
7.3.260.0050.01316.54
7.3.250.0130.00716.40
7.3.240.0110.00816.54

preferences:
51.61 ms | 400 KiB | 5 Q