3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php 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).PHP_EOL; }
Output for 4.3.10 - 4.4.9, 5.0.2 - 7.1.0
1 100 1001 10000 11001 100100 110001 1000000 1010001 1100100 1111001 10010000 10101001 11000100 11100001
Output for 4.3.0 - 4.3.9, 5.0.0 - 5.0.1
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/ccKME on line 5 1PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/ccKME on line 5 100PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/ccKME on line 5 1001PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/ccKME on line 5 10000PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/ccKME on line 5 11001PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/ccKME on line 5 100100PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/ccKME on line 5 110001PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/ccKME on line 5 1000000PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/ccKME on line 5 1010001PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/ccKME on line 5 1100100PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/ccKME on line 5 1111001PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/ccKME on line 5 10010000PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/ccKME on line 5 10101001PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/ccKME on line 5 11000100PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/ccKME on line 5 11100001PHP_EOL