3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(PHP_INT_MAX); function explodeTrim($delimiter, $string, $limit = 0x7FFFFFF) { // About explode() and PHP_INT_MAX // http://php.net/manual/en/function.explode.php return explode($delimiter, $string, $limit); // further custom logic } $emails = 'test1@example.com, test2@example.com'; $emailsArr = explodeTrim(',', $emails); // using default limit=PHP_INT_MAX var_dump($emailsArr); var_dump(explode(',', $emails));
Output for git.master, git.master_jit, rfc.property-hooks
int(9223372036854775807) array(2) { [0]=> string(17) "test1@example.com" [1]=> string(18) " test2@example.com" } array(2) { [0]=> string(17) "test1@example.com" [1]=> string(18) " test2@example.com" }

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