3v4l.org

run code in 300+ PHP versions simultaneously
<?php $cups = array(); for($i=0; $i<100; $i++){ $cups[$i] = 0; } for($x=1; $x<100; $x++){ for($y=$x; $y<100; $y+=$x){ $cups[$y] = !$cups[$y]; } } $selected = array(); foreach($cups as $key => $value){ if($value == 1){ $selected[] = $key; } } $sel_str = implode(', ', $selected); echo $sel_str; echo "\n\n\n\n"; foreach (explode(', ', '1, 4, 9, 16, 25, 36, 49, 64, 81, 100, 121, 144, 169, 196, 225') as $num) { settype($num, 'integer'); echo decbin($num)."\n"; }
Output for git.master, git.master_jit, rfc.property-hooks
1, 4, 9, 16, 25, 36, 49, 64, 81 1 100 1001 10000 11001 100100 110001 1000000 1010001 1100100 1111001 10010000 10101001 11000100 11100001

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