3v4l.org

run code in 300+ PHP versions simultaneously
<?php /*Strings: (1)Are either contained in double or single quotation marks, (2)They are defined the same way that you would declare variables, $varible_name = "string_name" 'value of the string inside qoutes' (3)To print out the value of a string, use either echo() or print(): echo $first_name; (4)To print the value of string within a context, use double quotation marks: echo “Hello, $first_name”;*/ $my_name = 'Travis'; echo $my_name; print $my_name; echo 'Hello, $my_name'; ?>
Output for git.master, git.master_jit, rfc.property-hooks
TravisTravisHello, $my_name

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