3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Brands { public function create_brand_table(): void { echo __FUNCTION__, PHP_EOL; } public function delete_brand_table(): void { echo __FUNCTION__, PHP_EOL; } } class TablesManager { private $brands; public function __construct(Brands $brands) { $this->brands = $brands; } public function create_tables(): void { $this->brands->create_brand_table(); } public function delete_tables(): void { $this->brands->delete_brand_table(); } } $brands = new Brands(); $tables_manager = new TablesManager($brands); $tables_manager->create_tables(); $tables_manager->delete_tables();
Output for git.master, git.master_jit, rfc.property-hooks
create_brand_table delete_brand_table

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
46.49 ms | 401 KiB | 8 Q