3v4l.org

run code in 300+ PHP versions simultaneously
<?php $limit = [null, null]; var_dump(min($limit)); $limit = [null]; var_dump(min($limit)); $limit = [5]; var_dump(min($limit)); $limit = [5, null]; var_dump(min($limit)); $limit = [null, 5]; var_dump(min($limit)); $limit = [null, null]; $limit = array_filter($limit, 'strlen'); var_dump(min($limit)); $limit = [null]; $limit = array_filter($limit, 'strlen'); var_dump(min($limit)); $limit = [5]; $limit = array_filter($limit, 'strlen'); var_dump(min($limit)); $limit = [5, null]; $limit = array_filter($limit, 'strlen'); var_dump(min($limit)); $limit = [null, 5]; $limit = array_filter($limit, 'strlen'); var_dump(min($limit));
Output for git.master, git.master_jit, rfc.property-hooks
NULL NULL int(5) NULL NULL Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /in/dpe8m on line 21 Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /in/dpe8m on line 21 Fatal error: Uncaught ValueError: min(): Argument #1 ($value) must contain at least one element in /in/dpe8m:22 Stack trace: #0 /in/dpe8m(22): min(Array) #1 {main} thrown in /in/dpe8m on line 22
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:
39.81 ms | 401 KiB | 8 Q