3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = new DateTimeImmutable('now', new DateTimeZone('Pacific/Midway')); $date2 = new DateTimeImmutable('now', new DateTimeZone('US/Samoa')); echo $date->format('Y-m-d H:i:s') . PHP_EOL; echo $date2->format('Y-m-d H:i:s') . PHP_EOL; var_dump($date == $date2);

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.1.60.0000.00817.54
8.1.50.0000.00817.57
8.1.40.0040.00417.50
8.1.30.0000.01117.63
8.1.20.0000.00817.72
8.1.10.0080.00017.63
8.1.00.0030.00617.51
8.0.190.0030.00517.18
8.0.180.0060.00317.02
8.0.170.0030.00617.17
8.0.160.0060.00316.98
8.0.150.0000.00817.04
8.0.140.0050.00317.07
8.0.130.0040.00413.55
8.0.120.0040.00417.04
8.0.110.0040.00417.08
8.0.100.0000.00717.13
8.0.90.0080.00017.13
8.0.80.0030.01417.05
8.0.70.0070.00017.11
8.0.60.0040.00417.03
8.0.50.0000.00717.04
8.0.30.0060.01117.34
8.0.20.0100.00917.37
8.0.10.0030.00517.17
8.0.00.0150.01016.80
7.4.290.0070.00016.60
7.4.280.0040.00416.71
7.4.270.0000.00716.59
7.4.260.0000.00713.34
7.4.250.0050.00216.45
7.4.240.0000.00716.57
7.4.230.0070.00016.41
7.4.220.0040.00416.57
7.4.210.0090.00816.61
7.4.200.0000.00716.41
7.4.130.0140.00416.70
7.4.120.0030.01716.93
7.4.110.0120.00616.65
7.4.100.0080.00816.57
7.4.90.0150.00416.79
7.4.80.0100.00716.55
7.4.70.0070.01116.58
7.4.60.0090.01316.59
7.4.50.0090.00916.65
7.4.40.0190.00316.75
7.4.30.0140.00816.44
7.4.20.0090.01316.34
7.4.10.0060.01216.44
7.4.00.0000.01816.66
7.3.330.0000.00716.24
7.3.320.0030.00313.14
7.3.310.0040.00416.27
7.3.300.0030.00316.50
7.3.290.0080.00716.36
7.3.280.0070.01416.37
7.3.260.0120.00916.56
7.3.230.0090.00916.49
7.3.210.0110.01116.61
7.3.200.0060.01216.71
7.3.190.0100.00716.45
7.3.180.0040.01216.60
7.3.170.0120.00816.48
7.3.160.0150.00616.57
7.3.150.0090.01216.37
7.3.140.0100.01016.60
7.3.130.0140.01016.57
7.3.120.0130.00516.47
7.3.110.0070.01116.45
7.3.100.0100.00716.32
7.3.90.0120.00616.59
7.3.80.0140.00816.55
7.3.70.0120.00916.47
7.3.60.0170.00416.51
7.3.50.0100.00916.26
7.3.40.0070.01616.35
7.3.30.0120.00616.41
7.3.20.0120.00916.44
7.3.10.0070.01116.46
7.3.00.0240.00816.45
7.2.330.0060.01416.48
7.2.320.0090.01116.38
7.2.310.0080.01016.41
7.2.300.0130.00916.83
7.2.290.0100.00716.51
7.2.280.0200.00416.49
7.2.270.0110.00816.69
7.2.260.0110.01116.54
7.2.250.0100.01016.48
7.2.240.0090.00916.50
7.2.230.0070.01416.75
7.2.220.0130.00616.96
7.2.210.0040.01517.02
7.2.200.0180.00716.52
7.2.190.0120.00816.64
7.2.180.0070.01016.75
7.2.170.0150.00916.63
7.2.160.0210.00616.73
7.2.150.0030.01716.93
7.2.140.0210.00716.73
7.2.130.0110.00816.61
7.2.120.0060.01516.58
7.2.110.0110.00716.75
7.2.100.0070.01116.81
7.2.90.0110.01116.62
7.2.80.0070.01416.62
7.2.70.0140.00516.77
7.2.60.0140.00516.64
7.2.50.0070.01316.71
7.2.40.0070.01116.91
7.2.30.0060.01316.61
7.2.20.0130.01416.91
7.2.10.0080.01016.83
7.2.00.0030.01616.87

preferences:
42.49 ms | 406 KiB | 5 Q