3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str1 = '57 channels'; $str2 = '1/2 a pack of cigarettes'; $str3 = '0x10'; if ($str1 == 57) { echo 'a'; } else { echo 'b'; } if ($str2 == 0.5) { echo 'c'; } else if ($str2 == 1) { echo 'd'; } else { echo 'e'; } if ($str3 == 0) { echo 'f'; } else if ($str3 == 16) { echo 'g'; } // 0x10 is 16 in decimal else if ($str3 == 0x10) { echo 'h'; } ?>
Output for git.master, git.master_jit, rfc.property-hooks
be

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