3v4l.org

run code in 300+ PHP versions simultaneously
<?php $argv[1] = '24601.283'; list($a,$b)=explode('.',strrev($argv[1])); $f = function($s,$d) { $i=1; foreach(str_split($s) as $n) { if($n != 0) $t[] = $d.str_pad($n, $i++, '0'); } return array_reverse($t); }; echo implode('+',array_merge($f($b),$f($a,'.')));
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught ArgumentCountError: Too few arguments to function {closure}(), 1 passed in /in/dVfko on line 14 and exactly 2 expected in /in/dVfko:6 Stack trace: #0 /in/dVfko(14): {closure}('10642') #1 {main} thrown in /in/dVfko on line 6
Process exited with code 255.

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:
61 ms | 401 KiB | 8 Q