3v4l.org

run code in 300+ PHP versions simultaneously
<?php $chat_session = "1449675645"; $ts = "15:40:50"; // 5 segundos de diferencia $datetime = date('Y-m-d', $chat_session) . " " . $ts; //date_default_timezone_set('GMT'); $datetime_unix = strtotime($datetime); $segundos = (int)$datetime_unix - (int)$chat_session; echo "inicio : $chat_session\n"; echo "respuesta : $datetime_unix\n"; echo "diferencia seg : $segundos";

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.01118.30
8.3.50.0120.00621.19
8.3.40.0190.00318.76
8.3.30.0100.00318.79
8.3.20.0040.00420.34
8.3.10.0000.00823.65
8.3.00.0040.00419.84
8.2.180.0150.00616.63
8.2.170.0120.00922.96
8.2.160.0100.00320.51
8.2.150.0050.00224.18
8.2.140.0060.00324.66
8.2.130.0080.00019.10
8.2.120.0140.00026.35
8.2.110.0030.00620.46
8.2.100.0040.00817.78
8.2.90.0060.00319.22
8.2.80.0040.00417.97
8.2.70.0090.00017.63
8.2.60.0080.00017.80
8.2.50.0030.00618.07
8.2.40.0040.00422.37
8.2.30.0040.00420.61
8.2.20.0040.00417.80
8.2.10.0050.00318.11
8.2.00.0040.00418.08
8.1.280.0080.00625.92
8.1.270.0030.00620.22
8.1.260.0000.00728.09
8.1.250.0020.00528.09
8.1.240.0060.00322.04
8.1.230.0080.00320.97
8.1.220.0040.00417.91
8.1.210.0040.00418.77
8.1.200.0000.00917.47
8.1.190.0050.00317.35
8.1.180.0050.00218.10
8.1.170.0000.00818.60
8.1.160.0030.00520.78
8.1.150.0000.00718.88
8.1.140.0040.00419.63
8.1.130.0030.00317.75
8.1.120.0050.00317.56
8.1.110.0070.00017.71
8.1.100.0070.00317.51
8.1.90.0000.00717.53
8.1.80.0040.00417.54
8.1.70.0040.00417.55
8.1.60.0030.00617.70
8.1.50.0050.00317.67
8.1.40.0000.00817.64
8.1.30.0040.00417.79
8.1.20.0040.00417.66
8.1.10.0030.00517.54
8.1.00.0000.00817.64
8.0.300.0050.00218.77
8.0.290.0000.00816.88
8.0.280.0070.00018.52
8.0.270.0070.00017.32
8.0.260.0030.00317.43
8.0.250.0030.00317.13
8.0.240.0060.00017.02
8.0.230.0000.00717.21
8.0.220.0040.00417.02
8.0.210.0000.00817.08
8.0.200.0000.00717.20
8.0.190.0050.00517.08
8.0.180.0030.00317.14
8.0.170.0090.00017.08
8.0.160.0070.00017.18
8.0.150.0030.00316.96
8.0.140.0000.01017.03
8.0.130.0000.00913.48
8.0.120.0050.00517.05
8.0.110.0000.00716.95
8.0.100.0070.00017.07
8.0.90.0000.00717.04
8.0.80.0040.01117.14
8.0.70.0040.00416.96
8.0.60.0050.00317.13
8.0.50.0050.00216.97
8.0.30.0100.00817.34
8.0.20.0100.00917.44
8.0.10.0080.00017.16
8.0.00.0090.00916.92
7.4.330.0050.00016.71
7.4.320.0060.00016.58
7.4.300.0110.00316.71
7.4.290.0030.00316.66
7.4.280.0040.00416.64
7.4.270.0040.00416.65
7.4.260.0000.00716.61
7.4.250.0040.00416.59
7.4.240.0030.00416.69
7.4.230.0000.00716.55
7.4.220.0090.01216.57
7.4.210.0070.01316.68
7.4.200.0080.00016.38
7.4.160.0080.00816.69
7.4.150.0030.01417.40
7.4.140.0090.01017.86
7.4.130.0120.00716.78
7.4.120.0130.00716.77
7.4.110.0080.00816.79
7.4.100.0140.00316.71
7.4.90.0060.01616.44
7.4.80.0040.01519.39
7.4.70.0000.01816.79
7.4.60.0070.01016.55
7.4.50.0160.00016.68
7.4.40.0120.00616.81
7.4.30.0170.00316.63
7.4.00.0070.00315.16
7.3.330.0050.00013.37
7.3.320.0000.00513.38
7.3.310.0000.00816.49
7.3.300.0030.00316.48
7.3.290.0080.00916.47
7.3.280.0100.00716.43
7.3.270.0030.01317.40
7.3.260.0090.00616.57
7.3.250.0100.00916.43
7.3.240.0150.00516.56
7.3.230.0100.00616.65
7.3.210.0040.01316.40
7.3.200.0140.00316.45
7.3.190.0100.01116.69
7.3.180.0090.00916.69
7.3.170.0000.01516.63
7.3.160.0030.01216.72
7.3.10.0050.00716.82
7.3.00.0030.00816.70
7.2.330.0070.01016.70
7.2.320.0120.00616.84
7.2.310.0130.01016.59
7.2.300.0060.01516.82
7.2.290.0140.00416.76
7.2.130.0030.00717.17
7.2.120.0070.00917.07
7.2.110.0090.00317.09
7.2.100.0060.00516.90
7.2.90.0060.00817.22
7.2.80.0070.00516.97
7.2.70.0060.00717.02
7.2.60.0090.00717.11
7.2.50.0070.00816.99
7.2.40.0110.00616.75
7.2.30.0060.01116.78
7.2.20.0090.00817.02
7.2.10.0000.00916.92
7.2.00.0080.00517.76
7.1.250.0030.00516.13
7.1.100.0040.00718.57
7.1.70.0000.01017.38
7.1.60.0100.01319.52
7.1.50.0090.01617.22
7.1.00.0000.08022.45
7.0.200.0040.00716.82
7.0.80.0530.06719.91
7.0.70.0630.08019.85
7.0.60.0530.04319.88
7.0.50.0530.07720.26
7.0.40.0000.08719.95
7.0.30.0070.05720.10
7.0.20.0030.08320.08
7.0.10.0030.06020.07
7.0.00.0130.06020.10
5.6.280.0030.03721.09
5.6.230.0030.09020.65
5.6.220.0100.05320.64
5.6.210.0200.07020.68
5.6.200.0000.09020.95
5.6.190.0130.04321.02
5.6.180.0100.07021.11
5.6.170.0070.04720.94
5.6.160.0100.07720.95
5.6.150.0100.08020.93
5.6.140.0100.07721.00
5.6.130.0100.05720.99
5.6.120.0170.07021.01
5.6.110.0100.08021.02
5.6.100.0100.05720.98
5.6.90.0100.07721.07
5.6.80.0100.08020.35
5.6.70.0200.06720.50
5.6.60.0130.06320.35
5.6.50.0100.07720.48
5.6.40.0130.08020.52
5.6.30.0100.06320.40
5.6.20.0070.08320.31
5.6.10.0130.05020.36
5.6.00.0030.06020.45
5.5.370.0130.05020.35
5.5.360.0070.05020.55
5.5.350.0100.08020.40
5.5.340.0170.07720.87
5.5.330.0070.08720.75
5.5.320.0070.08020.87
5.5.310.0100.06720.89
5.5.300.0100.05020.86
5.5.290.0130.08320.72
5.5.280.0100.08320.91
5.5.270.0130.07720.62
5.5.260.0100.07720.91
5.5.250.0100.05720.56
5.5.240.0170.04720.29
5.5.230.0170.07720.23
5.5.220.0170.03720.25
5.5.210.0030.05320.29
5.5.200.0070.07020.21
5.5.190.0070.07720.16
5.5.180.0130.07720.24
5.5.160.0070.07320.18
5.5.150.0100.07020.26
5.5.140.0100.07320.08
5.5.130.0030.08320.13
5.5.120.0070.08020.10
5.5.110.0170.06720.27
5.5.100.0070.07720.13
5.5.90.0030.08320.10
5.5.80.0100.05720.14
5.5.70.0100.07720.01
5.5.60.0030.07719.93
5.5.50.0000.06320.11
5.5.40.0100.05019.98
5.5.30.0130.07320.02
5.5.20.0030.07720.14
5.5.10.0100.08020.01
5.5.00.0130.07320.04

preferences:
46.28 ms | 401 KiB | 5 Q