3v4l.org

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