3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pin1='1234'; $pin2='1234-5678'; $pin3='1234-5678-0000-5566-8900-5600-4555-1330-2334'; function countPin($pin) { return substr_count($pin, '-') + 1; } echo 'Pin 1 heeft ' . countPin($pin1) . ' code(s), '; echo 'pin 2 heeft ' . countPin($pin2) . ' code(s) en '; echo 'pin 3 heeft ' . countPin($pin3) . ' code(s).';
Output for git.master, git.master_jit, rfc.property-hooks
Pin 1 heeft 1 code(s), pin 2 heeft 2 code(s) en pin 3 heeft 9 code(s).

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:
17.36 ms | 405 KiB | 5 Q