3v4l.org

run code in 300+ PHP versions simultaneously
<?php //$search = htmlentities(phpinfo%2528%2529%253B%2523%257Capple%252Fe%2500); echo $search; if (strpos($search, 'apple') !== false){ echo preg_replace("/".$search."/", $search." <img src='".$search.".png'>", "apple"); }elseif (strpos($search, 'orange') !== false){ echo preg_replace("/".$search."/", $search." <img src='".$search.".png'>", "orange"); }elseif (strpos($search, 'banana') !== false){ echo preg_replace("/".$search."/", $search." <img src='".$search.".png'>", "banana"); }elseif (strpos($search, 'kiwi') !== false){ echo preg_replace("/".$search."/", $search." <img src='".$search.".png'>", "kiwi"); }else echo "Please search for apple, orange, banana, or kiwi.";
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined variable $search in /in/sEjhv on line 3 Warning: Undefined variable $search in /in/sEjhv on line 4 Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /in/sEjhv on line 4 Warning: Undefined variable $search in /in/sEjhv on line 6 Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /in/sEjhv on line 6 Warning: Undefined variable $search in /in/sEjhv on line 8 Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /in/sEjhv on line 8 Warning: Undefined variable $search in /in/sEjhv on line 10 Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /in/sEjhv on line 10 Please search for apple, orange, banana, or kiwi.

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:
44.96 ms | 403 KiB | 8 Q