3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { // Пример ошибки, которая в php 7.2 вызовет ошибку уровня E_WARNING $c = \count(null); } catch (\RuntimeException $e) { echo 'Exc: ', $e->getMessage(); // Сработает на E_WARNING: Warning: count(): Parameter must be an array or an object that implements Countable }
Output for rfc.property-hooks, git.master_jit, git.master
Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /in/VTmlg:5 Stack trace: #0 {main} thrown in /in/VTmlg on line 5
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:
91.67 ms | 2678 KiB | 4 Q