3v4l.org

run code in 500+ PHP versions simultaneously
<?php $pattern = '/-/'; if (rand(0,1)) { $pattern = 'foo'; } var_dump(preg_split($pattern, '', '-1', PREG_SPLIT_NO_EMPTY));
Output for git.master_jit, git.master
array(0) { }

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:
24.89 ms | 690 KiB | 4 Q