3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = new DateTimeImmutable(); $y = new DateTimeImmutable(); $y = $y->add(new DateInterval("P1D")); var_dump((true ? $x : $y)->format('U'));

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.0040.01116.38
8.3.50.0140.00921.95
8.3.40.0040.01118.92
8.3.30.0140.00018.79
8.3.20.0050.00320.34
8.3.10.0000.00823.48
8.3.00.0030.00519.51
8.2.180.0070.01518.79
8.2.170.0120.00622.96
8.2.160.0030.01020.43
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0090.00017.75
8.2.120.0040.00426.35
8.2.110.0090.00022.26
8.2.100.0110.00017.68
8.2.90.0000.00818.79
8.2.80.0090.00017.97
8.2.70.0000.00817.75
8.2.60.0050.00518.03
8.2.50.0040.00418.07
8.2.40.0000.00719.43
8.2.30.0000.00820.50
8.2.20.0040.00417.93
8.2.10.0070.00018.05
8.2.00.0000.00817.97
8.1.280.0130.00325.92
8.1.270.0090.00022.05
8.1.260.0060.00328.09
8.1.250.0000.00728.09
8.1.240.0040.00423.98
8.1.230.0000.01117.54
8.1.220.0080.00017.74
8.1.210.0050.00318.77
8.1.200.0000.00917.47
8.1.190.0060.00317.25
8.1.180.0050.00318.10
8.1.170.0040.00420.25
8.1.160.0040.00421.95
8.1.150.0000.00718.90
8.1.140.0050.00319.63
8.1.130.0030.00517.68
8.1.120.0070.00017.52
8.1.110.0040.00417.55
8.1.100.0000.00717.43
8.1.90.0000.00717.62
8.1.80.0030.00417.65
8.1.70.0070.00017.53
8.1.60.0030.00517.54
8.1.50.0000.00817.56
8.1.40.0030.00617.47
8.1.30.0040.00417.55
8.1.20.0040.00417.68
8.1.10.0040.00417.51
8.1.00.0030.00617.64
8.0.300.0040.00418.77
8.0.290.0080.00016.88
8.0.280.0000.00818.36
8.0.270.0030.00317.30
8.0.260.0000.00617.19
8.0.250.0070.00017.04
8.0.240.0040.00417.12
8.0.230.0050.00217.02
8.0.220.0000.00717.12
8.0.210.0030.00316.92
8.0.200.0000.00717.13
8.0.190.0030.00517.05
8.0.180.0040.00417.09
8.0.170.0030.00717.07
8.0.160.0030.00317.01
8.0.150.0040.00417.02
8.0.140.0090.00017.02
8.0.130.0030.00313.37
8.0.120.0060.00317.05
8.0.110.0040.00417.11
8.0.100.0050.00317.11
8.0.90.0000.00717.00
8.0.80.0060.00917.07
8.0.70.0080.00017.06
8.0.60.0040.00416.94
8.0.50.0030.00516.96
8.0.30.0050.01417.11
8.0.20.0110.00917.40
8.0.10.0050.00217.24
8.0.00.0130.00816.88
7.4.330.0050.00016.83
7.4.320.0030.00316.59
7.4.300.0060.00016.71
7.4.290.0030.00316.48
7.4.280.0060.00316.71
7.4.270.0040.00416.57
7.4.260.0000.00716.67
7.4.250.0050.00316.54
7.4.240.0020.00516.65
7.4.230.0030.00316.77
7.4.220.0110.00616.66
7.4.210.0040.01316.69
7.4.200.0000.00716.49
7.4.160.0090.00616.76
7.4.150.0140.00317.40
7.4.140.0110.01017.86
7.4.130.0200.00716.55
7.4.120.0060.01116.61
7.4.110.0090.00916.66
7.4.100.0110.01416.54
7.4.90.0120.00616.77
7.4.80.0000.02319.39
7.4.70.0100.00716.55
7.4.60.0160.00316.61
7.4.50.0030.01116.48
7.4.40.0060.00916.57
7.4.30.0080.00916.82
7.4.00.0080.00714.85
7.3.330.0000.00613.20
7.3.320.0000.00513.16
7.3.310.0000.00716.21
7.3.300.0000.00616.37
7.3.290.0050.00916.30
7.3.280.0070.01116.35
7.3.270.0140.00317.40
7.3.260.0130.00716.30
7.3.240.0120.00816.36
7.3.230.0120.00616.39
7.3.210.0090.00916.53
7.3.200.0060.01216.41
7.3.190.0040.01116.58
7.3.180.0060.01016.34
7.3.170.0100.00616.69
7.3.160.0030.01316.36
7.3.120.0100.00714.84
7.3.110.0030.01014.88
7.3.100.0070.00714.70
7.3.90.0030.00714.93
7.3.80.0070.00714.69
7.3.70.0090.00614.70
7.3.60.0030.01014.88
7.3.50.0070.00714.86
7.3.40.0000.01414.56
7.3.30.0090.00014.83
7.3.20.0070.00716.71
7.3.10.0100.00716.55
7.3.00.0100.00416.54
7.2.330.0080.01216.57
7.2.320.0120.00616.82
7.2.310.0100.01016.62
7.2.300.0080.00816.52
7.2.290.0130.01016.46
7.2.250.0130.00615.20
7.2.240.0070.01015.32
7.2.230.0060.00915.07
7.2.220.0030.00615.21
7.2.210.0030.01215.23
7.2.200.0060.01314.96
7.2.190.0040.00714.97
7.2.180.0040.01114.92
7.2.170.0060.00915.00
7.2.130.0070.00717.00
7.2.120.0040.01116.73
7.2.110.0130.00017.02
7.2.100.0030.01016.82
7.2.90.0090.00616.79
7.2.80.0030.01016.87
7.2.70.0070.00717.01
7.2.60.0030.01116.89
7.2.50.0140.00316.79
7.2.40.0040.00716.81
7.2.30.0030.01417.08
7.2.20.0000.01417.01
7.2.10.0000.00917.06
7.2.00.0130.01118.20
7.1.330.0060.00915.71
7.1.320.0030.00715.70
7.1.310.0040.00815.66
7.1.300.0090.00315.95
7.1.290.0030.00615.58
7.1.280.0030.00615.79
7.1.270.0030.01015.89
7.1.260.0050.00515.81
7.1.250.0000.01215.85
7.1.200.0110.00015.80
7.1.100.0070.00718.06
7.1.70.0000.00817.29
7.1.60.0210.00319.48
7.1.50.0070.01016.76
7.1.00.0000.08022.32
7.0.200.0270.00615.05
7.0.60.0070.05019.94
7.0.50.0070.08317.79
7.0.40.0030.07720.03
7.0.30.0130.04720.04
7.0.20.0270.06020.33
7.0.10.0030.09020.20
7.0.00.0030.04320.09
5.6.280.0000.03321.04
5.6.210.0130.03320.53
5.6.200.0070.07718.22
5.6.190.0070.05320.45
5.6.180.0270.04720.57
5.6.170.0270.07320.62
5.6.160.0100.08020.44
5.6.150.0000.07018.25
5.6.140.0030.08718.28
5.6.130.0100.07718.18
5.6.120.0070.04021.00
5.6.110.0070.09021.14
5.6.100.0100.05321.02
5.6.90.0070.08721.10
5.6.80.0030.08020.44
5.5.350.4230.04020.44
5.5.340.0170.06717.94
5.5.330.0070.08720.19
5.5.320.0470.08320.23
5.5.310.0330.04720.50
5.5.300.0100.03717.96
5.5.290.0130.05017.94
5.5.280.0100.06020.77
5.5.270.0030.08720.86
5.5.260.0100.06020.96
5.5.250.0230.03720.59
5.5.240.0200.08020.04

preferences:
46.26 ms | 401 KiB | 5 Q