3v4l.org

run code in 150+ 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 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
dstring(3) "RCT" bool(false)