3v4l.org

run code in 300+ PHP versions simultaneously
<?php $values = array( 'string_empty' => '', 'string_bool_f' => 'false', 'string_bool_t' => 'true', 'int_0' => 0, 'int_1' => 1, 'int_neg' => -100, 'int_norm' => 100, 'array_empty' => array(), 'array_null_val' => array(null), ); $mask = "%-15.15s %7.7s\n"; // Print header printf($mask, 'Name', 'Value'); echo PHP_EOL; foreach ($values as $name => $val) { $empty = empty($val) ? 'true' : 'false'; printf($mask, $name, $empty); }
Output for git.master, git.master_jit, rfc.property-hooks
Name Value string_empty true string_bool_f false string_bool_t false int_0 true int_1 false int_neg false int_norm false array_empty true array_null_val 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:
36.89 ms | 401 KiB | 8 Q