3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php <<<CONFIG packages: - "twig/twig: ~1.0" CONFIG; $loader = new Twig_Loader_Array(array( 'index' => "Hello {{ name }}!\n", )); $twig = new Twig_Environment($loader); echo $twig->render('index', array('name' => 'Melody'));
Output for 7.0.0 - 7.3.0beta1
Fatal error: Uncaught Error: Class 'Twig_Loader_Array' not found in /in/MnolV:7 Stack trace: #0 {main} thrown in /in/MnolV on line 7
Process exited with code 255.
Output for hhvm-3.12.14 - 3.17.3
Fatal error: Uncaught Error: Class undefined: Twig_Loader_Array in /in/MnolV:9 Stack trace: #0 {main}
Process exited with code 255.
Output for 5.6.0 - 5.6.30
Fatal error: Class 'Twig_Loader_Array' not found in /in/MnolV on line 7
Process exited with code 255.