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;
Output for git.master, git.master_jit, rfc.property-hooks
yes1a:0:{} Deprecated: unserialize(): Passing null to parameter #1 ($data) of type string is deprecated in /in/VpRhE on line 12 Yes

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
50.64 ms | 401 KiB | 8 Q