3v4l.org

run code in 300+ PHP versions simultaneously
<?php /* * Getting MAC Address using PHP * Md. Nazmul Basher */ ob_start(); // Turn on output buffering system(‘ipconfig /all’); //Execute external program to display output $mycom=ob_get_contents(); // Capture the output into a variable ob_clean(); // Clean (erase) the output buffer $findme = “Physical”; $pmac = strpos($mycom, $findme); // Find the position of Physical text $mac=substr($mycom,($pmac+36),17); // Get Physical Address echo $mac;

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.00318.43
8.3.50.0070.01521.88
8.3.40.0120.00318.96
8.3.30.0080.00619.09
8.3.20.0030.00620.21
8.3.10.0030.00523.70
8.3.00.0060.00319.14
8.2.180.0110.00416.50
8.2.170.0090.00622.96
8.2.160.0090.00619.14
8.2.150.0080.00024.18
8.2.140.0090.00024.66
8.2.130.0080.00026.16
8.2.120.0000.00822.24
8.2.110.0060.00320.51
8.2.100.0080.00317.72
8.2.90.0000.00818.03
8.2.80.0030.00517.97
8.2.70.0060.00317.63
8.2.60.0030.00617.79
8.2.50.0000.00818.07
8.2.40.0030.00518.34
8.2.30.0070.00018.11
8.2.20.0080.00017.73
8.2.10.0030.00417.93
8.2.00.0050.00317.74
8.1.280.0100.00725.92
8.1.270.0070.00722.19
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0100.00022.12
8.1.230.0090.00322.23
8.1.220.0000.00817.74
8.1.210.0030.00518.77
8.1.200.0000.01017.35
8.1.190.0080.00017.22
8.1.180.0000.00718.10
8.1.170.0000.00820.43
8.1.160.0030.00521.93
8.1.150.0000.00718.70
8.1.140.0080.00017.45
8.1.130.0000.00817.77
8.1.120.0000.00717.42
8.1.110.0000.00717.41
8.1.100.0030.00517.41
8.1.90.0030.00317.32
8.1.80.0070.00017.33
8.1.70.0030.00317.25
8.1.60.0080.00417.44
8.1.50.0040.00417.47
8.1.40.0070.00017.47
8.1.30.0040.00417.48
8.1.20.0040.00417.50
8.1.10.0030.00617.42
8.1.00.0000.00817.30
8.0.300.0000.00719.91
8.0.290.0040.00416.75
8.0.280.0040.00418.44
8.0.270.0070.00017.26
8.0.260.0030.00317.24
8.0.250.0030.00316.91
8.0.240.0030.00317.08
8.0.230.0000.00717.07
8.0.220.0070.00016.94
8.0.210.0000.00716.97
8.0.200.0000.00616.92
8.0.190.0000.00716.95
8.0.180.0050.00216.87
8.0.170.0040.00417.01
8.0.160.0030.00316.91
8.0.150.0070.00016.82
8.0.140.0050.00316.80
8.0.130.0050.00013.34
8.0.120.0050.00316.90
8.0.110.0030.00516.83
8.0.100.0000.00716.94
8.0.90.0000.00816.96
8.0.80.0070.01017.00
8.0.70.0000.00817.07
8.0.60.0030.00417.02
8.0.50.0060.00316.84
8.0.30.0070.01117.04
8.0.20.0100.01017.40
8.0.10.0000.00716.88
8.0.00.0030.01416.76
7.4.330.0020.00415.02
7.4.320.0060.00016.48
7.4.300.0060.00016.63
7.4.290.0070.00016.35
7.4.280.0000.00716.39
7.4.270.0040.00416.45
7.4.260.0000.00716.50
7.4.250.0040.00416.50
7.4.240.0040.00416.46
7.4.230.0070.00016.24
7.4.220.0090.00916.48
7.4.210.0070.00716.61
7.4.200.0070.00016.41
7.4.160.0040.01316.60
7.4.150.0090.01617.40
7.4.140.0080.01017.86
7.4.130.0110.00616.38
7.4.120.0070.01116.43
7.4.110.0040.01516.55
7.4.100.0110.00816.54
7.4.90.0080.01116.36
7.4.80.0090.00919.39
7.4.70.0080.01216.32
7.4.60.0100.00716.51
7.4.50.0000.00816.34
7.4.40.0070.01616.55
7.4.30.0120.00616.60
7.4.00.0060.01015.28
7.3.330.0000.00713.20
7.3.320.0000.00513.04
7.3.310.0040.00416.16
7.3.300.0040.00416.30
7.3.290.0060.01116.35
7.3.280.0090.00716.36
7.3.270.0140.01317.40
7.3.260.0110.00616.30
7.3.250.0100.01216.28
7.3.240.0120.00716.42
7.3.230.0140.00616.39
7.3.210.0130.00416.30
7.3.200.0100.00719.39
7.3.190.0100.01016.43
7.3.180.0060.01016.55
7.3.170.0080.00916.44
7.3.160.0050.01216.44
7.2.330.0090.00816.67
7.2.320.0090.01016.64
7.2.310.0030.01416.48
7.2.300.0090.00816.44
7.2.290.0120.01316.48
7.2.60.0000.01817.02
7.2.00.0040.01119.40
7.1.200.0170.00115.88
7.1.100.0100.00718.01
7.1.70.0030.01117.20
7.1.60.0160.01019.32
7.1.50.0130.00735.02
7.1.00.0070.07722.46
7.0.200.0150.00915.01
7.0.140.0030.07721.90
7.0.60.0070.08719.98
7.0.50.0130.03717.79
7.0.40.0030.05020.29
7.0.30.0230.04720.18
7.0.20.0330.08020.20
7.0.10.0100.04320.12
7.0.00.0130.05020.16
5.6.280.0030.07021.10
5.6.210.0070.04320.74
5.6.200.0000.05718.21
5.6.190.0170.06020.41
5.6.180.0300.06720.43
5.6.170.0300.07020.33
5.6.160.0000.04720.52
5.6.150.0000.04018.18
5.6.140.0130.07318.10
5.6.130.0170.07718.20
5.6.120.0070.05321.10
5.6.110.0100.03720.95
5.6.100.0100.06021.11
5.6.90.0070.05320.99
5.6.80.0000.07720.37
5.6.70.4530.03320.37
5.5.350.0430.06020.44
5.5.340.0030.05317.98
5.5.330.0100.05720.36
5.5.320.0270.06320.33
5.5.310.0300.04020.16
5.5.300.0070.07317.98
5.5.290.0070.04017.92
5.5.280.0030.06020.68
5.5.270.0030.09020.67
5.5.260.0070.05320.86
5.5.250.0070.08720.63
5.5.240.0300.05720.15
5.4.450.0500.04719.39
5.4.440.0400.03319.21
5.4.430.0470.06719.52
5.4.420.0470.03319.20
5.4.410.0370.04019.42
5.4.400.0500.07019.10
5.4.390.0430.04019.06
5.4.380.0530.05719.22
5.4.370.0430.06018.88
5.4.360.0530.06019.13
5.4.350.0370.04019.09
5.4.340.0570.05319.13
5.4.320.0600.06019.13
5.4.310.0400.03719.16
5.4.300.0430.04318.80
5.4.290.0430.06019.12
5.4.280.0570.05318.78
5.4.270.0530.04319.13
5.4.260.0470.06319.03
5.4.250.0500.05719.21
5.4.240.0570.05719.09
5.4.230.0530.04319.08
5.4.220.0500.04319.13
5.4.210.0530.04019.11
5.4.200.0430.04019.07
5.4.190.0470.03319.21
5.4.180.0500.06718.87
5.4.170.0470.04719.24
5.4.160.0530.06719.10
5.4.150.0530.06318.78
5.4.140.0570.04716.29
5.4.130.0530.04016.44
5.4.120.0570.05716.54
5.4.110.0430.04716.22
5.4.100.0500.04316.46
5.4.90.0570.06016.39
5.4.80.0600.05716.42
5.4.70.0570.04016.38
5.4.60.0500.04016.20
5.4.50.0530.04016.43
5.4.40.0430.04316.32
5.4.30.0530.05716.18
5.4.20.0470.04316.04
5.4.10.0400.04316.45
5.4.00.0470.03015.70
5.3.290.0500.07014.57
5.3.280.0500.07014.50
5.3.270.0570.07314.56
5.3.260.0430.07014.46
5.3.250.0630.05714.63
5.3.240.0470.03714.52
5.3.230.0530.06314.45
5.3.220.0470.05014.50
5.3.210.0700.05014.47
5.3.200.0530.04714.45
5.3.190.0400.04014.60
5.3.180.0500.03714.66
5.3.170.0630.05714.41
5.3.160.0430.04014.47
5.3.150.0470.05314.59
5.3.140.0570.06014.46
5.3.130.0400.05014.39
5.3.120.0570.04314.40
5.3.110.0530.06014.38
5.3.100.0500.06314.02
5.3.90.0500.06714.11
5.3.80.0370.04713.80
5.3.70.0470.04313.89
5.3.60.0470.06714.05
5.3.50.0600.05714.04
5.3.40.0400.04013.78
5.3.30.0470.06013.76
5.3.20.0330.03713.49
5.3.10.0530.04713.51
5.3.00.0430.03713.55
5.2.170.0400.05311.21
5.2.160.0370.02711.21
5.2.150.0400.05011.21
5.2.140.0400.05311.21
5.2.130.0370.05311.21
5.2.120.0300.04011.21
5.2.110.0430.05711.21
5.2.100.0470.04711.21
5.2.90.0370.05311.21
5.2.80.0400.04311.21
5.2.70.0400.02711.21
5.2.60.0730.04011.21
5.2.50.0500.04011.21
5.2.40.0430.04711.21
5.2.30.0370.05311.21
5.2.20.0430.04711.21
5.2.10.0330.04311.21
5.2.00.0330.05311.21
5.1.60.0270.04011.21
5.1.50.0330.03711.21
5.1.40.0270.03011.21
5.1.30.0430.04311.21
5.1.20.0370.03011.21
5.1.10.0330.03011.21
5.1.00.0330.04011.21
5.0.50.0230.04011.21
5.0.40.0200.05011.21
5.0.30.0200.04011.21
5.0.20.0230.03711.21
5.0.10.0200.01711.21
5.0.00.0170.03311.21
4.4.90.0170.01311.21
4.4.80.0170.03011.21
4.4.70.0200.03311.21
4.4.60.0300.03011.21
4.4.50.0200.03311.21
4.4.40.0130.03011.21
4.4.30.0200.01311.21
4.4.20.0170.02011.21
4.4.10.0270.01711.21
4.4.00.0200.05011.21
4.3.110.0200.03011.21
4.3.100.0230.01311.21
4.3.90.0200.01711.21
4.3.80.0130.05711.21
4.3.70.0230.00711.21
4.3.60.0100.02011.21
4.3.50.0170.02711.21
4.3.40.0200.04711.21
4.3.30.0100.03711.21
4.3.20.0100.03311.21
4.3.10.0100.03711.21
4.3.00.0100.03711.21

preferences:
56.78 ms | 401 KiB | 5 Q