3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $number1="123456789"; $text= vsprintf%b; echo ("this is binary format($text)"); ?>
based on kAvAT
Output for 7.2.0
Warning: Use of undefined constant vsprintf - assumed 'vsprintf' (this will throw an Error in a future version of PHP) in /in/DauLO on line 3 Warning: Use of undefined constant b - assumed 'b' (this will throw an Error in a future version of PHP) in /in/DauLO on line 3 Warning: A non-numeric value encountered in /in/DauLO on line 3 Warning: A non-numeric value encountered in /in/DauLO on line 3 Fatal error: Uncaught DivisionByZeroError: Modulo by zero in /in/DauLO:3 Stack trace: #0 {main} thrown in /in/DauLO on line 3
Process exited with code 255.
Output for 7.1.0 - 7.1.10
Notice: Use of undefined constant vsprintf - assumed 'vsprintf' in /in/DauLO on line 3 Notice: Use of undefined constant b - assumed 'b' in /in/DauLO on line 3 Warning: A non-numeric value encountered in /in/DauLO on line 3 Warning: A non-numeric value encountered in /in/DauLO on line 3 Fatal error: Uncaught DivisionByZeroError: Modulo by zero in /in/DauLO:3 Stack trace: #0 {main} thrown in /in/DauLO on line 3
Process exited with code 255.
Output for 7.0.0 - 7.0.20
Notice: Use of undefined constant vsprintf - assumed 'vsprintf' in /in/DauLO on line 3 Notice: Use of undefined constant b - assumed 'b' in /in/DauLO on line 3 Fatal error: Uncaught DivisionByZeroError: Modulo by zero in /in/DauLO:3 Stack trace: #0 {main} thrown in /in/DauLO on line 3
Process exited with code 255.
Output for 5.3.21 - 5.6.28
Notice: Use of undefined constant vsprintf - assumed 'vsprintf' in /in/DauLO on line 3 Notice: Use of undefined constant b - assumed 'b' in /in/DauLO on line 3 Warning: Division by zero in /in/DauLO on line 3 this is binary format()