3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { // No.1 静的プロパティ public static $a = 8; // No.2 静的メソッド public static function sum($b,$c) { echo $b + $c; } // No.3 インスタンスプロパティ public $d = 9; // No.4 インスタンスメソッド public function count() { static $e = 0; echo $e; $e++; } // No.5 インスタンスメソッド public function division($f,$g) { echo $f / $g; } } // No.1 静的プロパティへアクセス echo Test::$a; // No.2 静的メソッドへアクセス Test::sum(2,3);
Output for git.master_jit, git.master, rfc.property-hooks
85

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:
59.27 ms | 401 KiB | 8 Q