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 strpos("o", $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
Deprecated: strpos(): Passing null to parameter #2 ($needle) of type string is deprecated in /in/Ygr6a on line 12 * true isset: TRUE i_null: FALSE empty: FALSE eval: TRUE * 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:
43.97 ms | 402 KiB | 8 Q