3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $scan = "00:12:a9:54:f6:a7,Privacy,-52.00,3Com,6,30:91:8f:24:07:d0,RSN: Privacy,-85.00,CenturyLink3873,1,00:0c:e5:46:2d:74,ShortSlotTime,-92.00,WLAN,1,c0:3f:0e:57:87:e8,RSN: Privacy,-94.00,Megan-PC-Wireless,6,00:12:a9:54:f6:a7,ShortPreamble,-45.00,WLAN,7"; $escan = (explode(",",$scan)); $cscan = (array_chunk($escan, 5)); class d_object { private $mac; var $enc; var $freq; var $ssid; var $channel; function __construct ($payload) { if (is_array($payload)) $this->from_array($payload); } public function from_array($array) { foreach(get_object_vars($this) as $attrName => $attrValue) $this->{$attrName} = $array[$attrName]; } public function s_output () { print "{$this->$mac}"; } } $device = new d_object($cscan); $device->s_output(); ?>
based on 8ZKUa

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).
Note: hhvm uses a JIT which only kicks in after a few runs. Since we run scripts only once, hhvm always runs slower.

VersionSystem time (s)User time (s)Memory (MiB)
7.2.60.0030.01016.85
7.2.00.0070.00719.45
7.1.200.0120.00315.61
7.1.100.0070.00718.16
7.1.70.0000.00917.22
7.1.60.0150.00619.18
7.1.50.0070.01716.96
7.1.00.0100.07022.31
7.0.200.0000.00816.73
7.0.60.0130.06319.83
7.0.50.0100.08717.96
7.0.40.0030.05720.28
7.0.30.0300.07320.16
7.0.20.0170.04720.30
7.0.10.0100.07320.19
7.0.00.0070.08320.20
5.6.280.0030.03721.08
5.6.210.0070.08020.53
5.6.200.0130.05018.19
5.6.190.0130.04320.55
5.6.180.0470.06720.61
5.6.170.0130.05720.44
5.6.160.0030.04320.71
5.6.150.0070.06018.23
5.6.140.0070.04018.24
5.6.130.0130.08018.26
5.6.120.0000.04321.10
5.6.110.0030.09021.00
5.6.100.0130.06321.13
5.6.90.0170.06321.09
5.6.80.0070.08020.52
5.5.350.0200.03020.41
5.5.340.0130.07317.98
5.5.330.0030.09020.27
5.5.320.0400.05020.34
5.5.310.0230.06020.24
5.5.300.0070.07718.04
5.5.290.0070.08017.94
5.5.280.0030.04720.86
5.5.270.0030.06020.88
5.5.260.0000.04320.90
5.5.250.0030.04020.66
5.5.240.0030.04320.25
5.4.450.1100.08319.47
5.4.440.0700.06019.46
5.4.430.0800.06019.48
5.4.420.0700.05319.33
5.4.410.0600.06319.09
5.4.400.0570.06319.16
5.4.390.0700.05719.16
5.4.380.0570.06019.16
5.4.370.0700.05019.06
5.4.360.0800.04719.16
5.4.350.0630.05319.16
5.4.340.0670.07019.16
5.4.320.0570.06019.16
5.4.310.0700.04719.12
5.4.300.0830.05319.07
5.4.290.0870.05719.16
5.4.280.0770.06319.23
5.4.270.0570.07018.83
5.4.260.0970.04718.80
5.4.250.0770.06318.82
5.4.240.0730.04719.16
5.4.230.0770.05319.15
5.4.220.0770.05719.00
5.4.210.0700.05718.95
5.4.200.0700.07016.83
5.4.190.0900.06019.01
5.4.180.0670.05718.97
5.4.170.0630.06719.13
5.4.160.0630.05018.96
5.4.150.0600.05318.90
5.4.140.0900.05716.55
5.4.130.0670.04716.43
5.4.120.0630.04716.42
5.4.110.0630.04716.30
5.4.100.0670.05016.55
5.4.90.0670.05016.39
5.4.80.0770.06716.30
5.4.70.0770.05316.70
5.4.60.0630.05016.36
5.4.50.0670.04716.47
5.4.40.0630.06016.52
5.4.30.0830.04316.35
5.4.20.0630.05316.68
5.4.10.0700.04716.51
5.4.00.0830.05015.87
5.3.290.0830.05314.90
5.3.280.0800.04714.52
5.3.270.0630.06014.85
5.3.260.0670.06314.59
5.3.250.0800.05714.67
5.3.240.0600.06014.48
5.3.230.0700.06014.60
5.3.220.0600.05014.49
5.3.210.0670.04714.60
5.3.200.0570.05714.58
5.3.190.0600.05714.66
5.3.180.0700.04314.63
5.3.170.0670.06014.59
5.3.160.0670.05314.61
5.3.150.0830.04714.58
5.3.140.0870.04314.55
5.3.130.0870.04714.53
5.3.120.0870.04314.42
5.3.110.0630.06314.55
5.3.100.0870.05014.05
5.3.90.0770.06714.02
5.3.80.0830.05314.05
5.3.70.0600.05313.95
5.3.60.0730.05313.93
5.3.50.0730.05014.01
5.3.40.0770.04714.11
5.3.30.0830.04713.83
5.3.20.0700.05013.61
5.3.10.0730.06013.58
5.3.00.0770.05013.88
5.2.170.0530.05011.25
5.2.160.0530.05011.07
5.2.150.0630.05011.25
5.2.140.0730.03311.39
5.2.130.0600.03711.13
5.2.120.0530.04011.26
5.2.110.0600.05011.02
5.2.100.0530.03711.13
5.2.90.0500.04711.11
5.2.80.0700.04011.04
5.2.70.0670.03711.27
5.2.60.0530.04711.12
5.2.50.0630.04311.18
5.2.40.0470.03710.96
5.2.30.0470.04010.89
5.2.20.0500.03710.94
5.2.10.0530.05010.88
5.2.00.0430.05710.63
5.1.60.0430.0439.89
5.1.50.0500.03310.04
5.1.40.0530.04710.02
5.1.30.0500.03010.36
5.1.20.0370.04010.34
5.1.10.0430.03710.25
5.1.00.0470.03710.09
5.0.50.0200.0338.54
5.0.40.0230.0308.66
5.0.30.0200.0478.39
5.0.20.0230.0278.09
5.0.10.0270.0278.09
5.0.00.0170.0478.16
4.4.90.0300.0276.33
4.4.80.0270.0306.33
4.4.70.0170.0306.33
4.4.60.0200.0236.33
4.4.50.0230.0236.33
4.4.40.0170.0506.33
4.4.30.0270.0236.33
4.4.20.0230.0206.33
4.4.10.0200.0236.33
4.4.00.0230.0406.33
4.3.110.0200.0276.33
4.3.100.0330.0306.33
4.3.90.0230.0236.33
4.3.80.0200.0436.33
4.3.70.0300.0276.33
4.3.60.0300.0276.33
4.3.50.0330.0236.33
4.3.40.0300.0376.33
4.3.30.0130.0306.33
4.3.20.0100.0306.33
4.3.10.0130.0236.33
4.3.00.0030.0207.10