3v4l.org

run code in 300+ PHP versions simultaneously
<?php $inputLine = '1.12.34'; $fieldLine = array('in_azs','in_pump','in_fuel'); $inputArr = explode(" ", $inputLine); var_dump($inputArr); count(count($inputArr)); if(count($inputArr)>=1){ $inputArr = array_combine($fieldLine, $inputArr); }
Output for git.master, git.master_jit, rfc.property-hooks
array(1) { [0]=> string(7) "1.12.34" } Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, int given in /in/utufe:7 Stack trace: #0 {main} thrown in /in/utufe on line 7
Process exited with code 255.

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