3v4l.org

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

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
209.69 ms | 2002 KiB | 11 Q