3v4l.org

run code in 300+ PHP versions simultaneously
<?php class test1 { public function __call( $_method, $_args ) { echo get_class( $this ); echo method_exists( $this, $_method ); echo is_callable( array( $this, $_method ) ); // $this->lala(); die('g'); if ( method_exists( $this, $_method ) && is_callable( array( $this, $_method ) ) ) { $res = call_user_func_array( array( $this, $_method ), $_args ); if ( !is_null( $res ) ) return $res; if ( $this->prev_ ) return call_user_func_array( array( $this->prev_, $_method ), $_args );//return $this->defaultLocale( $_args ); } else { throw new Exception( "Invalid method: " . $_method ); } } } class test2 extends test1 { private function lala() { } } $t = new test2(); $t->lala(); ?>
Output for git.master, git.master_jit, rfc.property-hooks
test211g

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.34 ms | 401 KiB | 8 Q