3v4l.org

run code in 300+ PHP versions simultaneously
<?php function is_intstr($val, $negative=false) { return preg_match("/^".($negative?"-?":"")."(0|[1-9][0-9]*)$/", $val); } foreach(range(-10, 20) as $n) { echo $n*$n*$n; echo " - "; echo is_intstr($n*$n*$n, true); echo "\n"; }
Output for git.master, git.master_jit, rfc.property-hooks
-1000 - 1 -729 - 1 -512 - 1 -343 - 1 -216 - 1 -125 - 1 -64 - 1 -27 - 1 -8 - 1 -1 - 1 0 - 1 1 - 1 8 - 1 27 - 1 64 - 1 125 - 1 216 - 1 343 - 1 512 - 1 729 - 1 1000 - 1 1331 - 1 1728 - 1 2197 - 1 2744 - 1 3375 - 1 4096 - 1 4913 - 1 5832 - 1 6859 - 1 8000 - 1

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:
41.19 ms | 402 KiB | 8 Q