3v4l.org

run code in 200+ PHP versions simultaneously
<?php $a = ( $post->post_type ?? 'not-attachment' ) === 'attachement' ; var_dump( $a );
based on LdBVV