3v4l.org

run code in 300+ PHP versions simultaneously
<?php function isDivisible_x_3($n) { if (strlen($n) == 3){ list($a,$b,$c) = str_split($n); if ($b == $a + 1 && $c == $b + 1){ $mess = "\n$n is divisible by three\n"; $mess .= "\nProof: \$n//3 == " . $n/3; return $mess; } } } $num = 234; echo isDivisible_x_3( $num );
Output for git.master, git.master_jit, rfc.property-hooks
234 is divisible by three Proof: $n//3 == 78

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:
61.47 ms | 401 KiB | 8 Q