3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
d<?php $var = 'RCT'; $required = true; substr($var, -1) === "*" ? $var = substr($var, 0, -1) : $required = false; var_dump($var); var_dump($required);
Output for 4.3.0 - 7.2.0
dstring(3) "RCT" bool(false)