3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(PHP_INT_MAX); function explodeTrim($delimiter, $string, $limit = PHP_INT_MAX) { return explode($delimiter, $string, $limit); } $emails = 'test1@example.com, test2@example.com'; var_dump(explodeTrim(',', $emails)); // using default limit=PHP_INT_MAX var_dump(explodeTrim(',', $emails, 0x7FFFFFFF)); 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" } 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:
63.18 ms | 402 KiB | 8 Q