3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = new \DateTime(); $t1 = $date->getTimestamp(); $t2 = $date->format('U'); print gettype($t1) . PHP_EOL; print gettype($t2) . 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.70.0160.00316.63
8.3.60.0130.00616.73
8.3.50.0140.00617.45
8.3.40.0160.00018.79
8.3.30.0150.00018.56
8.3.20.0080.00020.29
8.3.10.0000.00821.95
8.3.00.0030.00623.66
8.2.190.0000.01716.58
8.2.180.0040.01118.29
8.2.170.0080.00622.96
8.2.160.0090.00920.34
8.2.150.0000.00724.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0070.00021.09
8.2.110.0030.00619.33
8.2.100.0110.00018.22
8.2.90.0000.00819.27
8.2.80.0040.00417.97
8.2.70.0040.00417.63
8.2.60.0000.01017.93
8.2.50.0050.00218.22
8.2.40.0000.00920.58
8.2.30.0030.00621.10
8.2.20.0000.00818.00
8.2.10.0000.00718.25
8.2.00.0000.00718.23
8.1.280.0040.01125.92
8.1.270.0000.00822.20
8.1.260.0030.00626.35
8.1.250.0050.00328.09
8.1.240.0060.00322.62
8.1.230.0070.00420.27
8.1.220.0030.00517.79
8.1.210.0060.00318.77
8.1.200.0000.00917.35
8.1.190.0000.00817.23
8.1.180.0050.00518.10
8.1.170.0000.00818.84
8.1.160.0000.00718.96
8.1.150.0030.00320.05
8.1.140.0040.00419.59
8.1.130.0030.00319.07
8.1.120.0070.00017.70
8.1.110.0030.00317.53
8.1.100.0050.00217.64
8.1.90.0000.00717.65
8.1.80.0000.00717.64
8.1.70.0000.00717.55
8.1.60.0040.00717.69
8.1.50.0050.00217.57
8.1.40.0030.00617.66
8.1.30.0040.00417.61
8.1.20.0070.00017.82
8.1.10.0060.00317.68
8.1.00.0030.00617.69
8.0.300.0050.00319.07
8.0.290.0040.00416.88
8.0.280.0040.00418.55
8.0.270.0070.00017.34
8.0.260.0030.00318.57
8.0.250.0000.00717.15
8.0.240.0000.00817.05
8.0.230.0000.00717.14
8.0.220.0000.00716.98
8.0.210.0040.00417.09
8.0.200.0030.00317.15
8.0.190.0000.00717.11
8.0.180.0050.00317.09
8.0.170.0030.00317.11
8.0.160.0030.00617.01
8.0.150.0000.00816.96
8.0.140.0040.00417.02
8.0.130.0000.00513.48
8.0.120.0080.00016.95
8.0.110.0070.00017.11
8.0.100.0000.00817.08
8.0.90.0030.00317.16
8.0.80.0000.01517.13
8.0.70.0050.00317.02
8.0.60.0050.00217.02
8.0.50.0050.00316.99
8.0.30.0090.00917.26
8.0.20.0140.00917.40
8.0.10.0040.00417.07
8.0.00.0110.00616.96
7.4.330.0000.00515.55
7.4.320.0030.00316.75
7.4.300.0000.00616.71
7.4.290.0070.00316.73
7.4.280.0040.00416.68
7.4.270.0060.00016.64
7.4.260.0030.00316.73
7.4.250.0030.00416.61
7.4.240.0080.00016.75
7.4.230.0030.00316.45
7.4.220.0120.01216.55
7.4.210.0090.00916.80
7.4.200.0070.00016.73
7.4.160.0140.00816.61
7.4.150.0090.00917.40
7.4.140.0120.00717.86
7.4.130.0070.01116.65
7.4.120.0130.00516.50
7.4.110.0080.01116.63
7.4.100.0170.00916.65
7.4.90.0070.01016.64
7.4.80.0200.00319.39
7.4.70.0070.01016.64
7.4.60.0000.01516.70
7.4.50.0110.00216.37
7.4.40.0030.01316.73
7.4.30.0120.00616.70
7.4.00.0040.01215.04
7.3.330.0020.00213.23
7.3.320.0030.00313.28
7.3.310.0070.00016.35
7.3.300.0000.00716.35
7.3.290.0080.01016.34
7.3.280.0070.00916.40
7.3.270.0090.00917.40
7.3.260.0130.01216.45
7.3.250.0160.00416.66
7.3.240.0100.00616.46
7.3.230.0140.00316.54
7.3.210.0060.00916.39
7.3.200.0120.00316.50
7.3.190.0090.00616.72
7.3.180.0130.00316.57
7.3.170.0180.00316.49
7.3.160.0060.01116.59
7.2.330.0140.00816.87
7.2.320.0100.01316.99
7.2.310.0120.00816.59
7.2.300.0100.00816.75
7.2.290.0080.01216.90
7.2.80.0070.00416.95
7.2.60.0090.00317.14
7.1.200.0000.00915.93
7.1.100.0060.00918.45
7.1.90.0120.00318.47
7.1.80.0060.00617.96
7.1.70.0030.00917.22
7.1.60.0190.00934.89
7.1.50.0180.01135.00
7.1.40.0170.01134.64
7.1.30.0170.01034.50
7.1.20.0220.00634.45
7.1.10.0050.00916.77
7.1.00.0070.00616.78
7.0.240.0030.01217.71
7.0.230.0060.00917.86
7.0.220.0060.00617.99
7.0.210.0110.00316.73
7.0.200.0000.01216.82
7.0.190.0090.00716.86
7.0.180.0060.00916.49
7.0.170.0040.01516.52
7.0.160.0030.01316.46
7.0.150.0090.00616.26
7.0.140.0030.00916.43
7.0.130.0100.00716.52
7.0.120.0000.01316.32
7.0.110.0080.00516.46
7.0.100.0030.01516.45
7.0.90.0060.00916.32
7.0.80.0030.01316.54
7.0.70.0030.01216.46
7.0.60.0000.01416.27
7.0.50.0110.00416.50
7.0.40.0060.00816.50
7.0.30.0000.01316.47
7.0.20.0070.00716.38
7.0.10.0040.00916.57
7.0.00.0040.00816.43

preferences:
26.18 ms | 401 KiB | 5 Q