3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('America/Montevideo'); $hoy = date('d-m-Y H:i:s'); $hoystr = strtotime($hoy); $mañana = date('d-m-Y H:i:s',strtotime('+1 day', $hoystr)); /*echo $hoy; echo "\n"; echo $mañana; echo "\n";*/ $time = strtotime(date('H:i',$hoystr)); $inicio = strtotime(date('H:i','09:00:00')); $fin = strtotime(date('H:i','17:00:00')); echo "hora de ingreso: ".date('H:i',$hoystr); echo "\n"; echo "hora comienzo atencion: 09:00"; echo "\n"; $res = 'no'; $res2 = 'no'; if($time>$inicio){ $res = 'si'; } if($time<$fin){ $res = 'si'; } echo "es mayor la hora de ingreso que la de inicio atencion :".$res; echo "\n"; echo "es menor la hora de ingreso que la de fin atencion :".$res2;

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.0060.01018.55
8.3.50.0130.00521.20
8.3.40.0090.00618.95
8.3.30.0150.00018.96
8.3.20.0060.01020.18
8.3.10.0000.00821.86
8.3.00.0080.00017.89
8.2.180.0070.01318.66
8.2.170.0110.00422.96
8.2.160.0070.00720.52
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00817.63
8.2.110.0060.00321.19
8.2.100.0080.00417.88
8.2.90.0080.00019.20
8.2.80.0000.00917.97
8.2.70.0050.00317.75
8.2.60.0060.00317.93
8.2.50.0050.00318.07
8.2.40.0000.00819.50
8.2.30.0000.00720.62
8.2.20.0040.00418.03
8.2.10.0000.00718.07
8.2.00.0030.00618.14
8.1.280.0110.00425.92
8.1.270.0030.00522.23
8.1.260.0030.00626.35
8.1.250.0000.00828.09
8.1.240.0040.00421.18
8.1.230.0060.00617.61
8.1.220.0000.00817.74
8.1.210.0090.00018.77
8.1.200.0060.00617.63
8.1.190.0000.00817.36
8.1.180.0030.00518.10
8.1.170.0080.00018.63
8.1.160.0040.00422.00
8.1.150.0000.00718.91
8.1.140.0040.00417.58
8.1.130.0070.00017.85
8.1.120.0000.00717.69
8.1.110.0000.00817.56
8.1.100.0000.00817.71
8.1.90.0070.00017.56
8.1.80.0000.00817.56
8.1.70.0000.00717.57
8.1.60.0080.00017.63
8.1.50.0040.00417.70
8.1.40.0030.00617.57
8.1.30.0080.00017.89
8.1.20.0030.00617.88
8.1.10.0030.00617.71
8.1.00.0110.00017.72
8.0.300.0040.00418.77
8.0.290.0040.00417.00
8.0.280.0070.00018.53
8.0.270.0030.00317.34
8.0.260.0030.00318.54
8.0.250.0050.00317.23
8.0.240.0050.00317.12
8.0.230.0030.00517.14
8.0.220.0060.00317.15
8.0.210.0040.00417.07
8.0.200.0070.00017.24
8.0.190.0040.00417.25
8.0.180.0040.00417.14
8.0.170.0060.00317.20
8.0.160.0000.00717.08
8.0.150.0040.00417.06
8.0.140.0040.00817.18
8.0.130.0000.00613.60
8.0.120.0030.00517.04
8.0.110.0000.00717.00
8.0.100.0040.00416.98
8.0.90.0070.00017.13
8.0.80.0060.00917.05
8.0.70.0020.00517.00
8.0.60.0040.00416.98
8.0.50.0000.00717.11
8.0.30.0080.01017.21
8.0.20.0120.00617.40
8.0.10.0040.00417.34
8.0.00.0100.01016.98
7.4.330.0030.00315.08
7.4.320.0030.00316.76
7.4.300.0020.00516.55
7.4.290.0000.00816.77
7.4.280.0040.00416.72
7.4.270.0070.00016.69
7.4.260.0070.00316.73
7.4.250.0070.00016.74
7.4.240.0060.00116.64
7.4.230.0040.00416.63
7.4.220.0110.00716.70
7.4.210.0090.00916.77
7.4.200.0000.00716.65
7.4.160.0060.01016.96
7.4.150.0030.01417.40
7.4.140.0110.00717.86
7.4.130.0110.00316.70
7.4.120.0080.01116.54
7.4.110.0120.00916.87
7.4.100.0090.00916.64
7.4.90.0170.00016.68
7.4.80.0080.01619.39
7.4.70.0120.00916.75
7.4.60.0170.00016.79
7.4.50.0040.00416.88
7.4.40.0090.00916.63
7.4.30.0120.00616.93
7.4.00.0040.01115.40
7.3.330.0060.00013.30
7.3.320.0030.00313.43
7.3.310.0070.00016.39
7.3.300.0000.00816.59
7.3.290.0110.00916.51
7.3.280.0100.01016.56
7.3.270.0090.00917.40
7.3.260.0120.00616.75
7.3.250.0080.00916.65
7.3.240.0100.00616.71
7.3.230.0090.00916.58
7.3.210.0070.01016.64
7.3.200.0090.01216.78
7.3.190.0060.01116.73
7.3.180.0000.02316.61
7.3.170.0210.00016.63
7.3.160.0130.00916.76
7.2.330.0140.00316.60
7.2.320.0080.00816.83
7.2.310.0040.01216.96
7.2.300.0150.00916.95
7.2.290.0090.01516.75
7.2.110.0170.00316.94
7.2.60.0080.00617.11
7.2.00.0040.00719.76
7.1.200.0040.01116.03
7.1.100.0000.01418.49
7.1.70.0090.00617.57
7.1.60.0110.01119.19
7.1.50.0090.00616.95
7.1.00.0070.07322.48
7.0.200.0030.00716.97
7.0.80.0130.07719.91
7.0.70.0030.08019.94
7.0.60.0070.06319.87
7.0.50.0070.08020.18
7.0.40.0000.09020.19
7.0.30.0070.08720.08
7.0.20.0130.08020.14
7.0.10.0070.08720.04
7.0.00.0100.08020.09
5.6.280.0030.06021.04
5.6.230.0100.04020.53
5.6.220.0100.08020.67
5.6.210.0130.08020.64
5.6.200.0200.07021.17
5.6.190.0100.05721.05
5.6.180.0000.07021.07
5.6.170.0070.08021.00
5.6.160.0130.07721.10
5.6.150.0070.06721.13
5.6.140.0070.08321.04
5.6.130.0130.08021.01
5.6.120.0130.07320.94
5.6.110.0030.05320.95
5.6.100.0070.08321.15
5.6.90.0070.09021.05
5.6.80.0000.08020.31
5.6.70.0070.08320.47
5.6.60.0100.07020.40
5.6.50.0100.07320.32
5.6.40.0070.08020.38
5.6.30.0230.06320.38
5.6.20.0100.06720.52
5.6.10.0100.07720.31
5.6.00.0070.05720.29
5.5.370.0000.06720.41
5.5.360.0070.05720.55
5.5.350.0100.06720.44
5.5.340.0100.08320.90
5.5.330.0170.06720.87
5.5.320.0070.08020.86
5.5.310.0070.07020.73
5.5.300.0070.08320.82
5.5.290.0130.07720.91
5.5.280.0070.08020.88
5.5.270.0070.08720.72
5.5.260.0100.07020.92
5.5.250.0030.08020.64
5.5.240.0030.08320.14
5.5.230.0100.06720.11
5.5.220.0100.07020.11
5.5.210.0230.06320.27
5.5.200.0130.07720.27
5.5.190.0030.07720.21
5.5.180.0030.08720.13
5.5.160.0100.05320.11
5.5.150.0100.05020.28
5.5.140.0100.03720.25
5.5.130.0130.07320.11
5.5.120.0130.07019.99
5.5.110.0170.06720.27
5.5.100.0130.07320.10
5.5.90.0100.05320.16
5.5.80.0000.08720.06
5.5.70.0130.07720.09
5.5.60.0130.06720.00
5.5.50.0070.05319.91
5.5.40.0200.06320.05
5.5.30.0030.05320.03
5.5.20.0100.07720.13
5.5.10.0100.05719.97
5.5.00.0100.06720.02
5.4.450.0100.04019.42
5.4.440.0070.08019.29
5.4.430.0070.08319.39
5.4.420.0100.06719.47
5.4.410.0070.04319.16
5.4.400.0100.07318.81
5.4.390.0030.08019.04
5.4.380.0170.07019.23
5.4.370.0070.06018.79
5.4.360.0000.05719.10
5.4.350.0030.07718.98
5.4.340.0100.07019.07
5.4.320.0100.07719.06
5.4.310.0170.07019.23
5.4.300.0070.08019.07
5.4.290.0200.06019.07
5.4.280.0030.08019.14
5.4.270.0030.08319.11
5.4.260.0070.07319.12
5.4.250.0070.07719.11
5.4.240.0100.07719.02
5.4.230.0030.06319.02
5.4.220.0030.07718.97
5.4.210.0070.06319.13
5.4.200.0030.05319.02
5.4.190.0030.08019.01
5.4.180.0030.07718.80
5.4.170.0070.07319.08
5.4.160.0100.07318.88
5.4.150.0030.08018.79
5.4.140.0170.06316.32
5.4.130.0130.06016.11
5.4.120.0030.07316.39
5.4.110.0070.07016.50
5.4.100.0030.04016.39
5.4.90.0070.03716.36
5.4.80.0170.05316.45
5.4.70.0030.07716.27
5.4.60.0100.06716.30
5.4.50.0070.06716.28
5.4.40.0000.07316.36
5.4.30.0100.07316.33
5.4.20.0030.06716.23
5.4.10.0130.06316.28
5.4.00.0130.06715.81

preferences:
45.84 ms | 401 KiB | 5 Q