3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Products{ // Properties // Methods } try{ $Object_of_your_class = new Products($property1, $property2, $property3) } catch (Exception $e){ echo $e->getMessage(); } ?>
Output for 5.3.0 - 5.3.28, 5.4.0 - 5.4.28
Parse error: syntax error, unexpected '}' in /in/dbMmi on line 9
Process exited with code 255.

preferences:
171.42 ms | 1395 KiB | 65 Q