3v4l.org

run code in 300+ PHP versions simultaneously
<?php $n = 5645645737373788558585857823452352352346234523567858578377; if ($n == 1) { echo 'Not a Prime or Composite No.'; } $set = 0; for ($index = 2; $index <= floor(sqrt($n)) + 1; $index++) { if ($n % $index === 0) { $set = 1; break; } } if ($set) { echo 'Composite'; } else { echo 'Prime'; }
Output for git.master, git.master_jit, rfc.property-hooks
Deprecated: Implicit conversion from float 5.645645737373789E+57 to int loses precision in /in/8YMZl on line 14 Composite

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