3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dec = 24; $bin = null; while($dec != 0) { $bin = ($dec % 2) . $bin; $dec = $dec >> 1; } echo $bin . PHP_EOL; $dec = 19; $bin = null; while($dec != 0) { $bin = ($dec % 2) . $bin; $dec = intdiv($dec, 2); } echo $bin . PHP_EOL; $dec = 37; $bin = null; while($dec != 0) { $bin = ($dec % 2) . $bin; $dec = intval($dec / 2); } echo $bin . PHP_EOL; $dec = 17; $bin = null; while($dec != 0) { $bin = ($dec % 2) . $bin; $dec = floor($dec / 2); } echo $bin . PHP_EOL;
Output for git.master, git.master_jit, rfc.property-hooks
11000 10011 100101 10001

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:
184.13 ms | 405 KiB | 5 Q