3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = NULL; $test2 = array(); echo empty($test2) ? 'yes1' : 'no1'; $test3 = serialize($test2); echo $test3.PHP_EOL; echo empty(unserialize($test)) ? 'Yes'.PHP_EOL : 'No'.PHP_EOL;

preferences:
46.2 ms | 402 KiB | 5 Q