3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php declare(ticks=CONSTANT); declare(strict_types=1); namespace Acme; class Foo {} new Foo;
based on KVmXi
Output for 7.0.20, 7.1.5 - 7.2.0
Fatal error: declare(ticks) value must be a literal in /in/visB5 on line 1
Process exited with code 255.
Output for 7.0.0 - 7.0.6, 7.1.0
Output for 5.3.20 - 5.6.28
Warning: Cannot convert to ordinal value in /in/visB5 on line 1 Warning: Unsupported declare 'strict_types' in /in/visB5 on line 2