3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $message = "2015"; echo ${message/2015/2016};
based on R1YZs
Output for 7.2.0
Warning: Use of undefined constant message - assumed 'message' (this will throw an Error in a future version of PHP) in /in/3bTsd on line 4 Warning: A non-numeric value encountered in /in/3bTsd on line 4 Notice: Undefined variable: 0 in /in/3bTsd on line 4
Output for 7.1.0 - 7.1.10
Notice: Use of undefined constant message - assumed 'message' in /in/3bTsd on line 4 Warning: A non-numeric value encountered in /in/3bTsd on line 4 Notice: Undefined variable: 0 in /in/3bTsd on line 4
Output for 5.3.21 - 7.0.20
Notice: Use of undefined constant message - assumed 'message' in /in/3bTsd on line 4 Notice: Undefined variable: 0 in /in/3bTsd on line 4