3v4l.org

run code in 300+ PHP versions simultaneously
<?php hell: try { echo PHP; echo has; echo barewords; echo kinda; } catch (\Error $e) { if (str_contains($e->getMessage(), 'Undefined constant')) { $constValue = substr($e->getMessage(), 20, -1); define($constValue, $constValue . ' '); goto hell; } }

preferences:
45.89 ms | 402 KiB | 5 Q