3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function CE50($x) { $CE50 = str_replace("a", ")`", x); $CE50 = str_replace("b", "(~", $CS50); $CE50 = str_replace("c", "*`", $CS50); $CE50 = str_replace("d", "&~", $CS50); $CE50 = strrev(substr($CE50, 0, 50)); return $CE50; } echo CE50("abccbaaabc"); ?>
Output for 7.2.0
Warning: Use of undefined constant x - assumed 'x' (this will throw an Error in a future version of PHP) in /in/ZbWoM on line 4 Notice: Undefined variable: CS50 in /in/ZbWoM on line 5 Notice: Undefined variable: CS50 in /in/ZbWoM on line 6 Notice: Undefined variable: CS50 in /in/ZbWoM on line 7
Output for 5.0.4 - 7.1.7
Notice: Use of undefined constant x - assumed 'x' in /in/ZbWoM on line 4 Notice: Undefined variable: CS50 in /in/ZbWoM on line 5 Notice: Undefined variable: CS50 in /in/ZbWoM on line 6 Notice: Undefined variable: CS50 in /in/ZbWoM on line 7
Output for 4.3.0 - 5.0.3
Notice: Use of undefined constant x - assumed 'x' in /in/ZbWoM on line 4 Notice: Undefined variable: CS50 in /in/ZbWoM on line 5 Notice: Undefined variable: CS50 in /in/ZbWoM on line 6 Notice: Undefined variable: CS50 in /in/ZbWoM on line 7