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 ); $cosas = array_filter($cosas, function($k){ return $k !== FALSE; }); foreach($cosas as $nombre => $cosa) { echo "* $nombre\n"; echo "\tisset:\t" . ( isset($cosa) ? "TRUE" : "FALSE" ) . "\n"; echo "\ti_null:\t" . ( is_null($cosa) ? "TRUE" : "FALSE" ) . "\n"; echo "\tempty:\t" . ( empty($cosa) ? "TRUE" : "FALSE" ) . "\n"; echo "\teval:\t" . ( $cosa ? "TRUE" : "FALSE" ) . "\n\n"; }
Output for git.master, git.master_jit, rfc.property-hooks
* true isset: TRUE i_null: FALSE empty: FALSE eval: TRUE * null isset: FALSE i_null: TRUE empty: TRUE eval: FALSE * empty isset: TRUE i_null: FALSE empty: TRUE eval: FALSE * positive isset: TRUE i_null: FALSE empty: FALSE eval: TRUE * negative isset: TRUE i_null: FALSE empty: FALSE eval: TRUE * zero isset: TRUE i_null: FALSE empty: TRUE eval: FALSE

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.88 ms | 402 KiB | 8 Q