3v4l.org

run code in 300+ PHP versions simultaneously
<?php $account_numbers = ["1234567890","12345678901234567890","1234567890123"]; $utility_id = 1; foreach ($account_numbers as $accountNumber) { //$customerNumber = str_pad($utility_id, 3, "0", STR_PAD_RIGHT); $hexnum = hexdec(md5($accountNumber)); $smallnum = $hexnum % 10; echo $smallnum . $PHP_EOL; }
Output for git.master, git.master_jit, rfc.property-hooks
Deprecated: Implicit conversion from float 3.0842214920312842E+38 to int loses precision in /in/6hJTI on line 8 Warning: Undefined variable $PHP_EOL in /in/6hJTI on line 9 0 Deprecated: Implicit conversion from float 3.369899269834996E+38 to int loses precision in /in/6hJTI on line 8 Warning: Undefined variable $PHP_EOL in /in/6hJTI on line 9 0 Deprecated: Implicit conversion from float 3.1697201869177758E+38 to int loses precision in /in/6hJTI on line 8 Warning: Undefined variable $PHP_EOL in /in/6hJTI on line 9 0

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:
60.31 ms | 402 KiB | 8 Q