3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $dayAfterTomorrow = (new \DateTime())->add(new \DateInterval('P2D')); echo $dayAfterTomorrow->format('d m Y');
Output for 5.4.33, 5.5.17, hhvm-3.18.4 - 3.22.0, 7.0.21 - 7.0.31, 7.1.8 - 7.1.19, 7.1.21, 7.2.1 - 7.2.5, 7.2.7, 7.2.9, 7.3.0alpha2 - 7.3.0alpha4, 7.3.0beta2 - 7.3.0rc4
06 09 2018
Output for 5.4.0 - 5.4.32, 5.4.34 - 5.5.16, 5.5.18 - 5.6.30, hhvm-3.10.1 - 3.17.3, 7.0.0 - 7.0.20, 7.1.0 - 7.1.7, 7.1.20, 7.2.0, 7.2.6, 7.2.8, 7.3.0alpha1, 7.3.0beta1
07 06 2017
Output for 5.3.0 - 5.3.29
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /in/Y3llk on line 2
Process exited with code 255.
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.2.17
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/Y3llk on line 2 Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /in/Y3llk on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/Y3llk on line 2 Parse error: parse error, unexpected T_OBJECT_OPERATOR in /in/Y3llk on line 2
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/Y3llk on line 2 Parse error: parse error in /in/Y3llk on line 2
Process exited with code 255.