3v4l.org

run code in 500+ PHP versions simultaneously
<?php $stuff = (string) $things ?? 'nothing'; var_dump( $stuff ); echo "\n---\n"; $stuff = (string) ( $things ?? 'nothing' ); var_dump( $stuff );

preferences:
21.71 ms | 474 KiB | 4 Q