3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump( null ?? 'thing' ); var_dump( false ?? 'thing' ); var_dump( '' ?? 'thing' ); var_dump( ' ' ?? 'thing' ); var_dump( 0 ?? 'thing' ); var_dump( [] ?? 'thing' );

preferences:
51.22 ms | 404 KiB | 5 Q