3v4l.org

run code in 300+ PHP versions simultaneously
<?php Class hisRange { public $s, $e, $r, $f; function __constructor($s= '00:00:00', $e= '23:59:59', $r= 3600, $f= 'H:00:00') { $this->s = $s; $this->e = $e; $this->r = $r; $this->f = $f; } function run() { return array_map(array($this, 'fm'), range(strtotime($this->s), strtotime($this->e), $this->r)); } function fm($t) { return date($this->f, $t); } } $range = new hisRange(); $s = $range->run(); print_r($s);
Output for git.master, git.master_jit, rfc.property-hooks
Deprecated: strtotime(): Passing null to parameter #1 ($datetime) of type string is deprecated in /in/OVPFt on line 14 Deprecated: strtotime(): Passing null to parameter #1 ($datetime) of type string is deprecated in /in/OVPFt on line 14 Deprecated: range(): Passing null to parameter #3 ($step) of type int|float is deprecated in /in/OVPFt on line 14 Fatal error: Uncaught ValueError: range(): Argument #3 ($step) must not exceed the specified range in /in/OVPFt:14 Stack trace: #0 /in/OVPFt(14): range(false, false, 0) #1 /in/OVPFt(23): hisRange->run() #2 {main} thrown in /in/OVPFt on line 14
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:
57.46 ms | 402 KiB | 8 Q