3v4l.org

run code in 300+ PHP versions simultaneously
<?php function IEEE64Float($strHex) { // Thanx Chung Leong https://bytes.com/topic/php/answers/9237-hex-floating-point#post38346 $hex = sscanf($strHex, "%02x%02x%02x%02x%02x%02x%02x%02x"); $hex = array_reverse($hex); $bin = implode('', array_map('chr', $hex)); $array = unpack("dnum", $bin); return $array['num']; } function UnMicrosoftify($fDateValue = 0, $iDateBase = 1900) { //http://stackoverflow.com/q/26589406/795054 if ($iDateBase == 1900) { $iMyDateBase = 25569; //Adjust for the fictional 29-Feb-1900 (Day 60) if ($fDateValue < 60) { --$iMyDateBase; } } else { $iMyDateBase = 24107; } // Perform conversion if ($fDateValue >= 1) { $utcDays = $fDateValue - $iMyDateBase; $iReturnValue = round($utcDays * 86400); if (($iReturnValue <= PHP_INT_MAX) && ($iReturnValue >= -PHP_INT_MAX)) { $iReturnValue = (integer) $iReturnValue; } } else { $hours = round($fDateValue * 24); $mins = round($fDateValue * 1440) - round($hours * 60); $secs = round($fDateValue * 86400) - round($hours * 3600) - round($mins * 60); $iReturnValue = (integer) gmmktime($hours, $mins, $secs); } return $iReturnValue; } function PGODdate($strhex) { return date('Y-m-d', UnMicrosoftify(IEEE64Float($strhex))); } echo PGODdate('FE37E43C8800759C');

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.01117.00
8.3.50.0350.00422.07
8.3.40.0120.00619.27
8.3.30.0110.00319.10
8.3.20.0040.00420.39
8.3.10.0000.00723.90
8.3.00.0000.00820.10
8.2.180.0040.01816.75
8.2.170.0070.01422.96
8.2.160.0110.00320.60
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0040.00421.29
8.2.120.0000.00826.35
8.2.110.0150.00620.71
8.2.100.0080.00318.30
8.2.90.0050.00319.55
8.2.80.0050.00317.97
8.2.70.0090.00018.00
8.2.60.0040.00718.05
8.2.50.0040.00418.07
8.2.40.0000.00920.85
8.2.30.0040.00420.88
8.2.20.0000.00718.12
8.2.10.0050.00218.29
8.2.00.0000.00718.30
8.1.280.0070.01025.92
8.1.270.0070.00720.50
8.1.260.0000.00728.09
8.1.250.0080.00028.09
8.1.240.0100.01024.13
8.1.230.0070.00318.08
8.1.220.0000.00818.04
8.1.210.0050.00318.77
8.1.200.0060.00317.60
8.1.190.0030.00517.38
8.1.180.0030.00618.10
8.1.170.0040.00418.91
8.1.160.0040.00421.04
8.1.150.0040.00419.15
8.1.140.0000.00819.81
8.1.130.0070.00017.92
8.1.120.0040.00417.55
8.1.110.0000.00817.70
8.1.100.0040.00417.71
8.1.90.0040.00417.68
8.1.80.0070.00017.67
8.1.70.0040.00417.67
8.1.60.0040.00417.86
8.1.50.0050.00317.77
8.1.40.0000.00917.63
8.1.30.0050.00317.93
8.1.20.0040.00417.72
8.1.10.0000.00817.83
8.1.00.0000.00717.74
8.0.300.0030.00618.77
8.0.290.0050.00517.13
8.0.280.0030.00318.68
8.0.270.0030.00317.50
8.0.260.0000.00617.48
8.0.250.0060.00017.22
8.0.240.0030.00317.28
8.0.230.0070.00017.27
8.0.220.0000.00717.02
8.0.210.0020.00517.09
8.0.200.0000.00717.07
8.0.190.0070.00017.24
8.0.180.0000.00917.16
8.0.170.0000.00717.25
8.0.160.0070.00017.25
8.0.150.0080.00317.23
8.0.140.0040.00417.12
8.0.130.0030.00313.56
8.0.120.0030.00517.04
8.0.110.0060.00317.10
8.0.100.0050.00317.15
8.0.90.0040.00416.98
8.0.80.0070.01017.24
8.0.70.0040.00417.16
8.0.60.0030.00517.33
8.0.50.0000.00817.36
8.0.30.0050.01317.35
8.0.20.0150.00717.50
8.0.10.0000.00817.26
8.0.00.0080.01017.07
7.4.330.0020.00217.08
7.4.320.0000.00716.82
7.4.300.0070.00016.91
7.4.290.0000.00716.76
7.4.280.0030.00716.77
7.4.270.0040.00416.85
7.4.260.0070.00016.91
7.4.250.0000.00816.74
7.4.240.0020.00516.84
7.4.230.0070.00016.92
7.4.220.0110.01416.73
7.4.210.0090.00616.88
7.4.200.0030.00316.91
7.4.160.0090.00616.99
7.4.150.0100.01417.40
7.4.140.0100.00817.86
7.4.130.0090.00916.92
7.4.120.0070.01116.82
7.4.110.0070.01116.87
7.4.100.0180.00316.79
7.4.90.0130.01016.96
7.4.80.0060.01619.39
7.4.70.0030.01416.93
7.4.60.0000.01716.72
7.4.50.0000.01516.88
7.4.40.0100.00616.97
7.4.30.0170.00416.89
7.4.00.0070.00915.24
7.3.330.0000.00613.50
7.3.320.0000.00513.66
7.3.310.0080.00016.76
7.3.300.0000.00716.69
7.3.290.0060.00916.64
7.3.280.0070.01016.62
7.3.270.0120.00617.40
7.3.260.0070.01116.86
7.3.240.0100.00716.78
7.3.230.0190.00016.95
7.3.210.0070.01616.88
7.3.200.0060.01016.81
7.3.190.0100.00816.77
7.3.180.0100.00716.93
7.3.170.0100.00616.85
7.3.160.0000.01816.83
7.3.120.0030.01615.32
7.3.110.0060.00915.05
7.3.100.0070.01315.55
7.3.90.0040.01215.46
7.3.80.0000.01715.45
7.3.70.0090.00615.23
7.3.60.0130.00315.38
7.3.50.0100.00615.28
7.3.40.0040.00815.33
7.3.30.0080.00415.14
7.3.20.0040.00717.12
7.3.10.0030.01417.04
7.3.00.0100.00616.83
7.2.330.0100.00716.72
7.2.320.0090.01416.71
7.2.310.0070.01017.04
7.2.300.0090.00916.79
7.2.290.0070.01016.89
7.2.250.0040.01515.82
7.2.240.0100.01015.67
7.2.230.0000.01615.89
7.2.220.0100.01015.57
7.2.210.0070.00715.40
7.2.200.0100.00615.45
7.2.190.0120.00315.51
7.2.180.0030.01015.42
7.2.170.0000.01415.66
7.2.160.0040.01115.51
7.2.150.0060.00917.41
7.2.140.0080.00817.35
7.2.130.0090.00717.53
7.2.120.0050.01017.32
7.2.110.0110.00617.41
7.2.100.0060.01117.28
7.2.90.0070.00717.46
7.2.80.0050.00917.47
7.2.70.0080.01017.38
7.2.60.0040.00917.23
7.2.50.0050.00817.42
7.2.40.0100.00817.16
7.2.30.0100.00817.27
7.2.20.0070.00917.28
7.2.10.0110.00917.35
7.2.00.0050.00818.08
7.1.330.0100.00716.40
7.1.320.0070.00416.45
7.1.310.0090.00616.49
7.1.300.0060.00916.14
7.1.290.0090.00615.89
7.1.280.0080.00316.29
7.1.270.0000.00816.24
7.1.260.0090.00616.31
7.1.250.0080.00816.36
7.1.240.0080.00815.96
7.1.230.0030.00816.23
7.1.220.0060.00816.24
7.1.210.0060.01016.20
7.1.200.0080.00816.13
7.1.190.0100.00516.10
7.1.180.0050.00716.37
7.1.170.0090.00516.18
7.1.160.0150.00215.97
7.1.150.0080.00816.11
7.1.140.0070.00616.32
7.1.130.0080.00816.26
7.1.120.0080.00816.31
7.1.110.0050.00616.02
7.1.100.0070.00917.07
7.1.90.0060.01116.11
7.1.80.0100.00616.20
7.1.70.0070.00716.73
7.1.60.0060.01217.23
7.1.50.0080.01016.68
7.1.40.0090.00616.36
7.1.30.0060.01216.14
7.1.20.0070.01016.12
7.1.10.0100.00516.27
7.1.00.0070.03018.33
7.0.330.0040.01215.62
7.0.320.0060.00815.82
7.0.310.0080.00815.51
7.0.300.0130.00215.82
7.0.290.0070.00515.90
7.0.280.0060.00515.78
7.0.270.0050.01015.83
7.0.260.0090.00715.65
7.0.250.0070.00715.79
7.0.240.0070.00715.81
7.0.230.0110.00315.95
7.0.220.0100.00515.97
7.0.210.0060.00815.69
7.0.200.0020.01016.21
7.0.190.0070.00515.70
7.0.180.0090.00915.84
7.0.170.0090.00715.95
7.0.160.0130.00315.82
7.0.150.0030.01215.76
7.0.140.0070.00715.67
7.0.130.0100.00615.89
7.0.120.0050.00815.67
7.0.110.0050.01215.82
7.0.100.0050.00915.73
7.0.90.0080.00515.64
7.0.80.0120.02017.31
7.0.70.0090.02117.26
7.0.60.0170.02817.24
7.0.50.0110.01517.51
7.0.40.0040.01815.97
7.0.30.0050.01716.03
7.0.20.0070.01816.03
7.0.10.0090.02916.05
7.0.00.0070.01915.98
5.6.400.0130.00314.75
5.6.390.0030.01014.72
5.6.380.0070.00714.79
5.6.370.0090.00914.77
5.6.360.0070.01115.00
5.6.350.0090.00814.60
5.6.340.0080.00714.80
5.6.330.0060.00914.78
5.6.320.0070.00814.83
5.6.310.0080.01014.81
5.6.300.0060.00614.88
5.6.290.0080.00714.64
5.6.280.0060.01917.04
5.6.270.0020.01214.78
5.6.260.0040.01014.98
5.6.250.0060.01114.91
5.6.240.0110.00315.04
5.6.230.0040.02216.80
5.6.220.0040.01916.82
5.6.210.0060.02216.88
5.6.200.0090.01917.03
5.6.190.0070.01816.94
5.6.180.0070.01716.91
5.6.170.0090.01716.84
5.6.160.0080.02217.06
5.6.150.0080.02116.96
5.6.140.0040.03616.92
5.6.130.0070.03116.98
5.6.120.0080.03117.09
5.6.110.0070.03517.08
5.6.100.0070.03416.96
5.6.90.0030.02516.97
5.6.80.0100.02816.79
5.6.70.0040.02116.60
5.6.60.0050.03016.73
5.6.50.0070.03416.69
5.6.40.0110.02916.67
5.6.30.0090.02816.83
5.6.20.0060.02116.67
5.6.10.0100.02916.61
5.6.00.0110.01716.70
5.5.380.0090.00413.14
5.5.370.0060.02715.79
5.5.360.0060.01515.67
5.5.350.0100.02015.87
5.5.340.0080.02015.90
5.5.330.0090.01515.94
5.5.320.0080.01915.92
5.5.310.0060.02115.96
5.5.300.0070.03016.02
5.5.290.0030.03715.83
5.5.280.0110.02515.98
5.5.270.0050.03615.95
5.5.260.0030.03715.69
5.5.250.0070.02615.59
5.5.240.0080.03115.64
5.5.230.0090.02915.69
5.5.220.0070.01915.57
5.5.210.0110.02615.56
5.5.200.0070.02315.71
5.5.190.0050.03015.66
5.5.180.0050.02215.68
5.5.170.0050.00813.08
5.5.160.0070.03115.59
5.5.150.0100.02615.62
5.5.140.0070.01715.49
5.5.130.0070.01715.59
5.5.120.0040.02115.65
5.5.110.0080.02915.49
5.5.100.0030.03415.54
5.5.90.0050.02015.69
5.5.80.0080.02715.54
5.5.70.0010.03715.55
5.5.60.0090.02915.59
5.5.50.0060.03015.44
5.5.40.0010.03415.43
5.5.30.0050.03115.60
5.5.20.0080.03015.61
5.5.10.0100.02215.71
5.5.00.0050.03015.47

preferences:
54.3 ms | 401 KiB | 5 Q