3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo strlen/strlen+strlen;
Output for 7.1.0
Notice: Use of undefined constant strlen - assumed 'strlen' in /in/cvTlX on line 2 Notice: Use of undefined constant strlen - assumed 'strlen' in /in/cvTlX on line 2 Warning: A non-numeric value encountered in /in/cvTlX on line 2 Warning: A non-numeric value encountered in /in/cvTlX on line 2 Warning: Division by zero in /in/cvTlX on line 2 Notice: Use of undefined constant strlen - assumed 'strlen' in /in/cvTlX on line 2 Warning: A non-numeric value encountered in /in/cvTlX on line 2 NAN
Output for 7.0.0 - 7.0.14
Notice: Use of undefined constant strlen - assumed 'strlen' in /in/cvTlX on line 2 Notice: Use of undefined constant strlen - assumed 'strlen' in /in/cvTlX on line 2 Warning: Division by zero in /in/cvTlX on line 2 Notice: Use of undefined constant strlen - assumed 'strlen' in /in/cvTlX on line 2 NAN
Output for 4.3.0 - 5.6.28
Notice: Use of undefined constant strlen - assumed 'strlen' in /in/cvTlX on line 2 Notice: Use of undefined constant strlen - assumed 'strlen' in /in/cvTlX on line 2 Warning: Division by zero in /in/cvTlX on line 2 Notice: Use of undefined constant strlen - assumed 'strlen' in /in/cvTlX on line 2 0