3v4l.org

run code in 300+ PHP versions simultaneously
<?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 Util { static function arrayToObject($array, $class = 'stdClass', $strict = false) { if (!is_array($array)) { return $array; } //create an instance of an class without calling class's constructor $object = unserialize( sprintf( 'O:%d:"%s":0:{}', strlen($class), $class ) ); if (is_array($array) && count($array) > 0) { foreach ($array as $name => $value) { $name = strtolower(trim($name)); var_dump($name); if (!empty($name)) { if(method_exists($object, 'set'.$name)){ $object->{'set'.$name}(Util::arrayToObject($value)); }else{ if(($strict)){ if(property_exists($class, $name)){ $object->$name = Util::arrayToObject($value); } }else{ $object->$name = Util::arrayToObject($value); } } } } return $object; } else { return FALSE; } } } $device = arrayToObject($cscan); var_dump($device); ?>

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.0170.00016.88
8.3.50.0170.00521.15
8.3.40.0120.00918.96
8.3.30.0070.00718.79
8.3.20.0080.00020.20
8.3.10.0060.00323.71
8.3.00.0090.00020.51
8.2.180.0110.00718.41
8.2.170.0110.00422.96
8.2.160.0070.00722.00
8.2.150.0000.00724.18
8.2.140.0070.00024.66
8.2.130.0050.00326.16
8.2.120.0070.00417.63
8.2.110.0000.00919.21
8.2.100.0080.00417.50
8.2.90.0030.00519.19
8.2.80.0000.00917.97
8.2.70.0000.00917.63
8.2.60.0000.00917.91
8.2.50.0050.00318.07
8.2.40.0060.00321.00
8.2.30.0040.00419.66
8.2.20.0000.00817.74
8.2.10.0000.00818.12
8.2.00.0040.00418.01
8.1.280.0070.01025.92
8.1.270.0040.00420.45
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0030.00719.39
8.1.230.0000.01217.42
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0040.00417.22
8.1.190.0090.00017.23
8.1.180.0060.00318.10
8.1.170.0030.00518.57
8.1.160.0000.00722.05
8.1.150.0070.00018.93
8.1.140.0050.00217.45
8.1.130.0040.00417.31
8.1.120.0000.00717.41
8.1.110.0040.00417.51
8.1.100.0000.00717.34
8.1.90.0000.00717.43
8.1.80.0070.00017.41
8.1.70.0070.00017.45
8.1.60.0030.00617.49
8.1.50.0000.00817.61
8.1.40.0030.00617.51
8.1.30.0000.00817.61
8.1.20.0040.00417.66
8.1.10.0070.00417.61
8.1.00.0060.00317.66
8.0.300.0070.00018.77
8.0.290.0070.00016.88
8.0.280.0030.00318.40
8.0.270.0030.00317.30
8.0.260.0000.00816.94
8.0.250.0080.00317.00
8.0.240.0030.00316.97
8.0.230.0070.00016.99
8.0.220.0070.00016.98
8.0.210.0040.00416.84
8.0.200.0000.00716.98
8.0.190.0040.00417.00
8.0.180.0040.00416.98
8.0.170.0050.00216.90
8.0.160.0050.00216.82
8.0.150.0030.00516.93
8.0.140.0000.00716.77
8.0.130.0030.00313.42
8.0.120.0030.00616.89
8.0.110.0070.00016.99
8.0.100.0000.00716.86
8.0.90.0040.00416.75
8.0.80.0060.00917.01
8.0.70.0040.00416.73
8.0.60.0040.00416.97
8.0.50.0020.00516.80
8.0.30.0100.00616.91
8.0.20.0090.01017.40
8.0.10.0000.00717.03
8.0.00.0080.01016.84
7.4.330.0030.00315.26
7.4.320.0060.00016.42
7.4.300.0030.00316.48
7.4.290.0000.00716.55
7.4.280.0000.00816.46
7.4.270.0030.00316.58
7.4.260.0040.00416.64
7.4.250.0040.00416.38
7.4.240.0020.00516.57
7.4.230.0070.00016.46
7.4.220.0150.00616.63
7.4.210.0060.00916.63
7.4.200.0040.00416.55
7.4.160.0130.00316.48
7.4.150.0090.00917.40
7.4.140.0110.00617.86
7.4.130.0090.00916.64
7.4.120.0110.01016.57
7.4.110.0160.00616.45
7.4.100.0150.00316.62
7.4.90.0040.01416.55
7.4.80.0070.01119.39
7.4.70.0110.01116.50
7.4.60.0080.01616.52
7.4.50.0040.00416.42
7.4.40.0080.01216.42
7.4.30.0120.00616.48
7.4.10.0070.01015.11
7.4.00.0090.00914.92
7.3.330.0080.00013.19
7.3.320.0000.00513.25
7.3.310.0030.00316.31
7.3.300.0000.00716.37
7.3.290.0070.00716.29
7.3.280.0100.00916.30
7.3.270.0100.00717.40
7.3.260.0090.00916.65
7.3.250.0120.00716.40
7.3.240.0100.00716.54
7.3.230.0090.00916.61
7.3.210.0130.00316.34
7.3.200.0110.00616.29
7.3.190.0090.00916.31
7.3.180.0070.01016.45
7.3.170.0120.00916.35
7.3.160.0110.00716.48
7.3.130.0090.00614.79
7.3.120.0080.00814.96
7.3.110.0100.01014.89
7.3.100.0080.00814.69
7.3.90.0040.00914.80
7.3.80.0030.01014.61
7.3.70.0030.01114.84
7.3.60.0070.00914.75
7.3.50.0080.00714.53
7.3.40.0110.00514.86
7.3.30.0020.01214.82
7.3.20.0030.00816.58
7.3.10.0070.00516.54
7.3.00.0060.00916.47
7.2.330.0090.00916.53
7.2.320.0040.01416.55
7.2.310.0070.01716.53
7.2.300.0040.01116.32
7.2.290.0090.00916.64
7.2.260.0130.00714.93
7.2.250.0100.00815.12
7.2.240.0050.01215.00
7.2.230.0090.00714.87
7.2.220.0090.00414.91
7.2.210.0050.01014.93
7.2.200.0070.00715.02
7.2.190.0050.01015.06
7.2.180.0060.01014.87
7.2.170.0060.00814.99
7.2.160.0140.00314.54
7.2.150.0060.00916.84
7.2.140.0000.01216.78
7.2.130.0070.01016.87
7.2.120.0100.00316.88
7.2.110.0050.00816.79
7.2.100.0040.01216.88
7.2.90.0070.00716.80
7.2.80.0070.00716.95
7.2.70.0060.01116.93
7.2.60.0020.01216.64
7.2.50.0060.00916.65
7.2.40.0000.01516.83
7.2.30.0140.00317.04
7.2.20.0100.00616.57
7.2.10.0030.01316.95
7.2.00.0050.00818.13
7.1.330.0020.01015.78
7.1.320.0030.00715.82
7.1.310.0020.01315.58
7.1.300.0110.00515.65
7.1.290.0060.00715.67
7.1.280.0070.00715.74
7.1.270.0100.00515.67
7.1.260.0090.00615.86
7.1.250.0100.01015.83
7.1.240.0040.01115.75
7.1.230.0100.00715.64
7.1.220.0030.00915.60
7.1.210.0070.00715.84
7.1.200.0050.00915.69
7.1.190.0000.00915.74
7.1.180.0000.01215.58
7.1.170.0030.00715.79
7.1.160.0110.00315.43
7.1.150.0030.01215.83
7.1.140.0040.01215.58
7.1.130.0060.00915.55
7.1.120.0100.00315.80
7.1.110.0140.00415.77
7.1.100.0030.01216.86
7.1.90.0030.01415.63
7.1.80.0000.01015.57
7.1.70.0020.01016.44
7.1.60.0070.01217.38
7.1.50.0030.01516.40
7.1.40.0030.01415.81
7.1.30.0030.00615.54
7.1.20.0060.00915.63
7.1.10.0060.00815.73
7.1.00.0070.03819.05
7.0.330.0000.00915.47
7.0.320.0100.00315.35
7.0.310.0060.00315.11
7.0.300.0100.00015.47
7.0.290.0040.01215.45
7.0.280.0110.00415.13
7.0.270.0060.00615.31
7.0.260.0040.00415.08
7.0.250.0000.01615.35
7.0.240.0090.00915.51
7.0.230.0070.00715.15
7.0.220.0060.00615.22
7.0.210.0070.00315.37
7.0.200.0040.00715.86
7.0.190.0100.00715.44
7.0.180.0030.01015.44
7.0.170.0060.00615.15
7.0.160.0000.01315.42
7.0.150.0000.01015.27
7.0.140.0100.00315.49
7.0.130.0030.01015.30
7.0.120.0040.01115.38
7.0.110.0070.00315.26
7.0.100.0070.00715.40
7.0.90.0060.00915.20
7.0.80.0060.00615.49
7.0.70.0040.01215.35
7.0.60.0150.03817.47
7.0.50.0080.04516.50
7.0.40.0020.03016.71
7.0.30.0100.03516.70
7.0.20.0140.02416.82
7.0.10.0060.02816.89
7.0.00.0080.04516.64
5.6.400.0000.01414.20
5.6.390.0070.00313.95
5.6.380.0030.00713.98
5.6.370.0080.00814.30
5.6.360.0040.01114.34
5.6.350.0090.00614.10
5.6.340.0030.01314.09
5.6.330.0140.00314.53
5.6.320.0110.00713.86
5.6.310.0070.00714.51
5.6.300.0040.01014.07
5.6.290.0090.00614.27
5.6.280.0050.02817.77
5.6.270.0000.00914.33
5.6.260.0070.00714.51
5.6.250.0070.01014.26
5.6.240.0060.01013.96
5.6.230.0050.00514.37
5.6.220.0030.01014.16
5.6.210.0080.04617.25
5.6.200.0050.02516.13
5.6.190.0100.04517.39
5.6.180.0250.04217.40
5.6.170.0150.02217.22
5.6.160.0050.04716.20
5.6.150.0100.02016.37
5.6.140.0030.02816.21
5.6.130.0110.03716.14
5.6.120.0140.03517.54
5.6.110.0060.04617.57
5.6.100.0110.02117.65
5.6.90.0020.02917.73
5.6.80.0100.03217.12
5.6.70.0100.00714.30
5.6.60.0070.00713.98
5.6.50.0040.00713.77
5.6.40.0090.00314.07
5.6.30.0000.01513.79
5.6.20.0030.01013.89
5.6.10.0000.01214.09
5.6.00.0000.01613.91
5.5.380.0090.00014.23
5.5.370.0110.00314.14
5.5.360.0060.00313.97
5.5.350.0060.03317.08
5.5.340.0050.02715.88
5.5.330.0100.03717.15
5.5.320.0200.02117.22
5.5.310.0160.04317.37
5.5.300.0070.03316.03
5.5.290.0020.02515.93
5.5.280.0090.02917.56
5.5.270.0050.04417.30
5.5.260.0030.02817.27
5.5.250.0150.03917.26
5.5.240.0100.03817.16
5.5.230.0030.00714.08
5.5.220.0070.00713.87
5.5.210.0000.00814.02
5.5.200.0040.01114.18
5.5.190.0040.00814.03
5.5.180.0060.00913.97
5.5.170.0030.01014.11
5.5.160.0030.01014.17
5.5.150.0070.00714.13
5.5.140.0050.00514.19
5.5.130.0080.00813.82
5.5.120.0090.00613.96
5.5.110.0060.01213.81
5.5.100.0030.01013.96
5.5.90.0090.00613.82
5.5.80.0130.00313.92
5.5.70.0100.00314.16
5.5.60.0000.01013.83
5.5.50.0000.01213.61
5.5.40.0030.01013.78
5.5.30.0000.01414.05
5.5.20.0120.00313.88
5.5.10.0040.00413.99
5.5.00.0000.01113.89
5.4.450.0080.02314.96
5.4.440.0160.02115.07
5.4.430.0100.02015.37
5.4.420.0080.02315.00
5.4.410.0150.01415.04
5.4.400.0100.02215.01
5.4.390.0120.01715.03
5.4.380.0070.02414.84
5.4.370.0100.02315.05
5.4.360.0120.02914.91
5.4.350.0080.02114.92
5.4.340.0080.04014.97
5.4.330.0000.01110.60
5.4.320.0130.02614.81
5.4.310.0100.02215.01
5.4.300.0100.02315.10
5.4.290.0070.03014.82
5.4.280.0060.02915.04
5.4.270.0160.03515.22
5.4.260.0130.02914.88
5.4.250.0080.02815.05
5.4.240.0130.03814.87
5.4.230.0120.02815.04
5.4.220.0180.03014.85
5.4.210.0150.04015.00
5.4.200.0180.03614.91
5.4.190.0150.04015.04
5.4.180.0100.04014.92
5.4.170.0080.02514.89
5.4.160.0120.02215.06
5.4.150.0100.02215.08
5.4.140.0120.04013.54
5.4.130.0150.02813.63
5.4.120.0130.03813.62
5.4.110.0080.03213.74
5.4.100.0120.02213.74
5.4.90.0150.02413.53
5.4.80.0100.03213.56
5.4.70.0050.03213.52
5.4.60.0160.02713.60
5.4.50.0100.01913.68
5.4.40.0120.03713.56
5.4.30.0150.01813.57
5.4.20.0050.04313.56
5.4.10.0130.03313.66
5.4.00.0130.02013.48
5.3.290.0100.05314.90
5.3.280.0270.05714.58
5.3.270.0200.07314.84
5.3.260.0200.05314.54
5.3.250.0300.04314.71
5.3.240.0230.03014.84
5.3.230.0200.03714.53
5.3.220.0330.03714.56
5.3.210.0170.07014.59
5.3.200.0170.05714.57
5.3.190.0200.05314.66
5.3.180.0130.05314.57
5.3.170.0230.05714.49
5.3.160.0130.05014.74
5.3.150.0100.05314.62
5.3.140.0270.07014.47
5.3.130.0300.06714.49
5.3.120.0200.04314.68
5.3.110.0270.07314.79
5.3.100.0170.05714.05
5.3.90.0170.05313.94
5.3.80.0170.03714.05
5.3.70.0230.03014.18
5.3.60.0230.07713.94
5.3.50.0300.03313.98
5.3.40.0230.03714.08
5.3.30.0200.04313.93
5.3.20.0170.06713.79
5.3.10.0170.07313.89
5.3.00.0170.07713.59
5.2.170.0200.04013.04
5.2.160.0070.03713.04
5.2.150.0170.04713.04
5.2.140.0170.04013.04
5.2.130.0230.05713.04
5.2.120.0170.06013.04
5.2.110.0230.03013.04
5.2.100.0200.05313.04
5.2.90.0170.06313.04
5.2.80.0200.05713.04
5.2.70.0130.03313.04
5.2.60.0170.03713.04
5.2.50.0200.03713.04
5.2.40.0130.05713.04
5.2.30.0170.05713.04
5.2.20.0130.05713.04
5.2.10.0230.05313.04
5.2.00.0170.03713.04
5.1.60.0200.04713.04
5.1.50.0070.03713.04
5.1.40.0130.04713.04
5.1.30.0170.04313.04
5.1.20.0100.03013.04
5.1.10.0170.03713.04
5.1.00.0100.05713.04
5.0.50.0070.04713.04
5.0.40.0030.05013.04
5.0.30.0070.06713.04
5.0.20.0070.02313.04
5.0.10.0100.03313.04
5.0.00.0070.06713.04
4.4.90.0070.03313.04
4.4.80.0100.01713.04
4.4.70.0070.02013.04
4.4.60.0100.03313.04
4.4.50.0070.03713.04
4.4.40.0070.05313.04
4.4.30.0100.03013.04
4.4.20.0100.03313.04
4.4.10.0070.02713.04
4.4.00.0070.05313.04
4.3.110.0030.03313.04
4.3.100.0100.03313.04
4.3.90.0100.01713.04
4.3.80.0130.05013.04
4.3.70.0030.02313.04
4.3.60.0070.03013.04
4.3.50.0070.01713.04
4.3.40.0100.02313.04
4.3.30.0000.01713.04
4.3.20.0030.03713.04
4.3.10.0000.02713.04
4.3.00.0070.01313.04

preferences:
55.5 ms | 401 KiB | 5 Q