3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = new \DateTime; $b = new \DateTime; var_dump($a < $b);

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.130.0080.00018.73
8.3.120.0030.00618.93
8.3.110.0060.00316.63
8.3.100.0080.00824.06
8.3.90.0040.01126.77
8.3.80.0030.00616.60
8.3.70.0110.00718.43
8.3.60.0110.00718.53
8.3.50.0070.00917.46
8.3.40.0130.00918.97
8.3.30.0130.00318.76
8.3.20.0000.00721.76
8.3.10.0040.00421.95
8.3.00.0050.00321.12
8.2.250.0040.00416.85
8.2.240.0000.01019.03
8.2.230.0000.00920.94
8.2.220.0090.00337.54
8.2.210.0000.00826.77
8.2.200.0030.00616.50
8.2.190.0100.01016.63
8.2.180.0120.00418.41
8.2.170.0100.01018.80
8.2.160.0070.00722.96
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0050.00323.52
8.2.120.0060.00220.90
8.2.110.0030.00620.49
8.2.100.0050.00519.34
8.2.90.0050.00319.36
8.2.80.0070.00220.54
8.2.70.0040.00519.25
8.2.60.0050.00419.21
8.2.50.0090.00019.16
8.2.40.0020.00619.96
8.2.30.0030.00619.93
8.2.20.0040.00419.30
8.2.10.0040.00419.38
8.2.00.0060.00219.33
8.1.300.0030.00618.09
8.1.290.0030.00618.88
8.1.280.0110.00425.92
8.1.270.0060.00321.45
8.1.260.0100.00225.08
8.1.250.0070.00225.96
8.1.240.0020.00822.15
8.1.230.0070.00421.56
8.1.220.0050.00419.09
8.1.210.0040.00419.66
8.1.200.0030.00618.94
8.1.190.0030.00619.00
8.1.180.0050.00419.24
8.1.170.0030.00519.01
8.1.160.0050.00319.73
8.1.150.0040.00419.73
8.1.140.0060.00319.86
8.1.130.0010.00619.25
8.1.120.0040.00419.01
8.1.110.0040.00419.12
8.1.100.0060.00319.00
8.1.90.0030.00519.09
8.1.80.0080.00019.09
8.1.70.0020.00719.07
8.1.60.0020.00619.06
8.1.50.0030.00519.06
8.1.40.0070.00218.95
8.1.30.0020.00719.08
8.1.20.0040.00519.11
8.1.10.0030.00618.93
8.1.00.0030.00718.99
8.0.300.0080.00120.02
8.0.290.0070.00618.20
8.0.280.0040.01118.96
8.0.270.0020.00718.61
8.0.260.0050.00517.63
8.0.250.0070.00218.46
8.0.240.0090.00317.49
8.0.230.0070.00317.53
8.0.220.0080.00218.40
8.0.210.0080.00017.57
8.0.200.0040.00518.53
8.0.190.0050.00418.44
8.0.180.0070.00117.65
8.0.170.0080.00517.50
8.0.160.0040.00518.49
8.0.150.0080.00018.38
8.0.140.0060.00717.41
8.0.130.0050.00315.72
8.0.120.0050.00617.38
8.0.110.0030.00518.54
8.0.100.0070.00118.33
8.0.90.0030.00817.46
8.0.80.0050.01017.54
8.0.70.0040.00418.48
8.0.60.0090.00218.41
8.0.50.0080.00417.36
8.0.30.0070.00718.20
8.0.20.0090.00817.92
8.0.10.0080.00018.61
8.0.00.0130.00217.86
7.4.330.0070.00214.87
7.4.320.0090.00317.08
7.4.300.0100.00216.99
7.4.290.0110.00217.07
7.4.280.0080.00417.03
7.4.270.0070.00416.93
7.4.260.0090.00317.99
7.4.250.0090.00517.02
7.4.240.0110.00216.97
7.4.230.0110.00117.00
7.4.220.0080.00418.02
7.4.210.0070.01016.85
7.4.200.0100.00116.92
7.4.190.0120.00617.73
7.4.180.0130.00417.65
7.4.160.0110.00716.80
7.4.150.0140.00518.26
7.4.140.0130.00518.11
7.4.130.0150.00316.96
7.4.120.0110.00716.81
7.4.110.0140.00316.98
7.4.100.0100.00716.89
7.4.90.0150.00516.75
7.4.80.0130.00517.63
7.4.70.0130.00716.96
7.4.60.0150.00916.78
7.4.50.0160.00616.92
7.4.40.0120.00816.92
7.4.30.0120.00616.89
7.4.20.0100.00816.90
7.4.10.0110.01016.98
7.4.00.0100.00916.32
7.3.330.0070.00416.16
7.3.320.0090.00315.23
7.3.310.0060.00516.84
7.3.300.0080.00416.95
7.3.290.0070.00516.73
7.3.280.0080.00916.57
7.3.270.0110.00617.34
7.3.260.0100.00916.61
7.3.250.0100.00717.05
7.3.240.0130.00516.67
7.3.230.0130.00716.76
7.3.220.0170.00216.92
7.3.210.0110.00716.72
7.3.200.0120.00716.64
7.3.190.0110.01116.71
7.3.180.0120.00616.72
7.3.170.0130.00816.94
7.3.160.0100.00816.68
7.3.150.0080.01016.83
7.3.140.0170.00516.79
7.3.130.0130.01016.77
7.3.120.0110.00916.82
7.3.110.0140.00616.83
7.3.100.0120.00716.87
7.3.90.0120.00616.85
7.3.80.0150.00417.02
7.3.70.0130.00516.72
7.3.60.0130.00816.74
7.3.50.0150.01016.94
7.3.40.0160.00316.95
7.3.30.0120.00516.99
7.3.20.0120.00517.89
7.3.10.0150.00517.80
7.3.00.0140.00917.70
7.2.340.0170.00017.38
7.2.330.0110.01116.89
7.2.320.0110.00916.99
7.2.310.0130.00716.94
7.2.300.0080.01016.89
7.2.290.0080.01116.93
7.2.280.0090.00817.03
7.2.270.0250.00517.14
7.2.260.0170.00716.91
7.2.250.0080.00917.05
7.2.240.0110.00917.13
7.2.230.0100.01117.01
7.2.220.0230.00416.93
7.2.210.0190.00516.93
7.2.200.0130.01317.06
7.2.190.0170.01016.91
7.2.180.0110.01316.90
7.2.170.0170.00416.97
7.2.160.0090.00917.00
7.2.150.0150.00417.93
7.2.140.0130.00618.01
7.2.130.0140.00518.17
7.2.120.0110.01117.96
7.2.110.0140.00617.92
7.2.100.0130.00818.09
7.2.90.0100.01518.01
7.2.80.0170.00318.06
7.2.70.0230.00317.98
7.2.60.0140.00617.70
7.2.50.0150.00717.99
7.2.40.0190.00418.00
7.2.30.0140.00818.03
7.2.20.0360.00718.03
7.2.10.0230.00817.88
7.2.00.0140.00817.88
7.1.330.0260.00516.90
7.1.320.0170.00516.96
7.1.310.0150.00916.93
7.1.300.0170.00717.01
7.1.290.0160.00817.14
7.1.280.0210.00316.97
7.1.270.0160.00417.56
7.1.260.0180.00417.07
7.1.250.0180.00516.95
7.1.240.0210.00316.86
7.1.230.0180.00616.98
7.1.220.0220.00517.03
7.1.210.0190.00716.97
7.1.200.0130.00816.53
7.1.190.0220.00316.93
7.1.180.0200.00716.99
7.1.170.0190.00516.96
7.1.160.0220.00416.95
7.1.150.0220.00216.83
7.1.140.0180.00716.83
7.1.130.0190.00916.92
7.1.120.0150.00916.87
7.1.110.0230.00916.54
7.1.100.0220.01116.58
7.1.90.0210.01016.47
7.1.80.0260.00716.63
7.1.70.0190.01116.09
7.1.60.0280.01125.15
7.1.50.0310.00725.05
7.1.40.0260.00924.84
7.1.30.0270.00824.84
7.1.20.0180.01125.00
7.1.10.0200.00915.93
7.1.00.0160.00815.99
7.0.330.0150.00616.45
7.0.320.0340.00516.81
7.0.310.0170.00716.48
7.0.300.0170.00716.68
7.0.290.0150.00616.65
7.0.280.0170.00616.49
7.0.270.0130.00816.55
7.0.260.0150.00716.46
7.0.250.0150.00816.75
7.0.240.0190.00616.47
7.0.230.0170.00516.54
7.0.220.0190.00616.69
7.0.210.0250.00816.55
7.0.200.0190.00616.58
7.0.190.0190.00416.59
7.0.180.0180.00416.79
7.0.170.0120.00816.57
7.0.160.0130.00316.66
7.0.150.0130.00516.73
7.0.140.0130.00116.61
7.0.130.0120.00416.69
7.0.120.0110.00516.83
7.0.110.0060.01016.76
7.0.100.0100.00616.71
7.0.90.0100.00516.58
7.0.80.0110.00816.51
7.0.70.0160.00616.60
7.0.60.0110.00616.62
7.0.50.0090.00816.60
7.0.40.0130.00616.71
7.0.30.0190.00616.70
7.0.20.0130.00416.68
7.0.10.0120.00816.62
7.0.00.0100.00816.65
5.6.400.0160.00716.42
5.6.390.0130.01116.57
5.6.380.0120.01216.50
5.6.370.0190.00616.45
5.6.360.0140.00916.53
5.6.350.0170.00516.34
5.6.340.0200.00516.41
5.6.330.0170.00316.55
5.6.320.0150.00416.52
5.6.310.0100.01116.55
5.6.300.0140.00016.50
5.6.290.0080.01016.53
5.6.280.0070.00716.60
5.6.270.0050.01016.37
5.6.260.0050.01016.44
5.6.250.0080.00816.32
5.6.240.0070.01116.41
5.6.230.0120.00616.46
5.6.220.0070.00816.32
5.6.210.0060.01016.53
5.6.200.0110.00516.59
5.6.190.0130.00516.55
5.6.180.0080.00716.43
5.6.170.0070.00916.46
5.6.160.0090.00616.41
5.6.150.0070.01016.40
5.6.140.0030.01316.51
5.6.130.0090.00616.65
5.6.120.0130.00316.53
5.6.110.0040.00916.57
5.6.100.0080.00716.46
5.6.90.0090.00516.46
5.6.80.0070.00716.11
5.6.70.0080.00816.50
5.6.60.0120.00516.49
5.6.50.0060.00916.34
5.6.40.0100.00616.31
5.6.30.0100.00616.24
5.6.20.0130.00316.37
5.6.10.0110.00516.26
5.6.00.0090.00716.38

preferences:
29.15 ms | 403 KiB | 5 Q