3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function silnia($n) { return ($n <= 1) ? 1 : gmp_mul($n, silnia($n-1)); } $strSilnia = (string)silnia(60); echo length($strSilnia);
based on KQnXt
Output for 7.0.0 - 7.0.5, 7.0.20 - 7.2.8, 7.3.0rc3 - 7.3.0rc4
Fatal error: Uncaught Error: Call to undefined function length() in /in/cH0qS:9 Stack trace: #0 {main} thrown in /in/cH0qS on line 9
Process exited with code 255.
Output for 7.0.6, 7.3.0alpha1 - 7.3.0beta1
Fatal error: Uncaught Error: Call to undefined function gmp_mul() in /in/cH0qS:5 Stack trace: #0 /in/cH0qS(8): silnia(60) #1 {main} thrown in /in/cH0qS on line 5
Process exited with code 255.
Output for 5.4.10 - 5.5.34, 5.6.8 - 5.6.20, 5.6.28
Fatal error: Call to undefined function length() in /in/cH0qS on line 9
Process exited with code 255.
Output for 5.3.20 - 5.3.29, 5.5.35, 5.6.21
Fatal error: Call to undefined function gmp_mul() in /in/cH0qS on line 5
Process exited with code 255.