3v4l.org

run code in 500+ PHP versions simultaneously
<?php // Online PHP compiler to run PHP program online // Print "Start small. Ship something." message echo "Start small. Ship something."; $array = [ 'a' => 'dog', 'b' => 'cat', 'c' => 'cow', 'd' => 'duck', 'e' => 'goose', 'f' => 'elephant' ]; var_dump(array_all($array, function (string $value) { return strlen($value) < 12; })); ?><?php // Online PHP compiler to run PHP program online // Print "Start small. Ship something." message echo "Start small. Ship something."; $array = [ 'a' => 'dog', 'b' => 'cat', 'c' => 'cow', 'd' => 'duck', 'e' => 'goose', 'f' => 'elephant' ]; var_dump(array_all($array, function (string $value) { return strlen($value) < 12; })); ?>
Output for git.master_jit, git.master
Start small. Ship something.bool(true) Start small. Ship something.bool(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:
50.22 ms | 754 KiB | 4 Q