3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array1 = array( 'post', 'page' ); $array2 = array( 'page', 'post' ); $equal = $array1 == $array2; $strict = $array1 === $array2; // Note: this will error in PHP 5.4 and lower (unsupported by WP) $equivalent = empty( array_diff( $array1, $array2) ); var_dump( 'equal', $equal ); var_dump( 'strict', $strict ); var_dump( 'equivalent', $equivalent );
Output for git.master_jit, git.master
string(5) "equal" bool(false) string(6) "strict" bool(false) string(10) "equivalent" 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:
33.69 ms | 405 KiB | 5 Q