3v4l.org

run code in 500+ PHP versions simultaneously
<?php $reporting = error_reporting(E_ERROR | E_COMPILE_ERROR); $result = false; try { $result = eval('function(?int $a){};return true;'); } catch (Throwable $e) { } catch (Exception $e) { // ignore } error_reporting($reporting); $isSupported = true === $result; var_dump($isSupported);
Output for git.master, git.master_jit, rfc.property-hooks
bool(true)

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:
111.84 ms | 1610 KiB | 4 Q