3v4l.org

run code in 300+ PHP versions simultaneously
<?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.5.24 - 5.5.31, 5.6.8 - 5.6.17
Parse error: syntax error, unexpected '=', expecting '}' in /in/R7ADn on line 3
Process exited with code 255.

preferences:
169.29 ms | 1395 KiB | 28 Q