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:
42.84 ms | 793 KiB | 5 Q