3v4l.org

run code in 300+ PHP versions simultaneously
<?php $cosas = array( 'true' => TRUE, 'false' => FALSE, 'null' => NULL, 'empty' => "", 'positive' => 1, 'negative' => -1, 'zero' => 0 ); foreach($cosas as $nombre => $cosa) { echo "* $nombre\n"; echo "\tisset:\t" . ( isset($cosa) ? "TRUE" : "FALSE" ) . "\n"; echo "\tisnull:\t" . ( is_null($cosa) ? "TRUE" : "FALSE" ) . "\n"; echo "\tempty:\t" . ( empty($cosa) ? "TRUE" : "FALSE" ) . "\n\n"; }
Output for git.master, git.master_jit, rfc.property-hooks
* true isset: TRUE isnull: FALSE empty: FALSE * false isset: TRUE isnull: FALSE empty: TRUE * null isset: FALSE isnull: TRUE empty: TRUE * empty isset: TRUE isnull: FALSE empty: TRUE * positive isset: TRUE isnull: FALSE empty: FALSE * negative isset: TRUE isnull: FALSE empty: FALSE * zero isset: TRUE isnull: FALSE empty: TRUE

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:
34.98 ms | 401 KiB | 8 Q