3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dt = new DateTimeImmutable('now'); echo $dt->getTimestamp() . "\n"; $dt->__construct('tomorrow'); echo $dt->getTimestamp() . "\n";

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.10.0030.00621.81
8.3.140.0000.00819.20
8.3.130.0100.00018.34
8.3.120.0090.00618.75
8.3.110.0050.00320.94
8.3.100.0040.01524.06
8.3.90.0100.00326.77
8.3.80.0060.00316.63
8.3.70.0060.00916.88
8.3.60.0070.00718.29
8.3.50.0150.00318.22
8.3.40.0070.01418.79
8.3.30.0110.00418.83
8.3.20.0080.00024.18
8.3.10.0070.00024.66
8.3.00.0070.00026.16
8.2.250.0110.00316.50
8.2.240.0000.00817.07
8.2.230.0040.00422.58
8.2.220.0090.00937.54
8.2.210.0110.00326.77
8.2.200.0030.00716.63
8.2.190.0040.01116.63
8.2.180.0060.00925.92
8.2.170.0120.00318.99
8.2.160.0130.00322.96
8.2.150.0050.00325.66
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0050.00319.25
8.2.110.0120.00619.33
8.2.100.0180.00618.49
8.2.90.0180.00318.16
8.2.80.0160.00418.86
8.2.70.0150.00418.16
8.2.60.0160.00418.10
8.2.50.0160.00518.03
8.2.40.0110.00518.11
8.2.30.0120.00618.26
8.2.20.0160.00319.38
8.2.10.0160.00518.25
8.2.00.0130.00418.80
8.1.300.0040.00418.22
8.1.290.0070.00330.84
8.1.280.0030.01625.92
8.1.270.0030.00521.95
8.1.260.0090.00026.35
8.1.250.0000.00728.09
8.1.240.0060.00324.02
8.1.230.0110.00419.83
8.1.220.0140.00418.09
8.1.210.0130.00418.71
8.1.200.0110.00717.91
8.1.190.0150.00317.96
8.1.180.0120.00518.27
8.1.170.0150.00118.74
8.1.160.0150.00318.70
8.1.150.0110.00618.58
8.1.140.0130.00417.98
8.1.130.0160.00218.09
8.1.120.0130.00418.04
8.1.110.0160.00218.05
8.1.100.0090.00718.05
8.1.90.0130.00418.04
8.1.80.0150.00518.01
8.1.70.0160.00417.82
8.1.60.0140.00517.93
8.1.50.0120.00717.85
8.1.40.0110.00417.86
8.1.30.0140.00417.94
8.1.20.0150.00317.95
8.1.10.0180.00217.84
8.1.00.0150.00317.88
8.0.300.0130.00419.27
8.0.290.0140.00417.60
8.0.280.0140.00318.46
8.0.270.0160.00218.32
8.0.260.0140.00317.73
8.0.250.0100.00717.76
8.0.240.0130.00417.75
8.0.230.0100.00717.76
8.0.220.0130.00717.74
8.0.210.0160.00517.79
8.0.200.0150.00317.48
8.0.190.0130.00417.50
8.0.180.0150.00217.50
8.0.170.0110.00717.50
8.0.160.0130.00617.50
8.0.150.0180.00117.47
8.0.140.0120.00817.46
8.0.130.0140.00517.45
8.0.120.0150.00417.51
8.0.110.0140.00417.52
8.0.100.0160.00217.48
8.0.90.0150.00417.45
8.0.80.0170.00317.51
8.0.70.0170.00417.46
8.0.60.0110.00717.43
8.0.50.0130.00517.46
8.0.30.0120.00717.45
8.0.20.0150.00417.43
8.0.10.0180.00217.45
7.4.330.0090.00416.99
7.4.320.0160.00017.56
7.4.300.0160.00217.21
7.4.290.0140.00417.19
7.4.280.0160.00317.20
7.4.270.0130.00517.15
7.4.260.0130.00617.21
7.4.250.0120.00617.21
7.4.240.0170.00117.25
7.4.230.0160.00217.14
7.4.220.0140.00317.16
7.4.210.0120.00417.19
7.4.200.0090.00717.25
7.4.190.0130.00417.18
7.4.180.0140.00617.12
7.4.160.0110.00517.23
7.4.150.0160.00117.08
7.4.140.0130.00317.18
7.4.130.0120.00617.13
7.4.120.0110.00617.11
7.4.110.0130.00417.14
7.4.100.0120.00416.98
7.4.90.0150.00117.15
7.4.80.0120.00317.12
7.4.70.0110.00417.11
7.4.60.0070.00717.14
7.4.50.0120.00317.13
7.4.40.0090.00617.14
7.4.30.0110.00417.10
7.4.20.0120.00417.11
7.4.10.0140.00117.15
7.4.00.0110.00417.16
5.5.00.0140.00218.44
5.4.450.0150.00418.44
5.3.00.0080.00418.44
5.2.00.0080.00218.44
5.0.50.0080.00018.44
4.4.00.0050.00118.44
4.3.00.0010.00318.44

preferences:
62.1 ms | 403 KiB | 5 Q