3v4l.org

run code in 300+ PHP versions simultaneously
<?php $vars = array(11, '11', '11.0', '11e1', '11f1', '11e0', '11f0', '11e2', '11f2', '.11e2'); $size = count($vars); for($ii = 0; $ii < $size - 1; $ii++) { for($jj = $ii + 1; $jj < $size; $jj++) { if ($vars[$ii] == $vars[$jj]) { echo "$vars[$ii] == $vars[$jj]\n"; var_dump($vars[$ii], $vars[$jj]); echo "---------\n"; } } }
Output for git.master, git.master_jit, rfc.property-hooks
11 == 11 int(11) string(2) "11" --------- 11 == 11.0 int(11) string(4) "11.0" --------- 11 == 11e0 int(11) string(4) "11e0" --------- 11 == .11e2 int(11) string(5) ".11e2" --------- 11 == 11.0 string(2) "11" string(4) "11.0" --------- 11 == 11e0 string(2) "11" string(4) "11e0" --------- 11 == .11e2 string(2) "11" string(5) ".11e2" --------- 11.0 == 11e0 string(4) "11.0" string(4) "11e0" --------- 11.0 == .11e2 string(4) "11.0" string(5) ".11e2" --------- 11e0 == .11e2 string(4) "11e0" string(5) ".11e2" ---------

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:
39.14 ms | 402 KiB | 8 Q