3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php try { $date = new DateTime($row['value']); } catch (Exception $e) { echo $e->getMessage(); exit(1); } echo $date->format("F j, Y"); ?>
Output for 5.6.28, 7.0.14 - 7.1.0
Notice: Undefined variable: row in /in/XiWoR on line 4 February 25, 2014
Output for 7.0.6
Notice: Undefined variable: row in /in/XiWoR on line 4 May 3, 2016
Output for 5.6.14, 7.0.5
Notice: Undefined variable: row in /in/XiWoR on line 4 April 2, 2016
Output for 7.0.4
Notice: Undefined variable: row in /in/XiWoR on line 4 March 10, 2016
Output for 7.0.3
Notice: Undefined variable: row in /in/XiWoR on line 4 March 18, 2016
Output for 7.0.2
Notice: Undefined variable: row in /in/XiWoR on line 4 March 22, 2016
Output for 7.0.1
Notice: Undefined variable: row in /in/XiWoR on line 4 March 23, 2016
Output for 7.0.0
Notice: Undefined variable: row in /in/XiWoR on line 4 March 26, 2016
Output for hhvm-3.12.0
Notice: Undefined variable: row in /in/XiWoR on line 4 March 31, 2016
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.6.21
Notice: Undefined variable: row in /in/XiWoR on line 4 May 2, 2016
Output for 5.6.20
Notice: Undefined variable: row in /in/XiWoR on line 4 April 9, 2016
Output for 5.6.19
Notice: Undefined variable: row in /in/XiWoR on line 4 March 7, 2016
Output for 5.6.18
Notice: Undefined variable: row in /in/XiWoR on line 4 March 14, 2016
Output for 5.6.17
Notice: Undefined variable: row in /in/XiWoR on line 4 March 19, 2016
Output for 5.6.16
Notice: Undefined variable: row in /in/XiWoR on line 4 March 27, 2016
Output for 5.6.15
Notice: Undefined variable: row in /in/XiWoR on line 4 March 28, 2016
Output for 5.6.13
Notice: Undefined variable: row in /in/XiWoR on line 4 April 15, 2016
Output for 5.6.12
Notice: Undefined variable: row in /in/XiWoR on line 4 April 19, 2016
Output for 5.6.11
Notice: Undefined variable: row in /in/XiWoR on line 4 April 23, 2016
Output for 5.6.10
Notice: Undefined variable: row in /in/XiWoR on line 4 April 25, 2016
Output for 5.6.9
Notice: Undefined variable: row in /in/XiWoR on line 4 April 27, 2016
Output for 5.6.8
Notice: Undefined variable: row in /in/XiWoR on line 4 April 29, 2016
Output for 5.6.7
Notice: Undefined variable: row in /in/XiWoR on line 4 May 25, 2016
Output for 5.5.35
Notice: Undefined variable: row in /in/XiWoR on line 4 May 22, 2016
Output for 5.5.34
Notice: Undefined variable: row in /in/XiWoR on line 4 April 10, 2016
Output for 5.5.33
Notice: Undefined variable: row in /in/XiWoR on line 4 March 8, 2016
Output for 5.5.32
Notice: Undefined variable: row in /in/XiWoR on line 4 March 17, 2016
Output for 5.5.31
Notice: Undefined variable: row in /in/XiWoR on line 4 March 20, 2016
Output for 5.5.30
Notice: Undefined variable: row in /in/XiWoR on line 4 April 1, 2016
Output for 5.5.29
Notice: Undefined variable: row in /in/XiWoR on line 4 April 16, 2016
Output for 5.5.28
Notice: Undefined variable: row in /in/XiWoR on line 4 April 20, 2016
Output for 5.5.27
Notice: Undefined variable: row in /in/XiWoR on line 4 April 22, 2016
Output for 5.5.26
Notice: Undefined variable: row in /in/XiWoR on line 4 April 26, 2016
Output for 5.5.25
Notice: Undefined variable: row in /in/XiWoR on line 4 April 28, 2016
Output for 5.5.24
Notice: Undefined variable: row in /in/XiWoR on line 4 May 23, 2016
Output for 5.2.0 - 5.4.45
Notice: Undefined variable: row in /in/XiWoR on line 4 October 15, 2015
Output for 5.0.0 - 5.1.6
Fatal error: Class 'DateTime' not found in /in/XiWoR on line 4
Process exited with code 255.
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected '{' in /in/XiWoR on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1
Parse error: parse error, unexpected '{' in /in/XiWoR on line 3
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/XiWoR on line 3
Process exited with code 255.