3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date_now = date("Y-m-d"); // this format is string comparable if ($date_now > '2016-01-02') { echo 'greater than'; }else{ echo 'Less than'; }

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.4.20.0040.00419.63
8.4.10.0030.00717.71
8.3.150.0150.00418.71
8.3.140.0060.00916.68
8.3.130.0270.00616.54
8.3.120.0270.00517.15
8.3.110.0220.00517.30
8.3.100.0270.00820.64
8.3.90.0240.00920.97
8.3.80.0240.00519.75
8.3.70.0240.00719.58
8.3.60.0220.00920.82
8.3.50.0220.00619.03
8.3.40.0230.00820.24
8.3.30.0220.00620.10
8.3.20.0220.00520.33
8.3.10.0240.00620.66
8.3.00.0170.00720.99
8.2.260.0030.01218.14
8.2.250.0110.00716.95
8.2.240.0180.00316.57
8.2.230.0180.00417.44
8.2.220.0190.00422.55
8.2.210.0180.00420.83
8.2.200.0190.00419.39
8.2.190.0210.00619.17
8.2.180.0180.00619.42
8.2.170.0200.00620.82
8.2.160.0170.00820.42
8.2.150.0190.00521.09
8.2.140.0200.00621.11
8.2.130.0210.00621.06
8.2.120.0250.00520.51
8.2.110.0180.00520.62
8.2.100.0230.00419.21
8.2.90.0200.00719.76
8.2.80.0210.00719.86
8.2.70.0200.00724.80
8.2.60.0180.00723.19
8.2.50.0190.00622.75
8.2.40.0200.00522.82
8.2.30.0190.00422.58
8.2.20.0150.00622.42
8.2.10.0140.00621.56
8.2.00.0150.00621.34
8.1.310.0060.00916.90
8.1.300.0210.00416.37
8.1.290.0190.00721.27
8.1.280.0240.00520.28
8.1.270.0250.00420.77
8.1.260.0240.00521.13
8.1.250.0220.00421.19
8.1.240.0190.00420.21
8.1.230.0180.00519.92
8.1.220.0160.00419.57
8.1.210.0140.00619.88
8.1.200.0160.00624.46
8.1.190.0140.00523.36
8.1.180.0140.00522.59
8.1.170.0160.00322.66
8.1.160.0140.00422.56
8.1.150.0120.00722.18
8.1.140.0120.00621.34
8.1.130.0120.00620.87
8.1.120.0130.00620.84
8.1.110.0130.00520.58
8.1.100.0130.00620.37
8.1.90.0120.00620.01
8.1.80.0110.00619.98
8.1.70.0110.00619.73
8.1.60.0130.00619.87
8.1.50.0130.00519.56
8.1.40.0130.00519.50
8.1.30.0150.00619.66
8.1.20.0140.00519.51
8.1.10.0150.00519.40
8.1.00.0130.00619.26
8.0.300.0160.00719.58
8.0.290.0190.00524.20
8.0.280.0150.00621.53
8.0.270.0170.00421.04
8.0.260.0150.00420.38
8.0.250.0130.00520.30
8.0.240.0130.00520.13
8.0.230.0120.00519.89
8.0.220.0120.00519.66
8.0.210.0120.00519.64
8.0.200.0120.00419.47
8.0.190.0120.00519.23
8.0.180.0130.00519.10
8.0.170.0130.00518.96
8.0.160.0130.00518.91
8.0.150.0130.00518.70
8.0.140.0120.00518.79
8.0.130.0140.00418.58
8.0.120.0130.00518.35
8.0.110.0120.00518.33
8.0.100.0110.00618.24
8.0.90.0110.00518.13
8.0.80.0100.00518.14
8.0.70.0100.00618.17
8.0.60.0110.00518.20
8.0.50.0120.00518.18
8.0.30.0130.00617.94
8.0.20.0120.00517.98
8.0.10.0120.00618.09
8.0.00.0110.00618.05
7.4.330.0110.00518.95
7.4.320.0130.00519.76
7.4.300.0110.00518.94
7.4.290.0130.00518.87
7.4.280.0130.00518.68
7.4.270.0140.00318.50
7.4.260.0140.00418.40
7.4.250.0130.00518.16
7.4.240.0110.00618.12
7.4.230.0130.00418.01
7.4.220.0110.00417.98
7.4.210.0100.00517.89
7.4.200.0110.00517.97
7.4.190.0110.00418.00
7.4.180.0110.00517.97
7.4.160.0110.00617.80
7.4.150.0110.00617.65
7.4.140.0110.00617.62
7.4.130.0110.00617.53
7.4.120.0110.00617.49
7.4.110.0120.00617.47
7.4.100.0120.00617.47
7.4.90.0120.00617.37
7.4.80.0120.00717.41
7.4.70.0120.00717.34
7.4.60.0130.00617.33
7.4.50.0120.00717.27
7.4.40.0120.00717.25
7.4.30.0120.00717.27
7.4.20.0120.00717.23
7.4.10.0120.00717.25
7.4.00.0110.00717.15
7.3.330.0130.00518.13
7.3.320.0130.00517.84
7.3.310.0130.00517.88
7.3.300.0130.00417.77
7.3.290.0120.00517.60
7.3.280.0130.00517.50
7.3.270.0120.00617.45
7.3.260.0130.00517.40
7.3.250.0120.00617.38
7.3.240.0130.00617.37
7.3.230.0130.00617.29
7.3.220.0120.00617.25
7.3.210.0130.00617.20
7.3.200.0130.00617.23
7.3.190.0120.00717.21
7.3.180.0130.00717.21
7.3.170.0130.00617.14
7.3.160.0120.00717.12
7.3.150.0130.00717.11
7.3.140.0130.00617.09
7.3.130.0130.00617.08
7.3.120.0120.00716.99
7.3.110.0120.00716.90
7.3.100.0120.00616.91
7.3.90.0130.00616.97
7.3.80.0120.00716.82
7.3.70.0120.00716.82
7.3.60.0120.00716.81
7.3.50.0120.00616.79
7.3.40.0110.00716.74
7.3.30.0110.00716.71
7.3.20.0150.00717.20
7.3.10.0140.00717.21
7.3.00.0150.00717.22
7.2.340.0130.00617.49
7.2.330.0140.00617.40
7.2.320.0130.00717.42
7.2.310.0140.00717.38
7.2.300.0140.00717.36
7.2.290.0140.00717.30
7.2.280.0140.00717.31
7.2.270.0140.00718.30
7.2.260.0130.00717.25
7.2.250.0140.00617.19
7.2.240.0130.00717.12
7.2.230.0140.00717.09
7.2.220.0130.00817.06
7.2.210.0130.00717.06
7.2.200.0130.00716.97
7.2.190.0130.00716.91
7.2.180.0130.00716.90
7.2.170.0120.00716.86
7.2.160.0120.00816.84
7.2.150.0150.00717.41
7.2.140.0150.00717.44
7.2.130.0150.00717.51
7.2.120.0150.00717.50
7.2.110.0150.00717.48
7.2.100.0150.00817.47
7.2.90.0160.00717.39
7.2.80.0150.00717.41
7.2.70.0160.00717.44
7.2.60.0150.00717.41
7.2.50.0140.00717.42
7.2.40.0160.00717.45
7.2.30.0150.00717.47
7.2.20.0150.00717.47
7.2.10.0160.00717.47
7.2.00.0150.00817.46
7.1.330.0160.00716.83
7.1.320.0160.00716.76
7.1.310.0150.00716.69
7.1.300.0160.00716.59
7.1.290.0150.00616.59
7.1.280.0150.00616.54
7.1.270.0150.00716.51
7.1.260.0150.00616.52
7.1.250.0150.00716.45
7.1.240.0170.00716.45
7.1.230.0170.00716.43
7.1.220.0180.00716.47
7.1.210.0170.00716.45
7.1.200.0160.00716.44
7.1.190.0170.00716.46
7.1.180.0160.00716.42
7.1.170.0170.00716.43
7.1.160.0160.00716.44
7.1.150.0160.00716.44
7.1.140.0180.00616.46
7.1.130.0170.00716.46
7.1.120.0160.00816.45
7.1.110.0170.00716.47
7.1.100.0160.00716.45
7.1.90.0180.00616.44
7.1.80.0190.00616.51
7.1.70.0160.00816.41
7.1.60.0170.00716.63
7.1.50.0160.00716.63
7.1.40.0170.00616.63
7.1.30.0170.00616.61
7.1.20.0170.00716.60
7.1.10.0150.00716.46
7.1.00.0170.00716.44
7.0.330.0160.00616.13
7.0.320.0170.00716.14
7.0.310.0170.00616.13
7.0.300.0170.00716.14
7.0.290.0180.00616.15
7.0.280.0160.00716.14
7.0.270.0160.00616.15
7.0.260.0160.00716.18
7.0.250.0170.00616.29
7.0.240.0160.00616.35
7.0.230.0170.00716.31
7.0.220.0160.00616.30
7.0.210.0160.00716.27
7.0.200.0170.00616.27
7.0.190.0160.00716.29
7.0.180.0170.00716.27
7.0.170.0170.00716.33
7.0.160.0150.00716.25
7.0.150.0160.00716.23
7.0.140.0160.00716.26
7.0.130.0160.00616.28
7.0.120.0160.00716.28
7.0.110.0160.00616.22
7.0.100.0160.00716.25
7.0.90.0150.00716.17
7.0.80.0160.00616.16
7.0.70.0170.00716.16
7.0.60.0170.00616.18
7.0.50.0160.00616.18
7.0.40.0160.00616.19
7.0.30.0160.00716.20
7.0.20.0170.00616.16
7.0.10.0160.00716.21
7.0.00.0180.00616.17
5.6.400.0140.00816.34
5.6.390.0140.00716.31
5.6.380.0140.00816.26
5.6.370.0150.00716.76
5.6.360.0140.00716.74
5.6.350.0140.00816.74
5.6.340.0140.00816.71
5.6.330.0140.00816.73
5.6.320.0140.00816.74
5.6.310.0150.00716.71
5.6.300.0140.00816.69
5.6.290.0140.00816.83
5.6.280.0140.00816.72
5.6.270.0140.00816.73
5.6.260.0140.00716.74
5.6.250.0140.00716.73
5.6.240.0140.00716.75
5.6.230.0140.00816.78
5.6.220.0140.00716.78
5.6.210.0150.00716.75
5.6.200.0140.00816.82
5.6.190.0140.00716.81
5.6.180.0150.00716.76
5.6.170.0140.00716.80
5.6.160.0140.00716.80
5.6.150.0140.00816.80
5.6.140.0140.00716.78
5.6.130.0140.00716.79
5.6.120.0140.00816.79
5.6.110.0140.00716.75
5.6.100.0140.00716.72
5.6.90.0140.00716.72
5.6.80.0130.00716.66
5.6.70.0120.00816.72
5.6.60.0130.00816.73
5.6.50.0130.00716.71
5.6.40.0130.00816.71
5.6.30.0140.00716.70
5.6.20.0140.00716.67
5.6.10.0130.00816.67
5.6.00.0140.00716.67

preferences:
33.88 ms | 403 KiB | 5 Q