3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Antes de PHP 8.1, se podían utilizar números decimales que PHP // convertía a enteros quitando la parte decimal. // Todavía se puede hacer, pero PHP genera errores E_DEPRECATED print "<p>" . intdiv(17.1, 3.1) . "</p>\n"; print "<p>" . 17.1 % 3.1 . "</p>\n"; ?>
Output for git.master_jit, git.master
Deprecated: Implicit conversion from float 17.1 to int loses precision in /in/QKJUr on line 6 Deprecated: Implicit conversion from float 3.1 to int loses precision in /in/QKJUr on line 6 <p>5</p> Deprecated: Implicit conversion from float 17.1 to int loses precision in /in/QKJUr on line 7 Deprecated: Implicit conversion from float 3.1 to int loses precision in /in/QKJUr on line 7 <p>2</p>

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:
29.03 ms | 406 KiB | 5 Q