3v4l.org

run code in 300+ PHP versions simultaneously
<? function where($column, $param, $operator = '=') { if (isset($column) && strlen($operator) > 0) { if ($operator === '>') { $_where = ' WHERE ' . $column . '>?'; } else if ($operator == '<') { $_where = ' WHERE ' . $column . '<?'; } else if ($operator === '=') { $_where = ' WHERE ' . $column . '=?'; } else { $this->_where = ' WHERE ' . $column . $operator . '?'; } //$_where = ' WHERE ' . $column . chr(0x3c) . '?'; echo "\n" . $_where . "\n"; } else { throw new \Exception('We need to have $column variable like string and $param like Param!', 500); } echo "\n"; } where('id', 13332, "<");
Output for git.master, git.master_jit, rfc.property-hooks
<? function where($column, $param, $operator = '=') { if (isset($column) && strlen($operator) > 0) { if ($operator === '>') { $_where = ' WHERE ' . $column . '>?'; } else if ($operator == '<') { $_where = ' WHERE ' . $column . '<?'; } else if ($operator === '=') { $_where = ' WHERE ' . $column . '=?'; } else { $this->_where = ' WHERE ' . $column . $operator . '?'; } //$_where = ' WHERE ' . $column . chr(0x3c) . '?'; echo "\n" . $_where . "\n"; } else { throw new \Exception('We need to have $column variable like string and $param like Param!', 500); } echo "\n"; } where('id', 13332, "<");

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