3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(['a', "b", true, 12, 12.6, null, ['a', "b", true, 12, 12.6, null], (object)['a' => (object)[], 'b' => function(){}, 'c' => new Date()]]);
based on tKRUI
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Class 'Date' not found in /in/ouQQn:2 Stack trace: #0 {main} thrown in /in/ouQQn on line 2
Process exited with code 255.
Output for 5.4.12 - 5.6.28
Fatal error: Class 'Date' not found in /in/ouQQn on line 2
Process exited with code 255.
Output for 5.3.22 - 5.3.29
Parse error: syntax error, unexpected '[', expecting ')' in /in/ouQQn on line 2
Process exited with code 255.