3v4l.org

run code in 300+ PHP versions simultaneously
<?php $now = new DateTime(); $birthday = new DateTime('1973-04-18 09:48:00'); echo $now->diff($birthday)->format('%y years'); // 49 years

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.0040.00417.89
8.4.120.0100.00224.07
8.4.110.0080.01322.57
8.4.100.0140.00717.98
8.4.90.0130.00818.82
8.4.80.0090.00417.89
8.4.70.0090.00717.99
8.4.60.0070.00918.66
8.4.50.0120.00920.26
8.4.40.0180.00319.50
8.4.30.0130.00718.98
8.4.20.0080.00022.80
8.4.10.0090.00023.92
8.3.260.0100.00916.77
8.3.250.0100.00918.76
8.3.240.0040.00516.69
8.3.230.0120.00716.45
8.3.220.0120.00717.08
8.3.210.0050.00516.81
8.3.200.0050.00416.71
8.3.190.0030.00516.97
8.3.180.0040.00516.71
8.3.170.0090.00918.91
8.3.160.0140.00616.95
8.3.150.0040.01517.18
8.3.140.0150.00017.03
8.3.130.0130.00717.65
8.3.120.0160.00318.64
8.3.110.0200.00418.71
8.3.100.0190.00520.44
8.3.90.0220.00421.52
8.3.80.0200.01021.74
8.3.70.0300.00921.20
8.3.60.0300.00821.27
8.3.50.0210.00821.35
8.3.40.0190.00822.93
8.3.30.0210.00522.38
8.3.20.0210.00424.08
8.3.10.0180.00224.19
8.3.00.0120.00524.86
8.2.290.0100.00920.23
8.2.280.0110.00918.68
8.2.270.0040.01517.61
8.2.260.0110.00718.97
8.2.250.0080.00417.59
8.2.240.0120.00117.59
8.2.230.0180.00219.59
8.2.220.0120.00626.86
8.2.210.0200.00321.69
8.2.200.0270.00321.46
8.2.190.0290.00221.32
8.2.180.0220.01021.46
8.2.170.0220.00722.46
8.2.160.0220.00523.81
8.2.150.0200.00524.75
8.2.140.0220.00524.36
8.2.130.0190.00524.76
8.2.120.0160.00422.79
8.2.110.0160.00823.06
8.2.100.0230.00822.13
8.2.90.0170.00722.56
8.2.80.0220.00322.14
8.2.70.0160.00622.13
8.2.60.0100.00922.17
8.2.50.0250.00122.17
8.2.40.0190.00422.67
8.2.30.0130.00722.20
8.2.20.0200.00422.55
8.2.10.0210.00622.04
8.2.00.0170.00321.99
8.1.330.0090.00921.95
8.1.320.0120.00916.39
8.1.310.0070.01116.81
8.1.300.0120.00716.95
8.1.290.0160.00825.95
8.1.280.0210.00624.32
8.1.270.0210.00724.30
8.1.260.0150.00824.99
8.1.250.0200.00625.48
8.1.240.0190.00523.45
8.1.230.0220.00321.97
8.1.220.0170.00621.97
8.1.210.0160.00722.26
8.1.200.0180.00921.86
8.1.190.0270.00121.82
8.1.180.0220.00723.35
8.1.170.0170.00722.28
8.1.160.0160.00722.33
8.1.150.0160.00622.24
8.1.140.0240.00421.90
8.1.130.0170.00821.83
8.1.120.0170.00921.93
8.1.110.0190.00121.89
8.1.100.0140.00521.91
8.1.90.0230.00421.99
8.1.80.0130.00721.82
8.1.70.0270.00121.93
8.1.60.0330.00721.83
8.1.50.0340.00721.82
8.1.40.0250.00721.78
8.1.30.0250.00721.96
8.1.20.0300.00721.92
8.1.10.0260.00621.88
8.1.00.0210.00921.89
8.0.300.0200.00722.06
8.0.290.0240.00521.26
8.0.280.0220.00621.91
8.0.270.0230.00721.49
8.0.260.0240.00621.49
8.0.250.0150.00621.46
8.0.240.0180.00521.55
8.0.230.0190.01021.51
8.0.220.0210.00721.42
8.0.210.0190.00721.41
8.0.200.0150.01121.47
8.0.190.0200.00721.45
8.0.180.0240.00521.50
8.0.170.0160.01221.39
8.0.160.0240.00621.45
8.0.150.0240.00521.40
8.0.140.0230.00721.43
8.0.130.0240.00821.44
8.0.120.0230.00321.39
8.0.110.0180.00621.45
8.0.100.0280.00421.30
8.0.90.0220.00521.44
8.0.80.0200.00521.50
8.0.70.0180.00621.40
8.0.60.0180.00621.44
8.0.50.0200.00421.51
8.0.30.0180.00621.38
8.0.20.0140.00821.49
8.0.10.0180.00421.62

preferences:
65.96 ms | 403 KiB | 5 Q