3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $requiredColumns = array( 'category', 'products_id', 'brand', 'supplier', 'stock_min', 'stock_max', 'stock_target', 'warehouse', 'status' ); $letters = range('A', 'Z'); foreach ($this->requiredColumns as $key => $cvalue) { $cell_name = $letters[$key] . "1"; echo $cell_name; }
based on 7RDGh
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Using $this when not in object context in /in/PDj7V:16 Stack trace: #0 {main} thrown in /in/PDj7V on line 16
Process exited with code 255.
Output for 5.3.20 - 5.6.28
Fatal error: Using $this when not in object context in /in/PDj7V on line 16
Process exited with code 255.