3v4l.org

run code in 500+ PHP versions simultaneously
<?php $di = new \DateInterval('P0Y'); $field = 'd'; $i = 1; $di->$field += $i; var_dump($di);

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.30.0010.00818.11
8.5.20.0060.01120.11
8.5.10.0130.00416.61
8.5.00.0090.01119.80
8.4.180.0130.01019.81
8.4.170.0110.01023.95
8.4.160.0090.01323.96
8.4.150.0080.00416.88
8.4.140.0090.01217.49
8.4.130.0090.01118.57
8.4.120.0110.00822.46
8.4.110.0090.01118.84
8.4.100.0090.01017.78
8.4.90.0120.01020.59
8.4.80.0160.00418.98
8.4.70.0230.01118.21
8.4.60.0260.00919.49
8.4.50.0270.00918.29
8.4.40.0270.00818.27
8.4.30.0300.00718.51
8.4.20.0310.00617.20
8.4.10.0270.00717.54
8.3.300.0120.00719.20
8.3.290.0080.01220.64
8.3.280.0130.00718.45
8.3.270.0120.00816.64
8.3.260.0120.00716.66
8.3.250.0050.00319.08
8.3.240.0110.00816.39
8.3.230.0120.00716.64
8.3.220.0100.00619.11
8.3.210.0100.00716.57
8.3.200.0270.00616.64
8.3.190.0260.00716.39
8.3.180.0250.00616.42
8.3.170.0290.00716.64
8.3.160.0290.00616.26
8.3.150.0280.00916.51
8.3.140.0280.00716.43
8.3.130.0260.00516.40
8.3.120.0250.00616.37
8.3.110.0210.00916.42
8.3.100.0290.00617.11
8.3.90.0260.00617.17
8.3.80.0250.00916.39
8.3.70.0250.00816.31
8.3.60.0270.00616.37
8.3.50.0280.00616.50
8.3.40.0250.00618.24
8.3.30.0240.00617.32
8.3.20.0230.00617.33
8.3.10.0210.00617.36
8.3.00.0240.00817.36
8.2.300.0130.01218.06
8.2.290.0090.00916.83
8.2.280.0240.00816.46
8.2.270.0230.00516.46
8.2.260.0240.00616.45
8.2.250.0230.00616.55
8.2.240.0210.00616.43
8.2.230.0180.00716.42
8.2.220.0230.00516.44
8.2.210.0280.00216.26
8.2.200.0230.00616.40
8.2.190.0210.00816.50
8.2.180.0210.00716.36
8.2.170.0270.00517.51
8.2.160.0220.00918.36
8.2.150.0240.00817.51
8.2.140.0260.00518.26
8.2.130.0260.00517.38
8.2.120.0230.00817.48
8.2.110.0240.00817.48
8.2.100.0210.01017.45
8.2.90.0280.00417.41
8.2.80.0200.00917.23
8.2.70.0200.00617.26
8.2.60.0140.00517.42
8.2.50.0140.00618.37
8.2.40.0170.00417.56
8.2.30.0150.00617.47
8.2.20.0180.00317.50
8.2.10.0230.00617.38
8.2.00.0270.00617.41
8.1.340.0130.00819.90

preferences:
50.63 ms | 857 KiB | 5 Q