3v4l.org

run code in 300+ PHP versions simultaneously
<?php foreach ( [ false, null, [], '', '0' ] as $value ) { var_dump( str_replace( ' ', "\n", $value ) ); }
based on M5Tev
Output for 7.3.0 - 7.3.27, 7.4.0 - 7.4.16, 8.0.0 - 8.0.3
string(0) "" string(0) "" array(0) { } string(0) "" string(1) "0"