3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date_now = new DateTime(); $date2 = new DateTime("01/02/2016"); if ($date_now > $date2) { echo 'greater than'; }else{ echo 'Less than'; }

Abusive script

This script was stopped while abusing our resources

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.110.0190.00016.50
8.3.100.0100.01019.74
8.3.90.0090.00719.89
8.3.80.0170.00923.97
8.3.70.0110.00620.30
8.3.60.0190.00622.37
8.3.50.0090.00720.10
8.3.40.0100.00821.22
8.3.30.0140.00421.15
8.3.20.0090.00521.90
8.3.10.0090.00421.13
8.3.00.0080.00922.63
8.2.230.0030.00620.94
8.2.220.0070.00723.64
8.2.210.0050.00519.93
8.2.200.0080.00620.21
8.2.190.0150.00320.21
8.2.180.0090.00720.65
8.2.170.0120.00422.36
8.2.160.0070.00721.39
8.2.150.0100.00322.57
8.2.140.0110.00422.62
8.2.130.0140.00524.04
8.2.120.0150.00523.09
8.2.110.0170.00523.03
8.2.100.0140.00421.90
8.2.90.0150.00321.86
8.2.80.0110.00621.96
8.2.70.0110.00728.48
8.2.60.0140.00425.45
8.2.50.0130.00325.05
8.2.40.0110.00523.68
8.2.30.0110.00623.63
8.2.20.0130.00423.22
8.2.10.0130.00422.68
8.2.00.0100.00522.86
8.1.290.0140.00519.05
8.1.280.0100.00822.15
8.1.270.0120.00522.33
8.1.260.0100.00524.03
8.1.250.0090.00524.40
8.1.240.0080.00622.53
8.1.230.0100.00523.10
8.1.220.0100.00321.79
8.1.210.0080.00722.12
8.1.200.0100.00528.36
8.1.190.0110.00425.31
8.1.180.0100.00524.72
8.1.170.0120.00423.83
8.1.160.0120.00423.48
8.1.150.0110.00523.15
8.1.140.0110.00522.58
8.1.130.0100.00522.81
8.1.120.0100.00522.26
8.1.110.0100.00521.51
8.1.100.0110.00521.19
8.1.90.0100.00521.23
8.1.80.0110.00420.94
8.1.70.0110.00520.86
8.1.60.0100.00620.63
8.1.50.0120.00420.25
8.1.40.0130.00419.92
8.1.30.0120.00619.89
8.1.20.0120.00620.12
8.1.10.0130.00519.67
8.1.00.0120.00619.60
8.0.300.0120.00821.81
8.0.290.0130.00627.96
8.0.280.0120.00523.10
8.0.270.0090.00621.98
8.0.260.0130.00322.55
8.0.250.0110.00521.73
8.0.240.0120.00521.49
8.0.230.0110.00620.78
8.0.220.0120.00420.77
8.0.210.0110.00520.51
8.0.200.0100.00519.97
8.0.190.0110.00520.16
8.0.180.0120.00419.78
8.0.170.0120.00519.50
8.0.160.0110.00519.38
8.0.150.0120.00519.32
8.0.140.0120.00519.11
8.0.130.0120.00518.99
8.0.120.0110.00518.82
8.0.110.0100.00618.65
8.0.100.0110.00518.64
8.0.90.0110.00518.60
8.0.80.0100.00518.59
8.0.70.0100.00618.56
8.0.60.0110.00418.61
8.0.50.0110.00418.72
8.0.30.0110.00618.11
8.0.20.0110.00718.12
8.0.10.0110.00718.09
8.0.00.0110.00618.05
7.4.330.0110.00421.42
7.4.320.0120.00521.20
7.4.300.0100.00419.17
7.4.290.0120.00419.61
7.4.280.0130.00419.09
7.4.270.0130.00418.69
7.4.260.0150.00418.74
7.4.250.0130.00518.47
7.4.240.0120.00518.34
7.4.230.0120.00418.32
7.4.220.0110.00518.25
7.4.210.0110.00518.14
7.4.200.0100.00518.31
7.4.190.0100.00518.34
7.4.180.0110.00418.35
7.4.160.0110.00617.81
7.4.150.0110.00617.68
7.4.140.0110.00617.63
7.4.130.0120.00617.55
7.4.120.0110.00717.52
7.4.110.0110.00717.47
7.4.100.0110.00717.46
7.4.90.0110.00717.39
7.4.80.0120.00717.37
7.4.70.0120.00717.32
7.4.60.0120.00717.29
7.4.50.0110.00717.24
7.4.40.0110.00817.19
7.4.30.0110.00717.21
7.4.20.0110.00717.19
7.4.10.0110.00717.17
7.4.00.0110.00617.16
7.3.330.0130.00418.46
7.3.320.0130.00518.21
7.3.310.0120.00418.10
7.3.300.0120.00518.06
7.3.290.0120.00418.05
7.3.280.0110.00617.64
7.3.270.0110.00617.44
7.3.260.0120.00617.43
7.3.250.0120.00617.38
7.3.240.0120.00617.33
7.3.230.0120.00617.26
7.3.220.0120.00717.24
7.3.210.0130.00617.19
7.3.200.0130.00717.18
7.3.190.0130.00717.16
7.3.180.0120.00717.12
7.3.170.0120.00717.09
7.3.160.0130.00717.05
7.3.150.0120.00717.04
7.3.140.0120.00717.02
7.3.130.0120.00716.99
7.3.120.0120.00716.93
7.3.110.0120.00716.90
7.3.100.0120.00716.83
7.3.90.0120.00716.87
7.3.80.0120.00716.73
7.3.70.0120.00716.72
7.3.60.0110.00716.75
7.3.50.0120.00716.70
7.3.40.0110.00716.63
7.3.30.0110.00716.58
7.3.20.0180.00716.99
7.3.10.0170.00716.95
7.3.00.0160.00816.96
7.2.340.0150.00717.49
7.2.330.0150.00717.41
7.2.320.0150.00717.38
7.2.310.0140.00817.34
7.2.300.0140.00817.32
7.2.290.0150.00817.27
7.2.280.0140.00717.25
7.2.270.0150.00717.21
7.2.260.0140.00817.21
7.2.250.0140.00717.18
7.2.240.0140.00717.12
7.2.230.0140.00817.08
7.2.220.0130.00816.99
7.2.210.0140.00816.96
7.2.200.0140.00816.90
7.2.190.0140.00816.89
7.2.180.0130.00816.86
7.2.170.0130.00816.82
7.2.160.0130.00816.79
7.2.150.0200.00817.19
7.2.140.0190.00817.22
7.2.130.0180.00817.28
7.2.120.0180.00817.25
7.2.110.0190.00817.27
7.2.100.0190.00817.26
7.2.90.0210.00817.19
7.2.80.0190.00817.19
7.2.70.0180.00817.19
7.2.60.0190.00817.20
7.2.50.0190.00817.21
7.2.40.0190.00817.23
7.2.30.0170.00817.25
7.2.20.0190.00817.27
7.2.10.0180.00717.26
7.2.00.0180.00817.26
7.1.330.0170.00716.61
7.1.320.0160.00716.50
7.1.310.0170.00816.46
7.1.300.0160.00816.39
7.1.290.0170.00716.40
7.1.280.0150.00816.32
7.1.270.0190.00716.25
7.1.260.0180.00716.23
7.1.250.0190.00716.13
7.1.240.0160.00716.65
7.1.230.0170.00716.67
7.1.220.0160.00716.69
7.1.210.0170.00816.69
7.1.200.0160.00716.70
7.1.190.0170.00716.69
7.1.180.0170.00716.66
7.1.170.0170.00716.65
7.1.160.0160.00716.65
7.1.150.0160.00716.66
7.1.140.0160.00816.66
7.1.130.0160.00716.66
7.1.120.0180.00716.66
7.1.110.0160.00716.66
7.1.100.0160.00716.65
7.1.90.0170.00716.63
7.1.80.0160.00816.70
7.1.70.0160.00716.60
7.1.60.0170.00716.69
7.1.50.0160.00716.72
7.1.40.0160.00716.72
7.1.30.0170.00716.72
7.1.20.0170.00716.69
7.1.10.0150.00716.67
7.1.00.0160.00716.65

preferences:
68.97 ms | 403 KiB | 5 Q