3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $day = new DateTime($options['date']); $day = $day->format('j'); echo $day;
based on 9Dlja
Output for 5.2.0 - 5.4.45, 5.5.33, 5.6.28, 7.0.20 - 7.2.0
Notice: Undefined variable: options in /in/iPu9Y on line 3 8
Output for 7.0.5 - 7.0.6
Notice: Undefined variable: options in /in/iPu9Y on line 3 3
Output for 5.6.20, 7.0.4
Notice: Undefined variable: options in /in/iPu9Y on line 3 10
Output for 7.0.3
Notice: Undefined variable: options in /in/iPu9Y on line 3 18
Output for 5.5.27, 5.5.35, 7.0.2
Notice: Undefined variable: options in /in/iPu9Y on line 3 22
Output for 5.6.11, 7.0.1
Notice: Undefined variable: options in /in/iPu9Y on line 3 23
Output for 5.6.9, 7.0.0
Notice: Undefined variable: options in /in/iPu9Y on line 3 27
Output for 5.6.14, 5.6.21
Notice: Undefined variable: options in /in/iPu9Y on line 3 2
Output for 5.6.19
Notice: Undefined variable: options in /in/iPu9Y on line 3 7
Output for 5.6.13, 5.6.18
Notice: Undefined variable: options in /in/iPu9Y on line 3 15
Output for 5.6.12, 5.6.17
Notice: Undefined variable: options in /in/iPu9Y on line 3 19
Output for 5.5.25, 5.6.16
Notice: Undefined variable: options in /in/iPu9Y on line 3 28
Output for 5.6.8, 5.6.15
Notice: Undefined variable: options in /in/iPu9Y on line 3 29
Output for 5.6.10
Notice: Undefined variable: options in /in/iPu9Y on line 3 25
Output for 5.5.34
Notice: Undefined variable: options in /in/iPu9Y on line 3 11
Output for 5.5.32
Notice: Undefined variable: options in /in/iPu9Y on line 3 17
Output for 5.5.31
Notice: Undefined variable: options in /in/iPu9Y on line 3 20
Output for 5.5.30
Notice: Undefined variable: options in /in/iPu9Y on line 3 1
Output for 5.5.29
Notice: Undefined variable: options in /in/iPu9Y on line 3 16
Output for 5.5.28
Notice: Undefined variable: options in /in/iPu9Y on line 3 21
Output for 5.5.26
Notice: Undefined variable: options in /in/iPu9Y on line 3 26
Output for 5.5.24
Notice: Undefined variable: options in /in/iPu9Y on line 3 24
Output for 5.0.0 - 5.1.6
Fatal error: Class 'DateTime' not found in /in/iPu9Y on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: datetime in /in/iPu9Y on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: datetime in /in/iPu9Y on line 3