3v4l.org

run code in 300+ PHP versions simultaneously
<?php /* @link https://stackoverflow.com/a/79573960/367456 */ $xxx = null; echo '$xxx: '; var_dump($xxx); # echoes: $xxx: NULL echo gettype($xxx), ': ', var_export($xxx, true), "\n"; # echoes: NULL: NULL echo get_debug_type($xxx), "\n"; # echoes: null $xxx = false; echo '$xxx: '; var_dump($xxx); # echoes: $xxx: bool(false) echo gettype($xxx), ': ', var_export($xxx, true), "\n"; # echoes: boolean: false echo get_debug_type($xxx), "\n"; # echoes: bool $xxx = ''; echo '$xxx: '; var_dump($xxx); # echoes: $xxx: string(0) "" echo gettype($xxx), ': ', var_export($xxx, true), "\n"; # echoes: string: '' echo get_debug_type($xxx), "\n"; # echoes: string
Output for git.master_jit, git.master
$xxx: NULL NULL: NULL null $xxx: bool(false) boolean: false bool $xxx: string(0) "" string: '' string

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:
29.45 ms | 405 KiB | 5 Q