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 !(($var=='') || isnull($var));}); $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.0040.01116.86
8.3.50.0120.00616.49
8.3.40.0070.00718.84
8.3.30.0140.00018.70
8.3.20.0000.00820.29
8.3.10.0000.00823.36
8.3.00.0040.00421.92
8.2.180.0200.00316.63
8.2.170.0090.00922.96
8.2.160.0030.01019.20
8.2.150.0110.00424.18
8.2.140.0040.00424.66
8.2.130.0070.00419.24
8.2.120.0050.00326.35
8.2.110.0050.00522.09
8.2.100.0090.00317.84
8.2.90.0090.00019.17
8.2.80.0050.00317.97
8.2.70.0050.00317.63
8.2.60.0050.00317.77
8.2.50.0030.00618.10
8.2.40.0030.00620.47
8.2.30.0050.00319.14
8.2.20.0000.00718.10
8.2.10.0040.00418.01
8.2.00.0040.00418.01
8.1.280.0040.01125.92
8.1.270.0070.00022.11
8.1.260.0000.00826.35
8.1.250.0000.00728.09
8.1.240.0000.00823.92
8.1.230.0030.00722.20
8.1.220.0030.00517.75
8.1.210.0060.00318.77
8.1.200.0030.00717.35
8.1.190.0000.00817.35
8.1.180.0070.00018.10
8.1.170.0060.00318.38
8.1.160.0000.00719.01
8.1.150.0000.00720.67
8.1.140.0000.00719.59
8.1.130.0050.00518.91
8.1.120.0000.00817.42
8.1.110.0000.00717.41
8.1.100.0030.00517.48
8.1.90.0000.00817.48
8.1.80.0040.00417.51
8.1.70.0000.00717.50
8.1.60.0090.00017.61
8.1.50.0040.00417.51
8.1.40.0030.00517.52
8.1.30.0000.00817.62
8.1.20.0030.00517.56
8.1.10.0040.00417.57
8.1.00.0000.00817.59
8.0.300.0060.00318.77
8.0.290.0040.00416.59
8.0.280.0000.00818.45
8.0.270.0050.00317.26
8.0.260.0000.00818.46
8.0.250.0000.00717.05
8.0.240.0030.00317.05
8.0.230.0060.00317.00
8.0.220.0030.00316.97
8.0.210.0060.00016.96
8.0.200.0030.00317.02
8.0.190.0000.00817.04
8.0.180.0000.00716.98
8.0.170.0000.00716.99
8.0.160.0040.00417.01
8.0.150.0000.00816.91
8.0.140.0000.00716.85
8.0.130.0050.00013.39
8.0.120.0070.00016.86
8.0.110.0040.00416.96
8.0.100.0040.00416.86
8.0.90.0040.00416.84
8.0.80.0070.01117.01
8.0.70.0080.00016.96
8.0.60.0040.00417.00
8.0.50.0040.00416.84
8.0.30.0100.00717.21
8.0.20.0120.00617.40
8.0.10.0040.00417.03
8.0.00.0090.00916.79
7.4.330.0050.00015.55
7.4.320.0000.00616.62
7.4.300.0060.00016.66
7.4.290.0030.00316.41
7.4.280.0040.00416.45
7.4.270.0040.00416.46
7.4.260.0050.00216.55
7.4.250.0040.00416.57
7.4.240.0000.00816.63
7.4.230.0030.00316.32
7.4.220.0170.01016.57
7.4.210.0080.00816.62
7.4.200.0000.00716.61
7.4.160.0130.00316.57
7.4.150.0100.00717.40
7.4.140.0130.00817.86
7.4.130.0100.01016.40
7.4.120.0090.01216.51
7.3.330.0000.00713.32
7.3.320.0060.00013.34
7.3.310.0000.00716.20
7.3.300.0050.00216.36
7.3.290.0080.00716.38
7.3.280.0120.00716.38
7.3.270.0120.00617.40
7.3.260.0070.01216.56
7.3.250.0100.00816.46
7.3.240.0070.01116.44

preferences:
39.63 ms | 401 KiB | 5 Q