3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Post { public function save() { $this->update_data(); $this->custom_updates(); $this->load(); } protected function update_data() { echo(__METHOD__."()\n"); } protected function custom_updates() { echo(__METHOD__."()\n"); } protected function load() { echo(__METHOD__."()\n"); } } class Event extends Post { protected function custom_updates() { echo(__METHOD__."()\n"); } } $Event = new Event(); $Event->save();
Output for git.master, git.master_jit, rfc.property-hooks
Post::update_data() Event::custom_updates() Post::load()

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:
42.82 ms | 1955 KiB | 4 Q