3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php error_reporting(E_ALL); class Course { function get_course($assigned_id) { echo 'getCourse: '.$assigned_id; } } $assigned_id = "testCourseForEditor"; // testing if ($assigned_id) { $course = new Course(); $course_data = $course->get_course($assigned_id); } else { $new_course = TRUE; }
Output for 4.3.0 - 7.1.0
getCourse: testCourseForEditor