3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { // No.4 インスタンスメソッド public function count() { static $e = 0; echo $e; $e++; } // No.5 インスタンスメソッド public function division($f,$g) { echo $f / $g; } } // No.4 インスタンスメソッドへアクセス Test::count(); // No.5 インスタンスメソッドへアクセス Test::division(4,2);
Output for git.master_jit, git.master
/bin/php-git-master: error while loading shared libraries: libonig.so.5: cannot open shared object file: No such file or directory
Process exited with code 127.
Output for rfc.property-hooks
Fatal error: Uncaught Error: Non-static method Test::count() cannot be called statically in /in/u1lEa:20 Stack trace: #0 {main} thrown in /in/u1lEa on line 20
Process exited with code 255.

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