3v4l.org

run code in 300+ PHP versions simultaneously
<?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.

preferences:
186.19 ms | 1386 KiB | 64 Q