3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php declare(strict_types=1); function a(int $a){} strlen();
based on rXdZD
Output for 7.1.0 - 7.2.0
Fatal error: Uncaught ArgumentCountError: strlen() expects exactly 1 parameter, 0 given in /in/ntq4E:5 Stack trace: #0 /in/ntq4E(5): strlen() #1 {main} thrown in /in/ntq4E on line 5
Process exited with code 255.
Output for 7.0.0 - 7.0.20
Fatal error: Uncaught TypeError: strlen() expects exactly 1 parameter, 0 given in /in/ntq4E:5 Stack trace: #0 /in/ntq4E(5): strlen() #1 {main} thrown in /in/ntq4E on line 5
Process exited with code 255.
Output for 5.3.18 - 5.6.28
Warning: Unsupported declare 'strict_types' in /in/ntq4E on line 3 Warning: strlen() expects exactly 1 parameter, 0 given in /in/ntq4E on line 5