3v4l.org

run code in 300+ PHP versions simultaneously
<?php $d = new DateTime("now"); echo $d->format("F") . PHP_EOL; $d = new DateTime("-1month"); echo $d->format("F") . PHP_EOL; $d = new DateTime("-2months"); echo $d->format("F") . PHP_EOL;

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.60.0140.00016.63
8.3.50.0110.00420.01
8.3.40.0110.00322.08
8.3.30.0080.00819.09
8.3.20.0050.00324.18
8.3.10.0070.00024.66
8.3.00.0000.00826.16
8.2.180.0130.01025.92
8.2.170.0140.00419.02
8.2.160.0060.00922.96
8.2.150.0050.00325.66
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0040.00426.16
8.2.110.0060.00321.15
8.2.100.0080.00417.84
8.2.90.0000.00817.97
8.2.80.0050.00318.27
8.2.70.0050.00317.75
8.2.60.0060.00318.05
8.2.50.0030.00518.07
8.2.40.0030.00618.22
8.2.30.0040.00418.19
8.2.20.0040.00420.60
8.2.10.0040.00418.10
8.2.00.0030.00719.18
8.1.280.0120.00325.92
8.1.270.0040.00423.99
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0070.00322.57
8.1.230.0040.00721.09
8.1.220.0040.00417.74
8.1.210.0080.00020.43
8.1.200.0050.00517.61
8.1.190.0000.00817.48
8.1.180.0090.00018.10
8.1.170.0040.00718.80
8.1.160.0040.00418.93
8.1.150.0040.00418.80
8.1.140.0040.00417.61
8.1.130.0030.00319.01
8.1.120.0080.00017.72
8.1.110.0040.00417.68
8.1.100.0040.00417.59
8.1.90.0030.00617.70
8.1.80.0060.00617.75
8.1.70.0050.00517.57
8.1.60.0060.00317.64
8.1.50.0040.00517.64
8.1.40.0100.00617.63
8.1.30.0130.00517.75
8.1.20.0130.00517.74
8.1.10.0130.00517.66
8.1.00.0140.00517.66
8.0.300.0000.00720.15
8.0.290.0030.00616.88
8.0.280.0000.00720.31
8.0.270.0050.00218.25
8.0.260.0060.00018.58
8.0.250.0050.00217.21
8.0.240.0040.00417.19
8.0.230.0040.00417.09
8.0.220.0000.00817.01
8.0.210.0090.00017.13
8.0.200.0060.00417.12
8.0.190.0030.00517.20
8.0.180.0030.00617.11
8.0.170.0110.00517.06
8.0.160.0120.00517.04
8.0.150.0120.00516.99
8.0.140.0120.00517.00
8.0.130.0120.00517.00
8.0.120.0110.00517.05
8.0.110.0110.00517.04
8.0.100.0120.00517.02
8.0.90.0120.00517.00
8.0.80.0120.00517.05
8.0.70.0130.00517.01
8.0.60.0110.00516.96
8.0.50.0120.00516.96
8.0.30.0120.00516.96
8.0.20.0130.00417.03
8.0.10.0110.00517.09
7.4.330.0050.00015.55
7.4.320.0030.00316.65
7.4.300.0050.00416.49
7.4.290.0090.00416.53
7.4.280.0120.00416.59
7.4.270.0120.00516.58
7.4.260.0130.00416.57
7.4.250.0130.00416.58
7.4.240.0130.00416.56
7.4.230.0130.00516.58
7.4.220.0120.00416.57
7.4.210.0120.00516.58
7.4.200.0110.00516.55
7.4.190.0120.00516.62
7.4.180.0130.00416.61
7.4.160.0120.00516.60
7.4.150.0120.00416.54
7.4.140.0120.00416.46
7.4.130.0120.00516.48
7.4.120.0110.00516.48
7.4.110.0120.00416.51
7.4.100.0120.00416.54
7.4.90.0120.00416.46
7.4.80.0110.00516.47
7.4.70.0120.00516.46
7.4.60.0120.00416.47
7.4.50.0120.00516.38
7.4.40.0120.00416.40
7.4.30.0110.00516.44
7.4.20.0100.00516.45
7.4.10.0100.00516.46
7.4.00.0120.00416.49

preferences:
59.24 ms | 401 KiB | 5 Q