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('T'));

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.0070.01416.63
8.3.50.0140.00621.98
8.3.40.0070.00719.05
8.3.30.0120.00318.79
8.3.20.0040.00420.26
8.3.10.0050.00223.43
8.3.00.0030.00519.50
8.2.180.0090.01218.66
8.2.170.0110.00322.96
8.2.160.0000.01422.19
8.2.150.0080.00024.18
8.2.140.0070.00024.66
8.2.130.0060.00317.75
8.2.120.0050.00326.35
8.2.110.0030.00719.27
8.2.100.0040.00718.03
8.2.90.0030.00519.07
8.2.80.0030.00617.97
8.2.70.0080.00517.75
8.2.60.0000.01218.04
8.2.50.0040.00418.07
8.2.40.0000.00819.09
8.2.30.0000.00720.50
8.2.20.0050.00317.93
8.2.10.0040.00417.94
8.2.00.0000.00918.11
8.1.280.0060.01025.92
8.1.270.0090.00022.19
8.1.260.0070.00028.09
8.1.250.0000.00828.09
8.1.240.0120.00621.18
8.1.230.0110.00017.77
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0040.00417.48
8.1.190.0030.00517.38
8.1.180.0000.00818.10
8.1.170.0040.00420.09
8.1.160.0000.00821.94
8.1.150.0000.00718.80
8.1.140.0000.00819.58
8.1.130.0000.00817.79
8.1.120.0000.00717.64
8.1.110.0000.00817.48
8.1.100.0030.00517.65
8.1.90.0070.00017.61
8.1.80.0040.00417.60
8.1.70.0000.00817.45
8.1.60.0000.00817.67
8.1.50.0080.00017.58
8.1.40.0030.00617.48
8.1.30.0030.00517.73
8.1.20.0000.00817.58
8.1.10.0000.00817.52
8.1.00.0000.00817.56
8.0.300.0060.00318.77
8.0.290.0040.00416.88
8.0.280.0040.00418.38
8.0.270.0040.00417.33
8.0.260.0040.00417.31
8.0.250.0000.00717.18
8.0.240.0000.00917.17
8.0.230.0040.00417.17
8.0.220.0030.00317.06
8.0.210.0070.00016.98
8.0.200.0000.00617.12
8.0.190.0040.00417.18
8.0.180.0050.00317.09
8.0.170.0080.00317.10
8.0.160.0040.00417.10
8.0.150.0080.00017.07
8.0.140.0050.00517.02
8.0.130.0000.00613.39
8.0.120.0050.00316.94
8.0.110.0000.00717.08
8.0.100.0080.00017.14
8.0.90.0040.00416.93
8.0.80.0060.00917.04
8.0.70.0000.00817.07
8.0.60.0050.00217.15
8.0.50.0030.00616.97
8.0.30.0110.00917.21
8.0.20.0130.00717.40
8.0.10.0000.00717.23
8.0.00.0110.00716.86
7.4.330.0000.00516.69
7.4.320.0000.00716.71
7.4.300.0030.00316.71
7.4.290.0030.00316.68
7.4.280.0080.00016.58
7.4.270.0000.00716.72
7.4.260.0000.00716.63
7.4.250.0050.00316.56
7.4.240.0020.00516.63
7.4.230.0000.00716.74
7.4.220.0090.00916.62
7.4.210.0030.01716.62
7.4.200.0000.00716.61
7.4.160.0130.00316.73
7.4.150.0210.00317.40
7.4.140.0130.00617.86
7.4.130.0050.01216.52
7.4.120.0080.00916.62
7.4.110.0120.00616.55
7.4.100.0170.00616.75
7.4.90.0110.00516.70
7.4.80.0180.00019.39
7.4.70.0040.01416.77
7.4.60.0070.01016.50
7.4.50.0040.01116.63
7.4.40.0100.00716.70
7.4.30.0100.00616.57
7.4.00.0040.01214.84
7.3.330.0070.00013.25
7.3.320.0000.00513.07
7.3.310.0000.00716.30
7.3.300.0070.00016.38
7.3.290.0110.00716.34
7.3.280.0060.01116.36
7.3.270.0100.00717.40
7.3.260.0100.01016.50
7.3.250.0100.00816.33
7.3.240.0110.00916.58
7.3.230.0130.00316.39
7.3.210.0040.01216.47
7.3.200.0180.00016.23
7.3.190.0090.00816.57
7.3.180.0160.00716.45
7.3.170.0030.01316.32
7.3.160.0060.00916.45
7.2.330.0060.01116.89
7.2.320.0110.00716.84
7.2.310.0100.00716.77
7.2.300.0150.00316.84
7.2.290.0110.00716.46
7.2.60.0040.01216.77
7.2.00.0170.01119.49
7.1.200.0030.00715.89
7.1.100.0030.00818.13
7.1.70.0000.00817.32
7.1.60.0100.01419.48
7.1.50.0150.00417.05
7.1.00.0070.07322.33
7.0.200.0380.00714.59
7.0.60.0000.04319.92
7.0.50.0070.07717.82
7.0.40.0100.07020.20
7.0.30.0200.06720.00
7.0.20.0300.07320.09
7.0.10.0070.08320.00
7.0.00.0100.07320.11
5.6.280.0030.03021.12
5.6.210.0130.07320.47
5.6.200.0100.04718.29
5.6.190.0170.04320.68
5.6.180.0330.04320.68
5.6.170.0330.07020.45
5.6.160.0070.08320.52
5.6.150.0100.07718.25
5.6.140.0130.05318.32
5.6.130.0030.04018.17
5.6.120.0100.05721.00
5.6.110.0130.07321.03
5.6.100.0070.06721.11
5.6.90.0070.08320.88
5.6.80.0100.05020.36
5.5.350.3830.04020.43
5.5.340.0130.07718.04
5.5.330.0100.07720.31
5.5.320.0470.08020.23
5.5.310.0170.05020.24
5.5.300.0100.08317.91
5.5.290.0070.04717.94
5.5.280.0200.07320.68
5.5.270.0030.05020.72
5.5.260.0030.06020.72
5.5.250.0000.08720.66
5.5.240.0200.06720.15

preferences:
88.72 ms | 401 KiB | 5 Q