3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php for($i = 10; $i >= 1; $i--){ echo 'start:' . date('Y-m-d', strtotime('- ' . $i . ' days')) . ' - ' . date('Y-m-d', strtotime('- ' . ($i - 1) . ' days')) . '<br/>'; $ipyr -> m['custom2'] -> importData(array('start_date' => date('Y-m-d', strtotime('- ' . $i . ' days')), 'end_date' => date('Y-m-d', strtotime('- ' . ($i - 1) . ' days')))); echo 'finish:' . date('Y-m-d', strtotime('- ' . $i . ' days')) . ' - ' . date('Y-m-d', strtotime('- ' . ($i - 1) . ' days')) . '<br/>'; $i--; }
Output for 7.0.0 - 7.1.0
start:2013-12-13 - 2013-12-14<br/> Notice: Undefined variable: ipyr in /in/Q5EPd on line 4 Notice: Trying to get property of non-object in /in/Q5EPd on line 4 Fatal error: Uncaught Error: Call to a member function importData() on null in /in/Q5EPd:4 Stack trace: #0 {main} thrown in /in/Q5EPd on line 4
Process exited with code 255.
Output for 5.6.0 - 5.6.28
start:2013-12-13 - 2013-12-14<br/> Notice: Undefined variable: ipyr in /in/Q5EPd on line 4 Notice: Trying to get property of non-object in /in/Q5EPd on line 4 Fatal error: Call to a member function importData() on null in /in/Q5EPd on line 4
Process exited with code 255.
Output for 5.1.2 - 5.5.38
start:2013-12-13 - 2013-12-14<br/> Notice: Undefined variable: ipyr in /in/Q5EPd on line 4 Notice: Trying to get property of non-object in /in/Q5EPd on line 4 Fatal error: Call to a member function importData() on a non-object in /in/Q5EPd on line 4
Process exited with code 255.
Output for 5.1.0 - 5.1.1
start:1970-01-01 - 1970-01-01<br/> Notice: Undefined variable: ipyr in /in/Q5EPd on line 4 Notice: Trying to get property of non-object in /in/Q5EPd on line 4 Fatal error: Call to a member function importData() on a non-object in /in/Q5EPd on line 4
Process exited with code 255.
Output for 5.0.4 - 5.0.5
start:2014-01-02 - 2014-01-01<br/> Notice: Undefined variable: ipyr in /in/Q5EPd on line 4 Notice: Trying to get property of non-object in /in/Q5EPd on line 4 Fatal error: Call to a member function importData() on a non-object in /in/Q5EPd on line 4
Process exited with code 255.
Output for 5.0.0 - 5.0.3
start:2014-01-02 - 2014-01-01<br/> Notice: Undefined variable: ipyr in /in/Q5EPd on line 4 Notice: Trying to get property of non-object in /in/Q5EPd on line 4 Fatal error: Call to a member function importData() on a non-object in /in/Q5EPd on line 4
Process exited with code 255.
Output for 4.3.2 - 4.4.9
start:2014-01-02 - 2014-01-01<br/> Fatal error: Call to a member function on a non-object in /in/Q5EPd on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.1
start:2014-01-02 - 2014-01-01<br/> Fatal error: Call to a member function on a non-object in /in/Q5EPd on line 4