3v4l.org

run code in 300+ PHP versions simultaneously
<?php $begin_time = strtotime("09:15"); $end_time = strtotime("14:00"); $end_date = new DateTime(date("Y-m-d H:i:s", $end_time)); $begin_date = new DateTime(date("Y-m-d H:i:s", $begin_time)); echo "begin_date is " . $begin_date->format('Y-m-d H:i:s') . " and end_date is " . $end_date->format('Y-m-d H:i:s') . "<br>"; $diff = $end_date->diff($begin_date); $diff_in_hours = $diff->h + $diff->i / 60; echo "The difference is " . $diff->h . " hours and " . $diff->i . " minutes, which is " . $diff_in_hours . " hours<br>";

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.0040.01318.68
8.3.50.0170.00422.16
8.3.40.0110.00418.80
8.3.30.0130.00719.04
8.3.20.0080.00020.29
8.3.10.0070.00023.54
8.3.00.0040.00419.38
8.2.180.0040.01418.66
8.2.170.0100.00722.96
8.2.160.0110.00420.39
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0050.00319.54
8.2.110.0100.00720.91
8.2.100.0100.00317.63
8.2.90.0040.00419.17
8.2.80.0040.00417.97
8.2.70.0090.00317.63
8.2.60.0050.00318.16
8.2.50.0030.00618.07
8.2.40.0090.00018.22
8.2.30.0030.00618.18
8.2.20.0000.00717.89
8.2.10.0040.00418.05
8.2.00.0080.00017.89
8.1.280.0120.00925.92
8.1.270.0040.00420.52
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0030.00623.92
8.1.230.0040.00819.16
8.1.220.0030.00517.79
8.1.210.0060.00318.77
8.1.200.0030.00617.48
8.1.190.0040.00417.38
8.1.180.0040.00418.10
8.1.170.0030.00618.62
8.1.160.0040.00422.11
8.1.150.0080.00019.05
8.1.140.0040.00417.58
8.1.130.0000.00717.81
8.1.120.0030.00517.63
8.1.110.0000.00717.67
8.1.100.0000.00717.67
8.1.90.0040.00417.55
8.1.80.0040.00417.67
8.1.70.0000.00717.61
8.1.60.0030.00617.73
8.1.50.0030.00617.59
8.1.40.0040.00417.56
8.1.30.0030.00617.82
8.1.20.0000.00917.66
8.1.10.0000.00817.63
8.1.00.0000.00817.71
8.0.300.0040.00418.77
8.0.290.0040.00416.88
8.0.280.0030.00418.57
8.0.270.0000.00717.28
8.0.260.0000.00817.41
8.0.250.0070.00017.04
8.0.240.0040.00417.05
8.0.230.0000.00717.05
8.0.220.0030.00316.99
8.0.210.0040.00417.03
8.0.200.0030.00317.05
8.0.190.0030.00617.16
8.0.180.0070.00017.18
8.0.170.0020.00517.11
8.0.160.0000.00817.07
8.0.150.0040.00416.97
8.0.140.0070.00017.03
8.0.130.0030.00313.49
8.0.120.0070.00016.92
8.0.110.0000.00717.11
8.0.100.0040.00416.95
8.0.90.0070.00017.14
8.0.80.0030.01817.02
8.0.70.0040.00416.97
8.0.60.0000.00816.88
8.0.50.0000.01016.99
8.0.30.0090.01117.14
8.0.20.0050.01417.40
8.0.10.0050.00316.98
8.0.00.0110.00916.91
7.4.330.0030.00315.05
7.4.320.0000.00716.61
7.4.300.0070.00016.66
7.4.290.0030.00316.74
7.4.280.0000.00716.68
7.4.270.0000.00716.69
7.4.260.0030.00316.73
7.4.250.0040.00416.47
7.4.240.0030.00416.65
7.4.230.0070.00016.77
7.4.220.0150.00416.72
7.4.210.0120.00616.66
7.4.200.0070.00016.61
7.4.160.0110.00816.72
7.4.150.0070.01017.40
7.4.140.0120.01017.86
7.4.130.0090.00816.63
7.4.120.0130.00516.73
7.4.110.0090.00916.45
7.4.100.0100.00716.77
7.4.90.0100.00716.55
7.4.80.0070.01119.39
7.4.70.0140.00716.72
7.4.60.0160.00016.74
7.4.50.0000.00716.68
7.4.40.0080.00816.71
7.4.30.0090.01216.51
7.4.00.0080.00814.99
7.3.330.0030.00313.24
7.3.320.0030.00313.24
7.3.310.0070.00016.35
7.3.300.0030.00316.43
7.3.290.0130.00616.45
7.3.280.0100.00716.45
7.3.270.0100.00617.40
7.3.260.0060.01216.51
7.3.250.0090.00916.60
7.3.240.0140.00316.56
7.3.230.0150.00716.52
7.3.210.0100.00716.52
7.3.200.0100.00719.39
7.3.190.0070.01016.80
7.3.180.0030.01416.68
7.3.170.0130.00316.73
7.3.160.0090.00616.46
7.3.120.0030.01614.95
7.3.110.0090.00614.98
7.3.100.0100.01015.11
7.3.90.0110.00315.00
7.3.80.0060.00314.98
7.3.70.0050.00314.89
7.3.60.0070.00714.91
7.3.50.0030.00714.82
7.3.40.0000.01514.89
7.3.30.0000.01215.11
7.3.20.0060.00316.93
7.3.10.0060.00916.49
7.3.00.0060.00616.43
7.2.330.0160.00016.75
7.2.320.0000.01916.79
7.2.310.0070.01916.73
7.2.300.0100.00716.84
7.2.290.0220.00016.93
7.2.250.0100.01015.18
7.2.240.0100.00615.49
7.2.230.0110.00415.24
7.2.220.0080.00815.28
7.2.210.0070.00315.22
7.2.200.0060.00915.25
7.2.190.0090.00615.20
7.2.180.0000.01315.20
7.2.170.0170.00015.39
7.2.160.0030.00715.06
7.2.150.0060.00917.24
7.2.140.0030.01217.17
7.2.130.0030.01016.92
7.2.120.0030.01317.07
7.2.110.0030.00716.83
7.2.100.0060.01016.84
7.2.90.0100.00717.17
7.2.80.0060.00917.21
7.2.70.0030.00716.96
7.2.60.0030.00917.19
7.2.50.0070.00717.09
7.2.40.0040.00816.99
7.2.30.0110.00317.23
7.2.20.0030.01017.04
7.2.10.0040.00817.24
7.2.00.0100.00518.46
7.1.330.0100.00716.07
7.1.320.0060.01015.70
7.1.310.0040.01216.00
7.1.300.0040.01116.05
7.1.290.0090.00015.92
7.1.280.0030.00916.08
7.1.270.0070.00715.91
7.1.260.0030.01015.97
7.1.250.0060.00915.67
7.1.240.0060.00915.69
7.1.230.0000.01016.00
7.1.220.0070.00315.92
7.1.210.0090.00016.03
7.1.200.0030.01016.08
7.1.190.0000.01416.00
7.1.180.0000.01316.01
7.1.170.0040.00916.05
7.1.160.0070.00715.81
7.1.150.0080.00415.98
7.1.140.0100.00716.05
7.1.130.0080.00615.70
7.1.120.0050.00515.57
7.1.110.0030.00615.64
7.1.100.0060.00517.07
7.1.90.0060.00816.16
7.1.80.0080.00816.13
7.1.70.0010.00816.74
7.1.60.0070.01317.66
7.1.50.0120.00616.60
7.1.40.0040.01115.82
7.1.30.0030.00915.83
7.1.20.0070.00715.99
7.1.10.0090.00615.88
7.1.00.0070.03919.10
7.0.330.0070.00415.20
7.0.320.0040.00415.17
7.0.310.0040.01115.57
7.0.300.0100.00315.50
7.0.290.0070.00715.56
7.0.280.0070.00415.50
7.0.270.0070.00715.66
7.0.260.0040.01115.26
7.0.250.0090.00315.61
7.0.240.0000.01415.41
7.0.230.0070.00715.71
7.0.220.0060.00315.38
7.0.210.0070.00715.42
7.0.200.0020.01116.05
7.0.190.0120.00315.20
7.0.180.0060.00615.50
7.0.170.0070.00715.60
7.0.160.0070.00715.63
7.0.150.0040.00815.77
7.0.140.0030.04318.80
7.0.130.0070.00315.32
7.0.120.0100.00315.46
7.0.110.0130.00015.69
7.0.100.0290.04817.87
7.0.90.0290.03717.78
7.0.80.0270.02317.77
7.0.70.0280.03817.81
7.0.60.0220.04617.82
7.0.50.0320.03717.95
7.0.40.0000.03016.92
7.0.30.0030.03816.90
7.0.20.0090.04216.87
7.0.10.0100.04016.83
7.0.00.0040.04416.81
5.6.400.0040.00814.41
5.6.390.0000.01314.66
5.6.380.0060.00614.38
5.6.370.0030.01014.79
5.6.360.0060.00914.41
5.6.350.0030.00714.45
5.6.340.0050.00314.48
5.6.330.0040.00814.41
5.6.320.0100.00714.39
5.6.310.0050.00814.64
5.6.300.0000.01514.51
5.6.290.0060.00914.25
5.6.280.0020.04417.75
5.6.270.0100.00314.70
5.6.260.0090.00614.51
5.6.250.0070.04817.70
5.6.240.0100.02417.48
5.6.230.0020.02617.52
5.6.220.0080.04017.61
5.6.210.0030.03017.48
5.6.200.0110.04117.66
5.6.190.0050.04817.67
5.6.180.0080.04317.85
5.6.170.0050.03817.76
5.6.160.0080.04217.74
5.6.150.0080.04417.90
5.6.140.0080.04517.68
5.6.130.0060.03017.83
5.6.120.0120.04017.65
5.6.110.0020.04917.88
5.6.100.0070.04817.78
5.6.90.0050.03117.73
5.6.80.0030.02917.45
5.6.70.0070.04217.34
5.6.60.0080.02517.41
5.6.50.0080.04517.54
5.6.40.0100.04017.33
5.6.30.0080.04217.39
5.6.20.0090.04217.41
5.6.10.0100.03717.37
5.6.00.0050.03017.38
5.5.380.0040.04517.50
5.5.370.0080.04317.54
5.5.360.0050.04217.43
5.5.350.0060.04417.45
5.5.340.0030.03517.70
5.5.330.0070.02317.69
5.5.320.0070.04517.66
5.5.310.0020.04717.74
5.5.300.0060.03617.53
5.5.290.0020.04417.66
5.5.280.0100.04517.46
5.5.270.0070.03317.56
5.5.260.0030.03317.60
5.5.250.0100.04017.45
5.5.240.0170.03417.28
5.5.230.0080.04217.34
5.5.220.0090.02117.03
5.5.210.0070.04117.25
5.5.200.0070.04417.25
5.5.190.0090.02517.20
5.5.180.0120.04517.20
5.5.170.0030.01414.22
5.5.160.0050.04317.23
5.5.150.0070.03617.22
5.5.140.0060.04317.22
5.5.130.0060.02617.31
5.5.120.0130.03917.15
5.5.110.0050.03217.31
5.5.100.0080.04317.20
5.5.90.0050.04117.10
5.5.80.0090.03117.14
5.5.70.0110.04217.08
5.5.60.0080.03817.13
5.5.50.0060.02817.13
5.5.40.0050.04117.30
5.5.30.0090.04217.25
5.5.20.0120.03417.19
5.5.10.0080.02317.32
5.5.00.0050.03317.13
5.4.450.0050.04415.28
5.4.440.0060.04515.24
5.4.430.0070.03315.13
5.4.420.0070.03515.26
5.4.410.0020.04915.26
5.4.400.0020.04514.90
5.4.390.0070.02715.04
5.4.380.0080.03714.99
5.4.370.0020.02715.08
5.4.360.0130.03414.97
5.4.350.0090.02715.06
5.4.340.0110.03714.89
5.4.330.0070.00311.07
5.4.320.0080.04115.02
5.4.310.0100.03515.12
5.4.300.0050.03514.94
5.4.290.0080.02514.99
5.4.280.0030.03014.82
5.4.270.0020.04314.92
5.4.260.0050.04114.98
5.4.250.0030.03914.90
5.4.240.0110.03614.96
5.4.230.0070.04314.97
5.4.220.0110.03615.16
5.4.210.0030.03715.00
5.4.200.0060.02514.87
5.4.190.0030.02814.96
5.4.180.0050.03914.97
5.4.170.0090.03714.99
5.4.160.0020.04315.01
5.4.150.0040.03015.10
5.4.140.0050.03513.65
5.4.130.0070.03713.50
5.4.120.0050.03813.76
5.4.110.0020.04013.68
5.4.100.0030.03213.53
5.4.90.0090.03913.60
5.4.80.0060.03913.75
5.4.70.0060.03513.54
5.4.60.0070.03913.71
5.4.50.0030.04213.53
5.4.40.0010.04113.59
5.4.30.0020.03113.65
5.4.20.0070.02613.61
5.4.10.0030.03013.71
5.4.00.0050.03213.33
5.3.290.0000.06314.50
5.3.280.0030.05014.59
5.3.270.0070.08014.54
5.3.260.0030.06314.46
5.3.250.0070.04314.46
5.3.240.0030.07314.60
5.3.230.0000.07714.42
5.3.220.0070.07714.43
5.3.210.0100.04014.43
5.3.200.0100.06714.57
5.3.190.0030.07714.55
5.3.180.0030.04314.50
5.3.170.0070.07714.57
5.3.160.0100.07014.50
5.3.150.0030.07314.42
5.3.140.0100.07714.54
5.3.130.0130.07014.40
5.3.120.0070.07714.38
5.3.110.0130.06014.36
5.3.100.0070.07714.00
5.3.90.0170.03013.87
5.3.80.0030.07714.01
5.3.70.0030.04314.00
5.3.60.0130.07013.85
5.3.50.0070.07313.89
5.3.40.0070.07313.90
5.3.30.0000.05013.90
5.3.20.0030.06313.55
5.3.10.0030.06313.64
5.3.00.0030.04313.58
5.2.170.0070.06011.09
5.2.160.0070.06011.16
5.2.150.0070.06711.18
5.2.140.0230.04311.10
5.2.130.0130.05311.09
5.2.120.0100.04311.12
5.2.110.0100.05711.05
5.2.100.0030.03710.98
5.2.90.0070.06011.08
5.2.80.0000.07310.92
5.2.70.0030.06311.16
5.2.60.0100.05711.12
5.2.50.0030.06011.07
5.2.40.0070.04311.02
5.2.30.0000.06010.97
5.2.20.0130.03310.95
5.2.10.0030.06010.71
5.2.00.0030.05310.64
5.1.60.0070.05010.46
5.1.50.0070.04710.46
5.1.40.0030.05710.46
5.1.30.0070.02710.46
5.1.20.0070.05010.46
5.1.10.0100.04710.46
5.1.00.0000.06010.46
5.0.50.0000.03310.46
5.0.40.0070.04310.46
5.0.30.0030.06310.46
5.0.20.0000.03310.46
5.0.10.0030.04310.46
5.0.00.0070.06310.46
4.4.90.0000.03710.46
4.4.80.0070.01310.46
4.4.70.0030.03710.46
4.4.60.0100.02710.46
4.4.50.0000.03710.46
4.4.40.0030.02710.46
4.4.30.0030.02310.46
4.4.20.0030.03310.46
4.4.10.0000.03710.46
4.4.00.0000.04710.46
4.3.110.0000.04010.46
4.3.100.0100.02710.46
4.3.90.0000.03710.46
4.3.80.0030.05010.46
4.3.70.0000.03710.46
4.3.60.0000.02310.46
4.3.50.0130.02710.46
4.3.40.0000.03010.46
4.3.30.0000.04010.46
4.3.20.0030.02710.46
4.3.10.0000.03310.46
4.3.00.0030.03010.46

preferences:
74.34 ms | 401 KiB | 5 Q