3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = array("28000000000000003" => 'ABC',"28000000000000001" => 'PQR'); $keys = array("28000000000000003","28000000000000001"); $keysDerived = array_keys($data); var_dump($keys == $keysDerived, $keys === $keysDerived); var_dump(in_array("28000000000000003", array_keys($data), true)); var_dump(in_array("28000000000000003", $keysDerived)); var_dump(in_array("28000000000000003", $keys, true)); var_dump(in_array("28000000000000003", $keys)); foreach ( $data as $k => $d ) { foreach ( $keys as $key ) { if ($key == $k) { var_dump($k, "=", $key); } if ($key === $k) { var_dump($k, "===", $key); } } }
Output for git.master, git.master_jit, rfc.property-hooks
bool(true) bool(false) bool(false) bool(true) bool(true) bool(true) int(28000000000000003) string(1) "=" string(17) "28000000000000003" int(28000000000000001) string(1) "=" string(17) "28000000000000001"

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