3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $courseData['auth_url'] = 'http://learn.kognito.com/auth'; define('COURSE_PORTAL_URL', "https://dev-learn.kognito.com/auth"); $pattern = '/https?:\/\/learn[.]kognito[.]com\/auth/'; $replacement = COURSE_PORTAL_URL; $courseData['auth_url'] = preg_replace($pattern, $replacement, $courseData['auth_url'], 1); echo $courseData['auth_url'] . "?k=";
based on 0L3K3
Output for 4.3.0 - 7.2.0
https://dev-learn.kognito.com/auth?k=