3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo ((new \DateTimeImmutable("--1 year"))->format('Y'));

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.5.20.0080.00920.17
8.5.10.0060.00416.54
8.5.00.0120.01020.09
8.4.170.0120.00922.06
8.4.160.0130.01121.94
8.4.150.0020.00014.05
8.4.140.0120.00917.36
8.4.130.0170.00317.77
8.4.120.0130.00620.38
8.4.110.0110.00822.47
8.4.100.0110.01017.99
8.4.90.0090.00818.51
8.4.80.0040.00417.89
8.4.70.0060.01017.70
8.4.60.0110.00724.11
8.4.50.0050.00420.35
8.4.40.0030.01717.69
8.4.30.0200.01019.03
8.4.20.0330.00918.37
8.4.10.0250.00817.78
8.3.300.0120.00918.63
8.3.290.0110.00920.78
8.3.280.0120.01118.60
8.3.270.0100.00916.76
8.3.260.0040.00416.68
8.3.250.0050.00419.05
8.3.240.0110.00716.66
8.3.230.0130.00616.29
8.3.220.0120.00717.29
8.3.210.0120.00618.46
8.3.200.0060.00216.85
8.3.190.0130.00317.11
8.3.180.0080.01116.69
8.3.170.0100.00518.95
8.3.160.0240.00617.64
8.3.150.0260.00716.69
8.3.140.0310.00616.50
8.3.130.0260.00716.95
8.3.120.0260.00716.81
8.3.110.0280.00816.46
8.3.100.0300.00916.43
8.3.90.0330.00716.50
8.3.80.0320.00916.36
8.3.70.0320.00616.47
8.3.60.0290.00716.93
8.3.50.0250.00816.50
8.3.40.0240.00617.43
8.3.30.0270.00817.33
8.3.20.0260.00717.47
8.3.10.0270.00817.42
8.3.00.0170.00617.96
8.2.300.0130.00821.93
8.2.290.0110.00820.58
8.2.280.0110.00818.30
8.2.270.0210.00717.21
8.2.260.0250.00916.47
8.2.250.0260.00816.71
8.2.240.0250.00916.65
8.2.230.0230.01016.46
8.2.220.0280.00516.56
8.2.210.0260.00816.41
8.2.200.0260.00916.61
8.2.190.0310.00516.57
8.2.180.0270.00716.54
8.2.170.0340.00517.69
8.2.160.0280.00817.64
8.2.150.0300.00717.64
8.2.140.0280.00817.49
8.2.130.0300.00817.45
8.2.120.0320.00717.49
8.2.110.0310.00817.55
8.2.100.0310.00617.60
8.2.90.0300.00717.55
8.2.80.0290.00517.56
8.2.70.0260.00617.56
8.2.60.0280.00717.64
8.2.50.0270.00717.49
8.2.40.0260.00617.75
8.2.30.0260.00617.56
8.2.20.0280.00717.53
8.2.10.0270.00617.49
8.2.00.0250.00717.60
8.1.340.0120.00819.64
8.1.330.0100.00821.77
8.1.320.0140.00716.37
8.1.310.0270.01016.09
8.1.300.0280.00716.14
8.1.290.0270.00816.10
8.1.280.0270.00816.00
8.1.270.0290.00717.42
8.1.260.0270.00517.48
8.1.250.0260.00717.41
8.1.240.0240.00617.32
8.1.230.0260.00517.41
8.1.220.0240.01017.40
8.1.210.0250.00717.29
8.1.200.0260.00717.31
8.1.190.0280.00717.17
8.1.180.0260.00817.26
8.1.170.0230.00817.29
8.1.160.0260.00917.28
8.1.150.0250.01017.42
8.1.140.0270.00817.26
8.1.130.0250.00717.35
8.1.120.0250.00717.41
8.1.110.0250.00917.29
8.1.100.0270.00617.33
8.1.90.0300.00517.35
8.1.80.0260.00717.25
8.1.70.0260.00717.41
8.1.60.0250.00817.42
8.1.50.0230.00817.33
8.1.40.0250.00817.47
8.1.30.0250.00717.39
8.1.20.0280.00717.45
8.1.10.0250.00917.41
8.1.00.0280.00717.39

preferences:
70.14 ms | 403 KiB | 5 Q