3v4l.org

run code in 300+ PHP versions simultaneously
<?php $int = 1; $string = '1'; $array = [$string]; $object = new stdClass(); echo 'int ' . is_string($int) . PHP_EOL; echo 'string ' . is_string($string) . PHP_EOL; echo 'array ' . is_string($array) . PHP_EOL; echo 'object' . is_string($object) . PHP_EOL; echo 'int ' . is_scalar($int) . PHP_EOL; echo 'string ' . is_scalar($string) . PHP_EOL; echo 'array ' . is_scalar($array) . PHP_EOL; echo 'object' . is_scalar($object) . PHP_EOL;
Output for git.master, git.master_jit, rfc.property-hooks
int string 1 array object int 1 string 1 array object

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