3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = '0012e2'; $b = '1e3'; var_dump($a); var_dump($b); echo '== :'."\n"; echo 'direct : '; $i = ($a == $b); var_dump($i); echo 'direct strings : '; $i = ((string) $a == (string) $b); var_dump($i); echo 'string in var_dump: '; var_dump((string) $a == (string) $b); echo 'within var_dump: '; var_dump($a == $b); echo '=== :'."\n"; $i = (bool)((string) $a === (string) $b); var_dump($i); var_dump((string) '0010e2' === (string) '1e3'); echo '-'."\n";
Output for git.master, git.master_jit, rfc.property-hooks
string(6) "0012e2" string(3) "1e3" == : direct : bool(false) direct strings : bool(false) string in var_dump: bool(false) within var_dump: bool(false) === : bool(false) bool(false) -

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:
42.82 ms | 401 KiB | 8 Q