3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $product = array('material', 'britelki', 'chaschka', 'kostochki', 'vkladish', 'zastejka'); if( !finction_exists('create_from_variable') ){ function create_from_variable($arr){ foreach($product as $key){ create_function('',"$gc_".$key." = 123; echo '<p>$gc_material</p>';"); } } create_from_variable($product); /* $function = $prefix . '_custom_type_init'; if(function_exists($function)) { $function(); } */
Output for 5.4.0 - 5.4.27
Parse error: syntax error, unexpected end of file in /in/KtKGH on line 28
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected $end in /in/KtKGH on line 28
Process exited with code 255.