3v4l.org

run code in 300+ PHP versions simultaneously
<?php $origin = date_create('2020-01-01'); $target = date_create(); $interval = date_diff($origin, $target); $iade_hakki=$interval->d; var_export([$interval, $iade_hakki]);

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.130.0110.00918.02
8.4.120.0140.00620.63
8.4.110.0050.00419.15
8.4.100.0130.00817.83
8.4.90.0110.00920.67
8.4.80.0080.00619.01
8.4.70.0170.00620.40
8.4.60.0110.01020.50
8.4.50.0100.01018.54
8.4.40.0130.00719.71
8.4.30.0100.01020.43
8.4.20.0170.00318.67
8.4.10.0000.00919.90
8.3.260.0090.01016.67
8.3.250.0120.00618.79
8.3.240.0140.00516.55
8.3.230.0130.00616.54
8.3.220.0040.00318.86
8.3.210.0110.00716.56
8.3.200.0040.00616.66
8.3.190.0110.00718.92
8.3.180.0070.00318.74
8.3.170.0110.00317.04
8.3.160.0040.00816.86
8.3.150.0130.00716.56
8.3.140.0060.00316.62
8.3.130.0000.00816.80
8.3.120.0130.00319.04
8.3.110.0130.00320.94
8.3.100.0030.00724.06
8.3.90.0030.01326.77
8.3.80.0080.00016.63
8.3.70.0080.00816.58
8.3.60.0110.01118.43
8.3.50.0090.00918.44
8.3.40.0100.01018.96
8.3.30.0090.00618.79
8.3.20.0000.00824.18
8.3.10.0000.00824.66
8.3.00.0000.01026.16
8.2.290.0100.00917.22
8.2.280.0090.01120.20
8.2.270.0120.00616.87
8.2.260.0030.01617.14
8.2.250.0060.00318.59
8.2.240.0120.00619.09
8.2.230.0040.00722.58
8.2.220.0080.01137.54
8.2.210.0050.00326.77
8.2.200.0060.00316.88
8.2.190.0140.00716.58
8.2.180.0070.01125.92
8.2.170.0130.00619.08
8.2.160.0130.00722.96
8.2.150.0040.00425.66
8.2.140.0060.00324.66
8.2.130.0000.00826.16
8.2.120.0050.00326.16
8.2.110.0060.00321.11
8.2.100.0080.00417.91
8.2.90.0040.00418.27
8.2.80.0080.00018.16
8.2.70.0060.00317.75
8.2.60.0030.00618.03
8.2.50.0030.00618.10
8.2.40.0030.00520.84
8.2.30.0070.00019.38
8.2.20.0070.00018.14
8.2.10.0030.00619.38
8.2.00.0070.00019.41
8.1.330.0100.01016.36
8.1.320.0090.01018.02
8.1.310.0050.00316.90
8.1.300.0070.01419.62
8.1.290.0110.00018.88
8.1.280.0060.01025.92
8.1.270.0080.00023.99
8.1.260.0080.00026.35
8.1.250.0030.00728.09
8.1.240.0080.00422.14
8.1.230.0040.00721.03
8.1.220.0050.00317.74
8.1.210.0030.00718.78
8.1.200.0000.00817.48
8.1.190.0060.00317.35
8.1.180.0040.00418.10
8.1.170.0030.00618.79
8.1.160.0040.00418.91
8.1.150.0040.00418.85
8.1.140.0000.00718.87
8.1.130.0100.00020.15
8.1.120.0060.00317.70
8.1.110.0050.00317.66
8.1.100.0080.00017.65
8.1.90.0070.00017.68
8.1.80.0030.00717.59
8.1.70.0070.00017.66
8.1.60.0060.00317.73
8.1.50.0080.00017.64
8.1.40.0030.00617.54
8.1.30.0050.00317.78
8.1.20.0040.00417.75
8.1.10.0050.00317.69
8.1.00.0040.00417.54
8.0.300.0000.00919.90
8.0.290.0040.00417.00
8.0.280.0000.00718.49
8.0.270.0030.00318.23
8.0.260.0080.00018.68
8.0.250.0000.00717.04
8.0.240.0000.00817.17
8.0.230.0000.00717.16
8.0.220.0040.00417.12
8.0.210.0000.00717.16
8.0.200.0000.00717.10
8.0.190.0000.00717.08
8.0.180.0000.00717.13
8.0.170.0000.00817.13
8.0.160.0050.00517.07
8.0.150.0040.00416.95
8.0.140.0040.00417.03
8.0.130.0060.00013.46
8.0.120.0040.00417.05
8.0.110.0080.00017.12
8.0.100.0040.00417.13
8.0.90.0030.00517.17
8.0.80.0100.01017.06
8.0.70.0050.00316.97
8.0.60.0050.00317.00
8.0.50.0000.00716.91
8.0.30.0140.00316.93
8.0.20.0270.00316.99
8.0.10.0330.00317.13
8.0.00.0240.00717.06
7.4.330.0000.00515.55
7.4.320.0030.00316.58
7.4.300.0030.00316.64
7.4.290.0000.00816.67
7.4.280.0070.00016.65
7.4.270.0000.00816.70
7.4.260.0030.00313.29
7.4.250.0030.00316.67
7.4.240.0040.00416.66
7.4.230.0000.00716.49
7.4.220.0000.00716.64
7.4.210.0030.01316.61
7.4.200.0070.00016.74
7.4.160.0160.01316.57
7.4.150.0290.00316.42
7.4.140.0290.00816.38
7.4.130.0180.01416.57
7.4.120.0250.00716.47
7.4.110.0230.00716.47
7.4.100.0190.01016.56
7.4.90.0130.01316.35
7.4.80.0200.01216.58
7.4.70.0220.00616.51
7.4.60.0270.00716.51
7.4.50.0150.01216.50
7.4.40.0190.01216.37
7.4.30.0190.00916.45
7.4.20.0220.00816.57
7.4.10.0210.01116.43
7.4.00.0140.00716.59
7.3.330.0060.00316.32
7.3.320.0050.00013.10
7.3.310.0040.00416.42
7.3.300.0030.00516.26
7.3.290.0080.00716.37
7.3.280.0220.00516.18
7.3.270.0210.00816.25
7.3.260.0250.00416.29
7.3.250.0120.01516.34
7.3.240.0250.00416.32
7.3.230.0230.00816.34
7.3.220.0180.01516.11
7.3.210.0160.01616.30
7.3.200.0210.01016.22
7.3.190.0210.01116.23
7.3.180.0200.01116.30
7.3.170.0250.00816.22
7.3.160.0340.00316.20
7.3.150.0270.00416.21
7.3.140.0260.01016.21
7.3.130.0180.01516.16
7.3.120.0250.00516.20
7.3.110.0170.01716.15
7.3.100.0220.00916.15
7.3.90.0220.01116.41
7.3.80.0320.00316.19
7.3.70.0230.00416.29
7.3.60.0220.00716.35
7.3.50.0240.00516.32
7.3.40.0180.01116.33
7.3.30.0290.00416.31
7.3.20.0230.00516.36
7.3.10.0240.00516.29
7.3.00.0220.00716.25

preferences:
31.39 ms | 403 KiB | 5 Q