3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $foo = 'hello world!'; $foo = ucfirst($foo); // Hello world! $bar = 'HELLO WORLD!'; $bar = ucfirst($bar); // HELLO WORLD! $bar = ucfirst(strtolower($bar)); // Hello world! echo $foo; echo $bar;
Output for 4.3.0 - 7.1.0
Hello world!Hello world!