3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Tester { function __construct() { echo 'I am awaited in Valhalla!'; } } $tester = new Tester(die('Witness me!')); echo 'I live, I die, I live again!';
based on UVLdQ
Output for 5.0.0 - 7.3.0beta1
Witness me!
Output for 4.3.0 - 4.4.9
I live, I die, I live again!