3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo strlen("list($a,$b)=explode('.',$argv[1]);$f=function($s,$d){$i=0;foreach(str_split($s)as$n){$i++;if($n!=0)$t[]=$d.str_pad($n,$i,'0');}return $t;};echo implode(' + ',array_merge(array_reverse($f(strrev($a),'')),$f($b,'.')));");
Output for 7.0.0 - 7.0.2
Parse error: syntax error, unexpected '=', expecting :: (T_PAAMAYIM_NEKUDOTAYIM) in /in/R7ADn on line 3
Process exited with code 255.
Output for 5.3.21 - 5.6.17
Parse error: syntax error, unexpected '=', expecting '}' in /in/R7ADn on line 3
Process exited with code 255.