3v4l.org

run code in 500+ PHP versions simultaneously
<?php // define( // 'FOO_CONSTANT', // array( // 'link' => array( ':hover', ':focus', ':active' ), // ) // ); // var_dump( array_key_exists( 'link', FOO_CONSTANT ) ); // var_dump( isset( FOO_CONSTANT['link'] ) ); class Foo { const VALID_ELEMENT_PSEUDO_SELECTORS = array( 'link' => array( ':hover', ':focus', ':active' ), ); } // Works.in >= PHP 5.6. var_dump( array_key_exists( 'link', FOO::VALID_ELEMENT_PSEUDO_SELECTORS ) ); var_dump( ! empty( FOO::VALID_ELEMENT_PSEUDO_SELECTORS['link'] ) ); // Doesn't work on < PHP 7.0. var_dump( isset( FOO::VALID_ELEMENT_PSEUDO_SELECTORS['link'] ) );
Output for git.master_jit, git.master, rfc.property-hooks
bool(true) bool(true) 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:
72.41 ms | 874 KiB | 4 Q