3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $chemin ='tmp/export_xlsx/'; if (substr($chemin, strlen($chemin) - 1, 1) == '/') { $chemin = substr($chemin, 0, $chemin - 1); } echo $chemin;
based on TEo9F
Output for 7.1.0 - 7.2.0
Warning: A non-numeric value encountered in /in/LpM9M on line 6 tmp/export_xlsx
Output for 5.4.0 - 7.0.20
tmp/export_xlsx