3v4l.org

run code in 300+ PHP versions simultaneously
<?php $diff = strtotime('2015-04-13T13:19:03+01:00')- strtotime('2015-04-14T10:55:28+01:00'); function secs_to_h($secs) { $units = array( "week" => 7*24*3600, "day" => 24*3600, "hour" => 3600, "minute" => 60, "second" => 1, ); // specifically handle zero if ( $secs == 0 ) return "0 seconds"; $s = ""; foreach ( $units as $name => $divisor ) { if ( $quot = intval($secs / $divisor) ) { $s .= "$quot $name"; $s .= (abs($quot) > 1 ? "s" : "") . ", "; $secs -= $quot * $divisor; } } return substr($s, 0, -2); } var_dump($diff, gmdate("m d H:i:s",$diff), secs_to_h($diff));

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.0100.00316.73
8.3.50.0070.00718.33
8.3.40.0110.00719.06
8.3.30.0030.01019.27
8.3.20.0080.00020.21
8.3.10.0040.00421.73
8.3.00.0080.00020.75
8.2.180.0100.01016.63
8.2.170.0110.00422.96
8.2.160.0030.01020.35
8.2.150.0090.00024.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0000.00819.79
8.2.110.0060.00320.54
8.2.100.0040.00819.83
8.2.90.0030.00518.34
8.2.80.0000.00817.97
8.2.70.0030.00617.75
8.2.60.0040.00417.93
8.2.50.0050.00318.07
8.2.40.0000.00718.22
8.2.30.0040.00418.13
8.2.20.0050.00317.86
8.2.10.0050.00318.19
8.2.00.0000.00817.79
8.1.280.0040.01125.92
8.1.270.0080.00020.86
8.1.260.0000.00726.35
8.1.250.0030.00528.09
8.1.240.0030.00622.20
8.1.230.0070.00420.93
8.1.220.0000.00817.79
8.1.210.0040.00418.91
8.1.200.0050.00517.63
8.1.190.0000.00817.47
8.1.180.0100.00018.10
8.1.170.0090.00018.78
8.1.160.0040.00422.01
8.1.150.0000.00719.05
8.1.140.0080.00019.36
8.1.130.0000.00817.69
8.1.120.0040.00417.65
8.1.110.0040.00417.55
8.1.100.0030.00517.64
8.1.90.0050.00217.66
8.1.80.0040.00417.65
8.1.70.0070.00017.67
8.1.60.0040.00417.71
8.1.50.0060.00317.62
8.1.40.0040.00817.61
8.1.30.0000.00917.65
8.1.20.0040.00417.69
8.1.10.0050.00317.48
8.1.00.0080.00017.66
8.0.300.0040.00420.09
8.0.290.0000.00716.75
8.0.280.0000.00718.45
8.0.270.0050.00217.34
8.0.260.0030.00316.89
8.0.250.0000.00717.18
8.0.240.0000.00817.04
8.0.230.0030.00517.05
8.0.220.0040.00417.12
8.0.210.0030.00317.10
8.0.200.0040.00417.16
8.0.190.0040.00417.12
8.0.180.0050.00317.14
8.0.170.0080.00017.11
8.0.160.0030.00617.07
8.0.150.0070.00017.04
8.0.140.0040.00417.01
8.0.130.0050.00213.54
8.0.120.0040.00416.99
8.0.110.0040.00417.09
8.0.100.0080.00017.03
8.0.90.0000.00716.92
8.0.80.0070.00717.11
8.0.70.0050.00316.95
8.0.60.0030.00516.98
8.0.50.0080.00017.05
8.0.30.0110.01117.05
8.0.20.0040.01617.40
8.0.10.0040.00417.06
8.0.00.0070.01217.01
7.4.330.0000.00615.03
7.4.320.0030.00316.76
7.4.300.0030.00316.54
7.4.290.0070.00016.65
7.4.280.0070.00016.74
7.4.270.0070.00016.64
7.4.260.0000.00716.63
7.4.250.0000.00716.65
7.4.240.0020.00516.72
7.4.230.0030.00316.53
7.4.220.0130.00616.60
7.4.210.0040.01116.71
7.4.200.0040.00316.63
7.4.160.0080.00816.61
7.4.150.0070.01117.40
7.4.140.0050.01117.86
7.4.130.0110.00616.65
7.4.120.0100.00716.69
7.4.110.0100.00716.75
7.4.100.0040.01416.69
7.4.90.0100.00616.74
7.4.80.0070.01416.68
7.4.70.0070.01116.60
7.4.60.0030.01316.70
7.4.50.0060.00316.71
7.4.40.0110.00716.86
7.4.30.0100.01016.73
7.4.00.0100.00714.72
7.3.330.0060.00013.43
7.3.320.0110.00413.47
7.3.310.0000.00716.49
7.3.300.0030.00516.37
7.3.290.0070.00016.46
7.3.280.0060.01316.52
7.3.270.0110.01117.40
7.3.260.0150.00316.53
7.3.250.0150.00416.71
7.3.240.0090.00916.61
7.3.230.0130.01016.46
7.3.210.0140.00316.72
7.3.200.0100.01219.39
7.3.190.0130.01016.78
7.3.180.0160.00016.72
7.3.170.0030.01416.86
7.3.160.0100.00616.49
7.3.120.0110.00615.13
7.3.110.0030.01415.28
7.3.100.0090.00615.16
7.3.90.0040.01215.10
7.3.80.0000.01115.17
7.3.70.0100.00614.72
7.3.60.0100.00714.82
7.3.50.0000.01115.12
7.3.40.0120.00314.70
7.3.30.0070.01115.16
7.3.20.0120.00416.77
7.3.10.0100.00317.07
7.3.00.0100.00316.68
7.2.330.0030.01316.60
7.2.320.0060.01116.73
7.2.310.0120.00916.94
7.2.300.0090.00916.93
7.2.290.0060.01016.79
7.2.250.0060.01515.34
7.2.240.0110.00814.97
7.2.230.0030.01315.09
7.2.220.0000.00914.95
7.2.210.0100.00715.14
7.2.200.0030.01015.14
7.2.190.0180.00015.29
7.2.180.0070.00715.13
7.2.170.0100.00315.20
7.2.00.0030.01219.57
7.1.330.0100.00316.04
7.1.320.0080.00315.70
7.1.310.0030.01015.86
7.1.300.0110.00415.70
7.1.290.0130.00016.06
7.1.280.0080.00515.79
7.1.270.0030.01016.13
7.1.260.0060.00615.97
7.1.100.0070.00318.11
7.1.70.0090.00017.52
7.1.60.0100.01419.46
7.1.50.0040.00716.95
7.1.00.0030.07722.36
7.0.200.0730.00414.67
7.0.140.0000.05022.04
7.0.60.0030.06020.01
7.0.50.0100.07017.88
7.0.40.0130.08320.32
7.0.30.0270.04720.24
7.0.20.0170.04320.16
7.0.10.0070.07020.09
7.0.00.0070.04720.13
5.6.280.0030.07020.82
5.6.210.0130.08020.47
5.6.200.0030.08718.19
5.6.190.0070.05320.61
5.6.180.0400.04720.46
5.6.170.0270.05320.54
5.6.160.0100.08320.44
5.6.150.0100.04718.12
5.6.140.0070.08018.11
5.6.130.0070.08318.19
5.6.120.0070.04321.12
5.6.110.0100.03321.00
5.6.100.0070.04020.99
5.6.90.0030.04021.00
5.6.80.0070.09020.48
5.5.350.0270.03720.35
5.5.340.0030.06018.07
5.5.330.0000.04320.40
5.5.320.0070.08020.34
5.5.310.0130.04020.25
5.5.300.0030.04017.95
5.5.290.0000.04317.92
5.5.280.0070.08720.90
5.5.270.0000.05720.75
5.5.260.0070.05020.87
5.5.250.0100.07720.59
5.5.240.0030.04320.27
5.4.450.0600.06019.61
5.4.440.0900.05719.59
5.4.430.0870.06019.16
5.4.420.0930.05019.38
5.4.410.1030.05019.18
5.4.400.0930.06019.38
5.4.390.0400.05718.61
5.4.380.0330.06018.79
5.4.370.0070.07018.78
5.4.360.0200.05718.72
5.4.350.0300.04718.57
5.4.340.0170.08018.77
5.4.320.0370.04718.75
5.4.310.0170.06318.80
5.4.300.0400.04318.66
5.4.290.0270.06018.63
5.4.280.0370.05018.49
5.4.270.0230.05718.68
5.4.260.0330.06018.69
5.4.250.0230.05318.60
5.4.240.0230.05318.71
5.4.230.0200.05318.77
5.4.220.0200.05718.54
5.4.210.0370.04318.73
5.4.200.0330.05016.66
5.4.190.0270.05018.71
5.4.180.0270.05018.57
5.4.170.0270.05718.68
5.4.160.0300.05018.72
5.4.150.0230.07018.76
5.4.140.0270.05316.46
5.4.130.0200.05016.28
5.4.120.0300.04716.20
5.4.110.0230.04716.30
5.4.100.0130.05316.45
5.4.90.0070.06716.35
5.4.80.0330.05316.21
5.4.70.0270.04716.39
5.4.60.0230.05316.35
5.4.50.0300.04316.40
5.4.40.0230.04716.41
5.4.30.0170.05016.25
5.4.20.0370.03316.18
5.4.10.0170.05316.14
5.4.00.0170.05315.71
5.3.290.0270.06314.87
5.3.280.0300.05014.65
5.3.270.0200.06314.74
5.3.260.0270.05714.58
5.3.250.0270.04714.61
5.3.240.0200.05714.73
5.3.230.0200.05314.77
5.3.220.0100.06014.58
5.3.210.0300.05014.55
5.3.200.0200.05014.59
5.3.190.0300.04314.79
5.3.180.0100.06314.59
5.3.170.0400.06014.74
5.3.160.0370.06314.56
5.3.150.0400.07014.63
5.3.140.0330.07314.72
5.3.130.0330.06014.56
5.3.120.0370.06014.65
5.3.110.0230.06014.54
5.3.100.0130.06014.05
5.3.90.0100.06314.08
5.3.80.0300.06014.14
5.3.70.0330.07014.14
5.3.60.0330.05014.10
5.3.50.0200.06013.97
5.3.40.0330.04714.07
5.3.30.0270.04714.12
5.3.20.0170.05013.77
5.3.10.0400.05313.70
5.3.00.0200.08013.68
5.2.170.0170.05011.26
5.2.160.0230.05311.26
5.2.150.0300.05011.21
5.2.140.0300.03711.29
5.2.130.0400.04311.21
5.2.120.0130.04711.18
5.2.110.0170.04711.23
5.2.100.0400.04011.15
5.2.90.0200.04311.21
5.2.80.0200.04011.32
5.2.70.0170.04311.22
5.2.60.0130.05011.26
5.2.50.0230.04011.07
5.2.40.0270.03711.07
5.2.30.0230.04010.99
5.2.20.0230.03311.00
5.2.10.0130.04710.88
5.2.00.0130.04010.92
5.1.60.0130.04010.18
5.1.50.0330.04310.04
5.1.40.0100.04010.02
5.1.30.0170.05010.39
5.1.20.0070.05010.39
5.1.10.0130.04310.16
5.1.00.0200.04010.16
5.0.50.0130.0308.64
5.0.40.0070.0308.55
5.0.30.0130.0478.32
5.0.20.0170.0338.25
5.0.10.0070.0408.21
5.0.00.0170.0508.36
4.4.90.0130.0175.91
4.4.80.0100.0205.98
4.4.70.0070.0235.95
4.4.60.0100.0175.94
4.4.50.0100.0205.98
4.4.40.0130.0305.96
4.4.30.0130.0205.94
4.4.20.0100.0235.95
4.4.10.0030.0306.00
4.4.00.0030.0436.04
4.3.110.0100.0235.86
4.3.100.0130.0175.82
4.3.90.0100.0205.82
4.3.80.0070.0335.90
4.3.70.0100.0305.90
4.3.60.0100.0205.93
4.3.50.0070.0235.89
4.3.40.0130.0275.81
4.3.30.0000.0275.32
4.3.20.0030.0205.32
4.3.10.0030.0205.32
4.3.00.0130.03314.57

preferences:
95.64 ms | 400 KiB | 5 Q