3v4l.org

run code in 300+ PHP versions simultaneously
<?php const FRUIT = ['apple','pear','peach']; define('ANIMALS', [ 'dog', 'cat', 'bird' ]); echo ANIMALS[1]; // outputs "cat" echo FRUIT[1]; // outputs "pear" ?>

preferences:
69.06 ms | 402 KiB | 5 Q