3v4l.org

run code in 300+ PHP versions simultaneously
<?php $in = "07:07"; $out = "15:56"; $in_time = "07:00"; $out_time = "16:00"; if(strtotime($in) > strtotime($in_time)){ echo (strtotime($in) - strtotime($in_time))/60 . " minutes late in\n\n"; }else{ echo "not late in\n\n"; } if(strtotime($out) < strtotime($out_time)){ echo (strtotime($out_time)-strtotime($out))/60 . " minutes early out\n"; }else{ echo "not early out\n"; }

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.0090.00616.88
8.3.50.0170.00316.56
8.3.40.0000.01418.92
8.3.30.0070.00718.66
8.3.20.0050.00320.31
8.3.10.0050.00323.61
8.3.00.0070.00022.13
8.2.180.0140.00716.63
8.2.170.0090.00622.96
8.2.160.0140.00318.98
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0030.00621.00
8.2.110.0100.00019.45
8.2.100.0060.00618.28
8.2.90.0030.00618.16
8.2.80.0040.00417.97
8.2.70.0060.00318.05
8.2.60.0000.00718.04
8.2.50.0000.00818.10
8.2.40.0060.00320.36
8.2.30.0040.00421.10
8.2.20.0000.00718.16
8.2.10.0030.00618.06
8.2.00.0080.00018.02
8.1.280.0200.00025.92
8.1.270.0040.00422.03
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0030.00622.20
8.1.230.0090.00322.82
8.1.220.0060.00317.74
8.1.210.0040.00418.77
8.1.200.0050.00817.24
8.1.190.0030.00517.35
8.1.180.0050.00518.10
8.1.170.0030.00518.70
8.1.160.0080.00018.98
8.1.150.0050.00320.71
8.1.140.0050.00219.67
8.1.130.0070.00018.91
8.1.120.0050.00517.57
8.1.110.0040.00417.65
8.1.100.0040.00417.69
8.1.90.0070.00017.67
8.1.80.0070.00017.66
8.1.70.0030.00317.71
8.1.60.0060.00317.73
8.1.50.0030.00517.70
8.1.40.0000.00817.70
8.1.30.0040.00417.79
8.1.20.0000.00917.80
8.1.10.0030.00617.58
8.1.00.0000.00817.59
8.0.300.0050.00319.53
8.0.290.0000.00817.00
8.0.280.0000.00718.53
8.0.270.0000.00717.39
8.0.260.0030.00516.96
8.0.250.0030.00317.19
8.0.240.0070.00317.07
8.0.230.0000.00717.19
8.0.220.0000.00717.09
8.0.210.0040.00417.05
8.0.200.0060.00017.19
8.0.190.0060.00317.13
8.0.180.0000.00817.13
8.0.170.0040.00417.18
8.0.160.0030.00317.14
8.0.150.0000.00817.10
8.0.140.0000.00717.11
8.0.130.0000.00513.43
8.0.120.0050.00317.09
8.0.110.0000.00717.12
8.0.100.0000.00817.11
8.0.90.0040.00417.18
8.0.80.0150.00317.14
8.0.70.0000.00716.99
8.0.60.0040.00417.06
8.0.50.0000.00717.07
8.0.30.0080.01017.13
8.0.20.0110.00917.40
8.0.10.0070.00016.96
8.0.00.0110.00616.91
7.4.330.0060.00015.55
7.4.320.0000.00816.63
7.4.300.0030.00316.49
7.4.290.0050.00316.56
7.4.280.0000.00716.70
7.4.270.0000.00716.52
7.4.260.0050.00316.66
7.4.250.0020.00516.42
7.4.240.0050.00316.52
7.4.230.0070.00016.63
7.4.220.0100.00716.63
7.4.210.0000.01816.56
7.4.200.0000.00716.58
7.4.160.0080.00816.76
7.4.150.0070.01117.40
7.4.140.0100.01017.86
7.4.130.0090.01016.78
7.4.120.0130.01016.72
7.4.110.0130.00316.66
7.4.100.0080.01116.79
7.4.90.0100.01316.67
7.4.80.0170.00619.39
7.4.70.0110.00516.61
7.4.60.0060.00916.52
7.4.50.0030.01316.75
7.4.40.0030.01316.57
7.4.30.0090.01216.66
7.4.00.0090.00914.99
7.3.330.0050.00013.18
7.3.320.0060.00013.18
7.3.310.0000.00716.32
7.3.300.0030.00316.21
7.3.290.0000.00716.21
7.3.280.0090.00916.36
7.3.270.0060.01617.40
7.3.260.0170.00216.61
7.3.250.0150.00416.61
7.3.240.0110.00916.46
7.3.230.0100.00716.47
7.3.210.0080.00816.48
7.3.200.0140.00416.36
7.3.190.0060.01516.59
7.3.180.0030.01316.64
7.3.170.0110.01116.48
7.3.160.0030.01316.35
7.3.120.0070.00814.81
7.3.110.0050.01314.93
7.3.100.0070.01014.88
7.3.90.0060.00814.99
7.3.80.0040.00914.85
7.3.70.0090.00514.81
7.3.60.0050.00714.86
7.3.50.0080.00614.85
7.3.40.0100.00614.67
7.3.30.0050.00914.83
7.3.20.0060.00616.62
7.3.10.0040.01016.50
7.3.00.0090.00516.71
7.2.330.0100.00716.96
7.2.320.0100.00616.91
7.2.310.0100.00616.46
7.2.300.0110.00816.86
7.2.290.0050.01116.58
7.2.250.0040.01315.31
7.2.240.0060.01315.40
7.2.230.0080.00515.14
7.2.220.0010.01115.24
7.2.210.0070.00815.19
7.2.200.0040.00915.05
7.2.190.0020.01115.08
7.2.180.0050.00814.95
7.2.170.0080.00915.16
7.2.160.0030.01015.05
7.2.150.0060.00616.88
7.2.140.0030.01317.09
7.2.130.0070.00817.03
7.2.120.0030.00816.96
7.2.110.0050.00817.03
7.2.100.0040.01117.00
7.2.90.0050.01016.98
7.2.80.0040.01117.07
7.2.70.0050.00617.06
7.2.60.0020.00917.06
7.2.50.0030.01217.00
7.2.40.0030.01016.95
7.2.30.0050.01116.83
7.2.20.0060.00417.04
7.2.10.0080.00317.16
7.2.00.0080.00717.91
7.1.330.0070.00815.87
7.1.320.0090.00715.78
7.1.310.0070.00715.80
7.1.300.0060.01015.77
7.1.290.0090.00315.88
7.1.280.0080.00815.81
7.1.270.0080.00715.75
7.1.260.0040.01215.66
7.1.250.0060.00615.84
7.1.240.0030.01015.73
7.1.230.0030.00915.70
7.1.220.0050.00515.71
7.1.210.0100.00316.00
7.1.200.0110.00015.70
7.1.190.0120.00015.88
7.1.180.0040.01115.86
7.1.170.0030.00915.66
7.1.160.0000.01016.06
7.1.150.0030.01016.06
7.1.140.0030.01015.66
7.1.130.0130.00016.04
7.1.120.0060.01215.83
7.1.110.0040.01215.68
7.1.100.0030.00817.00
7.1.90.0080.00315.96
7.1.80.0060.00615.95
7.1.70.0030.01116.63
7.1.60.0090.01225.42
7.1.50.0150.00825.07
7.1.40.0120.01025.21
7.1.30.0110.01225.21
7.1.20.0130.00825.26
7.1.10.0090.00416.23
7.1.00.0060.00816.42
7.0.330.0030.00615.24
7.0.320.0070.00415.34
7.0.310.0040.00715.25
7.0.300.0030.01315.41
7.0.290.0040.00715.25
7.0.280.0060.00915.71
7.0.270.0100.00015.68
7.0.260.0030.00815.34
7.0.250.0070.00715.51
7.0.240.0070.00715.57
7.0.230.0040.01115.57
7.0.220.0120.00315.32
7.0.210.0030.00615.55
7.0.200.0050.00716.12
7.0.190.0030.01216.17
7.0.180.0100.00715.80
7.0.170.0070.00715.98
7.0.160.0070.00816.03
7.0.150.0050.00615.92
7.0.140.0060.00615.98
7.0.130.0110.00316.02
7.0.120.0060.00615.96
7.0.110.0060.00815.77
7.0.100.0040.00815.95
7.0.90.0080.00516.05
7.0.80.0040.01115.74
7.0.70.0000.01115.75
7.0.60.0080.00515.70
7.0.50.0040.01016.02
7.0.40.0060.01015.09
7.0.30.0040.01114.98
7.0.20.0090.00615.13
7.0.10.0090.00615.07
7.0.00.0070.00614.94
5.6.400.0120.00314.66
5.6.390.0040.01114.39
5.6.380.0040.01114.59
5.6.370.0050.00514.49
5.6.360.0000.01314.57
5.6.350.0090.00614.72
5.6.340.0060.00614.39
5.6.330.0140.00014.16
5.6.320.0050.00514.47
5.6.310.0040.00814.20
5.6.300.0080.00414.37
5.6.290.0100.00314.69
5.6.280.0000.01714.56
5.6.270.0060.00614.38
5.6.260.0060.00714.63
5.6.250.0060.00314.28
5.6.240.0070.00714.53
5.6.230.0040.00414.52
5.6.220.0030.00914.71
5.6.210.0100.00314.25
5.6.200.0060.00614.47
5.6.190.0070.01014.49
5.6.180.0060.00314.11
5.6.170.0060.00314.20
5.6.160.0070.00414.38
5.6.150.0000.01614.39
5.6.140.0030.01314.41
5.6.130.0110.00314.50
5.6.120.0000.01214.44
5.6.110.0000.01214.18
5.6.100.0080.00414.50
5.6.90.0030.01214.48
5.6.80.0030.00914.18
5.6.70.0030.01014.28
5.6.60.0130.00314.27
5.6.50.0090.00314.21
5.6.40.0090.00614.47
5.6.30.0140.00314.37
5.6.20.0140.00014.16
5.6.10.0030.00614.37
5.6.00.0040.00714.60

preferences:
49.12 ms | 400 KiB | 5 Q