3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = array("hello", "what", "sorry", "Technology"); echo "=============================== hello"; echo "\n\n"; var_dump($str); echo "\n\n=============================== "; echo "=============================== ".print($str[0])."\n"; echo "\n\n123"; print_r($str); // print_r(count(null)); $str = null; echo htmlspecialchars($str, ENT_QUOTES); // 转换双引号和单引号
Output for git.master, git.master_jit, rfc.property-hooks
=============================== hello array(4) { [0]=> string(5) "hello" [1]=> string(4) "what" [2]=> string(5) "sorry" [3]=> string(10) "Technology" } =============================== hello =============================== 1 123Array ( [0] => hello [1] => what [2] => sorry [3] => Technology ) Deprecated: htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in /in/ZccVZ on line 15

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.88 ms | 402 KiB | 8 Q