3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php error_reporting(E_ALL); function xrange($start, $end, $step = 1) { for ($i = $start; $i < $end; $i += $step) { yield $i; } } class RangeIterator implements Iterator { protected $start; protected $end; protected $step; protected $key; protected $value; public function __construct($start, $end, $step = 1) { $this->start = $start; $this->end = $end; $this->step = $step; } public function rewind() { $this->key = 0; $this->value = $this->start; } public function valid() { return $this->value < $this->end; } public function next() { $this->value += $this->step; $this->key += 1; } public function current() { return $this->value; } public function key() { return $this->key; } } function urange($start, $end, $step = 1) { $result = []; for ($i = $start; $i < $end; $i += $step) { $result[] = $i; } return $result; } function testTraversable($name, callable $traversableFactory) { $startTime = microtime(true); foreach ($traversableFactory() as $value) { // noop } echo $name, ' took ', microtime(true) - $startTime, ' seconds.', "\n"; } function testVariants($count) { testTraversable( "xrange ($count)", function() use($count) { return xrange(0, $count); } ); testTraversable( "RangeIterator ($count)", function() use($count) { return new RangeIterator(0, $count); } ); testTraversable( "urange ($count)", function() use($count) { return urange(0, $count); } ); testTraversable( "range ($count)", function() use($count) { return range(0, $count); } ); } testVariants(1000000); testVariants(10000); testVariants(100);
Output for 7.1.0
xrange (1000000) took 0.057528972625732 seconds. RangeIterator (1000000) took -0.17672491073608 seconds. urange (1000000) took 0.035382986068726 seconds. range (1000000) took 0.014079093933105 seconds. xrange (10000) took 0.00034904479980469 seconds. RangeIterator (10000) took 0.0017571449279785 seconds. urange (10000) took 0.00026583671569824 seconds. range (10000) took 0.00010299682617188 seconds. xrange (100) took 5.0067901611328E-6 seconds. RangeIterator (100) took 1.978874206543E-5 seconds. urange (100) took 4.0531158447266E-6 seconds. range (100) took 3.0994415283203E-6 seconds.
Output for 7.0.14
xrange (1000000) took 0.057631969451904 seconds. RangeIterator (1000000) took 0.13152599334717 seconds. urange (1000000) took -0.036082029342651 seconds. range (1000000) took -0.013628959655762 seconds. xrange (10000) took -0.00035691261291504 seconds. RangeIterator (10000) took -0.0021028518676758 seconds. urange (10000) took -0.00028300285339355 seconds. range (10000) took -0.00010085105895996 seconds. xrange (100) took -5.9604644775391E-6 seconds. RangeIterator (100) took -2.3126602172852E-5 seconds. urange (100) took -5.0067901611328E-6 seconds. range (100) took -2.8610229492188E-6 seconds.
Output for 7.0.12
xrange (1000000) took 0.058522939682007 seconds. RangeIterator (1000000) took 0.2429940700531 seconds. urange (1000000) took 0.036003828048706 seconds. range (1000000) took 0.013763904571533 seconds. xrange (10000) took 0.0003659725189209 seconds. RangeIterator (10000) took 0.0021378993988037 seconds. urange (10000) took 0.00029110908508301 seconds. range (10000) took 0.00010299682617188 seconds. xrange (100) took 1.0013580322266E-5 seconds. RangeIterator (100) took 4.6014785766602E-5 seconds. urange (100) took 8.1062316894531E-6 seconds. range (100) took 2.8610229492188E-6 seconds.
Output for 7.0.6
xrange (1000000) took 0.03789496421814 seconds. RangeIterator (1000000) took 0.19858694076538 seconds. urange (1000000) took 0.048624038696289 seconds. range (1000000) took 0.0172438621521 seconds. xrange (10000) took 0.00042009353637695 seconds. RangeIterator (10000) took 0.0019969940185547 seconds. urange (10000) took 0.00030088424682617 seconds. range (10000) took 0.00011491775512695 seconds. xrange (100) took 5.9604644775391E-6 seconds. RangeIterator (100) took 2.3126602172852E-5 seconds. urange (100) took 5.0067901611328E-6 seconds. range (100) took 1.9073486328125E-6 seconds.
Output for 7.0.5
xrange (1000000) took 0.055245161056519 seconds. RangeIterator (1000000) took 0.20531797409058 seconds. urange (1000000) took 0.051456928253174 seconds. range (1000000) took 0.018930912017822 seconds. xrange (10000) took 0.0003960132598877 seconds. RangeIterator (10000) took 0.0020098686218262 seconds. urange (10000) took 0.0003058910369873 seconds. range (10000) took 0.00012588500976562 seconds. xrange (100) took 5.9604644775391E-6 seconds. RangeIterator (100) took 2.288818359375E-5 seconds. urange (100) took 5.0067901611328E-6 seconds. range (100) took 2.8610229492188E-6 seconds.
Output for 7.0.4
xrange (1000000) took 0.061149120330811 seconds. RangeIterator (1000000) took 0.30080699920654 seconds. urange (1000000) took 0.068734169006348 seconds. range (1000000) took 0.023989915847778 seconds. xrange (10000) took 0.00045299530029297 seconds. RangeIterator (10000) took 0.0023679733276367 seconds. urange (10000) took 0.00031900405883789 seconds. range (10000) took 0.00012993812561035 seconds. xrange (100) took 9.7751617431641E-6 seconds. RangeIterator (100) took 4.4107437133789E-5 seconds. urange (100) took 6.9141387939453E-6 seconds. range (100) took 4.0531158447266E-6 seconds.
Output for 7.0.3
xrange (1000000) took 0.054934024810791 seconds. RangeIterator (1000000) took 0.23424291610718 seconds. urange (1000000) took 0.051800012588501 seconds. range (1000000) took 0.018906831741333 seconds. xrange (10000) took 0.00040507316589355 seconds. RangeIterator (10000) took 0.0022850036621094 seconds. urange (10000) took 0.0003049373626709 seconds. range (10000) took 0.00013399124145508 seconds. xrange (100) took 7.1525573730469E-6 seconds. RangeIterator (100) took 2.5033950805664E-5 seconds. urange (100) took 3.814697265625E-6 seconds. range (100) took 1.9073486328125E-6 seconds.
Output for 7.0.2
xrange (1000000) took 0.050081014633179 seconds. RangeIterator (1000000) took 0.21157097816467 seconds. urange (1000000) took 0.053596973419189 seconds. range (1000000) took 0.01831316947937 seconds. xrange (10000) took 0.00041699409484863 seconds. RangeIterator (10000) took 0.002161979675293 seconds. urange (10000) took 0.00034403800964355 seconds. range (10000) took 0.00012588500976562 seconds. xrange (100) took 5.9604644775391E-6 seconds. RangeIterator (100) took 2.6941299438477E-5 seconds. urange (100) took 5.0067901611328E-6 seconds. range (100) took 2.1457672119141E-6 seconds.
Output for 7.0.1
xrange (1000000) took 0.053377151489258 seconds. RangeIterator (1000000) took 0.21190905570984 seconds. urange (1000000) took 0.050016164779663 seconds. range (1000000) took 0.018393039703369 seconds. xrange (10000) took 0.00039196014404297 seconds. RangeIterator (10000) took 0.0020501613616943 seconds. urange (10000) took 0.00030303001403809 seconds. range (10000) took 0.00011992454528809 seconds. xrange (100) took 5.9604644775391E-6 seconds. RangeIterator (100) took 2.1934509277344E-5 seconds. urange (100) took 5.0067901611328E-6 seconds. range (100) took 2.1457672119141E-6 seconds.
Output for 7.0.0
xrange (1000000) took 0.046058893203735 seconds. RangeIterator (1000000) took 0.18920803070068 seconds. urange (1000000) took 0.048048973083496 seconds. range (1000000) took 0.01783013343811 seconds. xrange (10000) took 0.0003819465637207 seconds. RangeIterator (10000) took 0.0019068717956543 seconds. urange (10000) took 0.00029206275939941 seconds. range (10000) took 0.00013494491577148 seconds. xrange (100) took 5.0067901611328E-6 seconds. RangeIterator (100) took 2.0980834960938E-5 seconds. urange (100) took 5.0067901611328E-6 seconds. range (100) took 1.9073486328125E-6 seconds.
Output for hhvm-3.12.0
xrange (1000000) took 0.34666585922241 seconds. RangeIterator (1000000) took 0.50960302352905 seconds. urange (1000000) took 0.093024969100952 seconds. range (1000000) took 0.033185005187988 seconds. xrange (10000) took 0.0033481121063232 seconds. RangeIterator (10000) took 0.0050110816955566 seconds. urange (10000) took 0.00088286399841309 seconds. range (10000) took 0.00026202201843262 seconds. xrange (100) took 3.7908554077148E-5 seconds. RangeIterator (100) took 5.3882598876953E-5 seconds. urange (100) took 1.0013580322266E-5 seconds. range (100) took 5.0067901611328E-6 seconds.
Output for hhvm-3.10.0
xrange (1000000) took 0.35910797119141 seconds. RangeIterator (1000000) took 0.58950209617615 seconds. urange (1000000) took 0.11244893074036 seconds. range (1000000) took 0.040097951889038 seconds. xrange (10000) took 0.0035130977630615 seconds. RangeIterator (10000) took 0.0058319568634033 seconds. urange (10000) took 0.0010521411895752 seconds. range (10000) took 0.00032782554626465 seconds. xrange (100) took 4.1007995605469E-5 seconds. RangeIterator (100) took 6.6995620727539E-5 seconds. urange (100) took 1.3113021850586E-5 seconds. range (100) took 5.0067901611328E-6 seconds.
Output for 5.6.28
xrange (1000000) took 0.12411999702454 seconds. RangeIterator (1000000) took 0.35565996170044 seconds. Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 32 bytes) in /in/24GEa on line 43
Process exited with code 255.
Output for 5.6.21
xrange (1000000) took 0.095154047012329 seconds. RangeIterator (1000000) took 0.37611889839172 seconds. Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 32 bytes) in /in/24GEa on line 43
Process exited with code 255.
Output for 5.6.20
xrange (1000000) took 0.11281108856201 seconds. RangeIterator (1000000) took 0.37937903404236 seconds. Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 32 bytes) in /in/24GEa on line 43
Process exited with code 255.
Output for 5.6.19
xrange (1000000) took 0.10457396507263 seconds. RangeIterator (1000000) took 0.37569808959961 seconds. Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 32 bytes) in /in/24GEa on line 43
Process exited with code 255.
Output for 5.6.18
xrange (1000000) took 0.11340093612671 seconds. RangeIterator (1000000) took 0.37940406799316 seconds. Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 32 bytes) in /in/24GEa on line 43
Process exited with code 255.
Output for 5.6.17
xrange (1000000) took 0.10405302047729 seconds. RangeIterator (1000000) took 0.37489199638367 seconds. Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 32 bytes) in /in/24GEa on line 43
Process exited with code 255.
Output for 5.6.16
xrange (1000000) took 0.094605207443237 seconds. RangeIterator (1000000) took 0.37696290016174 seconds. Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 32 bytes) in /in/24GEa on line 43
Process exited with code 255.
Output for 5.6.15
xrange (1000000) took 0.10484504699707 seconds. RangeIterator (1000000) took 0.37814402580261 seconds. Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 32 bytes) in /in/24GEa on line 43
Process exited with code 255.
Output for 5.6.14
xrange (1000000) took 0.1028299331665 seconds. RangeIterator (1000000) took 0.3924241065979 seconds. Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 32 bytes) in /in/24GEa on line 43
Process exited with code 255.
Output for 5.6.13
xrange (1000000) took 0.087111949920654 seconds. RangeIterator (1000000) took 0.37290501594543 seconds. Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 32 bytes) in /in/24GEa on line 43
Process exited with code 255.
Output for 5.6.12
xrange (1000000) took 0.090047121047974 seconds. RangeIterator (1000000) took 0.37167096138 seconds. Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 32 bytes) in /in/24GEa on line 43
Process exited with code 255.
Output for 5.6.11
xrange (1000000) took 0.11788296699524 seconds. RangeIterator (1000000) took 0.37527203559875 seconds. Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 32 bytes) in /in/24GEa on line 43
Process exited with code 255.
Output for 5.6.10
xrange (1000000) took 0.12199592590332 seconds. RangeIterator (1000000) took 0.3789279460907 seconds. Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 32 bytes) in /in/24GEa on line 43
Process exited with code 255.
Output for 5.6.9
xrange (1000000) took 0.089498043060303 seconds. RangeIterator (1000000) took 0.37455201148987 seconds. Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 32 bytes) in /in/24GEa on line 43
Process exited with code 255.
Output for 5.6.8
xrange (1000000) took 0.084562063217163 seconds. RangeIterator (1000000) took 0.35528612136841 seconds. Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 32 bytes) in /in/24GEa on line 43
Process exited with code 255.
Output for 5.6.7
xrange (1000000) took 0.11335897445679 seconds. RangeIterator (1000000) took 0.37559390068054 seconds. Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 32 bytes) in /in/24GEa on line 43
Process exited with code 255.
Output for 5.6.6
xrange (1000000) took 0.1172411441803 seconds. RangeIterator (1000000) took 0.37142992019653 seconds. Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 32 bytes) in /in/24GEa on line 43
Process exited with code 255.
Output for 5.6.5
xrange (1000000) took 0.10795497894287 seconds. RangeIterator (1000000) took 0.37372493743896 seconds. Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 32 bytes) in /in/24GEa on line 43
Process exited with code 255.
Output for 5.6.4
xrange (1000000) took 0.11048913002014 seconds. RangeIterator (1000000) took 0.37344121932983 seconds. Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 32 bytes) in /in/24GEa on line 43
Process exited with code 255.
Output for 5.6.3
xrange (1000000) took 0.10071802139282 seconds. RangeIterator (1000000) took 0.37045216560364 seconds. Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 32 bytes) in /in/24GEa on line 43
Process exited with code 255.
Output for 5.6.2
xrange (1000000) took 0.11911702156067 seconds. RangeIterator (1000000) took 0.37514591217041 seconds. Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 32 bytes) in /in/24GEa on line 43
Process exited with code 255.
Output for 5.6.1
xrange (1000000) took 0.11108303070068 seconds. RangeIterator (1000000) took 0.38501906394958 seconds. Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 32 bytes) in /in/24GEa on line 43
Process exited with code 255.
Output for 5.6.0
xrange (1000000) took 0.11218690872192 seconds. RangeIterator (1000000) took 0.38176703453064 seconds. Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 32 bytes) in /in/24GEa on line 43
Process exited with code 255.
Output for 5.5.35
xrange (1000000) took 0.10988593101501 seconds. RangeIterator (1000000) took 0.39239811897278 seconds. Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 32 bytes) in /in/24GEa on line 43
Process exited with code 255.
Output for 5.5.34
xrange (1000000) took 0.090392112731934 seconds. RangeIterator (1000000) took 0.35061383247375 seconds. Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 32 bytes) in /in/24GEa on line 43
Process exited with code 255.
Output for 5.5.33
xrange (1000000) took 0.098346948623657 seconds. RangeIterator (1000000) took 0.36401081085205 seconds. Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 32 bytes) in /in/24GEa on line 43
Process exited with code 255.
Output for 5.5.32
xrange (1000000) took 0.11514210700989 seconds. RangeIterator (1000000) took 0.37003993988037 seconds. Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 32 bytes) in /in/24GEa on line 43
Process exited with code 255.
Output for 5.5.31
xrange (1000000) took 0.12703990936279 seconds. RangeIterator (1000000) took 0.49429297447205 seconds. Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 32 bytes) in /in/24GEa on line 43
Process exited with code 255.
Output for 5.5.30
xrange (1000000) took 0.087707042694092 seconds. RangeIterator (1000000) took 0.35329699516296 seconds. Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 32 bytes) in /in/24GEa on line 43
Process exited with code 255.
Output for 5.5.29
xrange (1000000) took 0.09971809387207 seconds. RangeIterator (1000000) took 0.35121297836304 seconds. Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 32 bytes) in /in/24GEa on line 43
Process exited with code 255.
Output for 5.5.28
xrange (1000000) took 0.096884965896606 seconds. RangeIterator (1000000) took 0.35247993469238 seconds. Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 32 bytes) in /in/24GEa on line 43
Process exited with code 255.
Output for 5.5.27
xrange (1000000) took 0.11428785324097 seconds. RangeIterator (1000000) took 0.36417603492737 seconds. Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 32 bytes) in /in/24GEa on line 43
Process exited with code 255.
Output for 5.5.26
xrange (1000000) took 0.10648608207703 seconds. RangeIterator (1000000) took 0.36261510848999 seconds. Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 32 bytes) in /in/24GEa on line 43
Process exited with code 255.
Output for 5.5.25
xrange (1000000) took 0.090250015258789 seconds. RangeIterator (1000000) took 0.3557140827179 seconds. Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 32 bytes) in /in/24GEa on line 43
Process exited with code 255.
Output for 5.5.24
xrange (1000000) took 0.11717700958252 seconds. RangeIterator (1000000) took 0.36493897438049 seconds. Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 32 bytes) in /in/24GEa on line 43
Process exited with code 255.
Output for 5.5.23
xrange (1000000) took 0.11818695068359 seconds. RangeIterator (1000000) took 0.36617088317871 seconds. Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 32 bytes) in /in/24GEa on line 43
Process exited with code 255.
Output for 5.5.22
xrange (1000000) took 0.11525893211365 seconds. RangeIterator (1000000) took 0.36437296867371 seconds. Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 32 bytes) in /in/24GEa on line 43
Process exited with code 255.
Output for 5.5.21
xrange (1000000) took 0.11687898635864 seconds. RangeIterator (1000000) took 0.36248803138733 seconds. Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 32 bytes) in /in/24GEa on line 43
Process exited with code 255.
Output for 5.5.20
xrange (1000000) took 0.093369007110596 seconds. RangeIterator (1000000) took 0.36512207984924 seconds. Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 32 bytes) in /in/24GEa on line 43
Process exited with code 255.
Output for 5.5.19
xrange (1000000) took 0.11386609077454 seconds. RangeIterator (1000000) took 0.37446904182434 seconds. Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 32 bytes) in /in/24GEa on line 43
Process exited with code 255.
Output for 5.5.18
xrange (1000000) took 0.11554002761841 seconds. RangeIterator (1000000) took 0.36880397796631 seconds. Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 32 bytes) in /in/24GEa on line 43
Process exited with code 255.
Output for 5.5.16
xrange (1000000) took 0.11299109458923 seconds. RangeIterator (1000000) took 0.36208486557007 seconds. Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 32 bytes) in /in/24GEa on line 43
Process exited with code 255.
Output for 5.5.15
xrange (1000000) took 0.10437417030334 seconds. RangeIterator (1000000) took 0.36427903175354 seconds. Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 32 bytes) in /in/24GEa on line 43
Process exited with code 255.
Output for 5.5.14
xrange (1000000) took 0.11705088615417 seconds. RangeIterator (1000000) took 0.36732196807861 seconds. Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 32 bytes) in /in/24GEa on line 43
Process exited with code 255.
Output for 5.5.13
xrange (1000000) took 0.1002881526947 seconds. RangeIterator (1000000) took 0.35622882843018 seconds. Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 32 bytes) in /in/24GEa on line 43
Process exited with code 255.
Output for 5.5.12
xrange (1000000) took 0.11549305915833 seconds. RangeIterator (1000000) took 0.3707001209259 seconds. Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 32 bytes) in /in/24GEa on line 43
Process exited with code 255.
Output for 5.5.11
xrange (1000000) took 0.10427808761597 seconds. RangeIterator (1000000) took 0.37848806381226 seconds. Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 32 bytes) in /in/24GEa on line 43
Process exited with code 255.
Output for 5.5.10
xrange (1000000) took 0.10623717308044 seconds. RangeIterator (1000000) took 0.36932015419006 seconds. Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 32 bytes) in /in/24GEa on line 43
Process exited with code 255.
Output for 5.5.9
xrange (1000000) took 0.091627836227417 seconds. RangeIterator (1000000) took 0.36535596847534 seconds. Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 32 bytes) in /in/24GEa on line 43
Process exited with code 255.
Output for 5.5.8
xrange (1000000) took 0.10555911064148 seconds. RangeIterator (1000000) took 0.37608599662781 seconds. Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 32 bytes) in /in/24GEa on line 43
Process exited with code 255.
Output for 5.5.7
xrange (1000000) took 0.12002992630005 seconds. RangeIterator (1000000) took 0.36788105964661 seconds. Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 32 bytes) in /in/24GEa on line 43
Process exited with code 255.
Output for 5.5.6
xrange (1000000) took 0.10500001907349 seconds. RangeIterator (1000000) took 0.3669331073761 seconds. Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 32 bytes) in /in/24GEa on line 43
Process exited with code 255.
Output for 5.5.5
xrange (1000000) took 0.12103986740112 seconds. RangeIterator (1000000) took 0.36565899848938 seconds. Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 32 bytes) in /in/24GEa on line 43
Process exited with code 255.
Output for 5.5.4
xrange (1000000) took 0.11401796340942 seconds. RangeIterator (1000000) took 0.37707209587097 seconds. Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 32 bytes) in /in/24GEa on line 43
Process exited with code 255.
Output for 5.5.3
xrange (1000000) took 0.099233150482178 seconds. RangeIterator (1000000) took 0.37696385383606 seconds. Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 32 bytes) in /in/24GEa on line 43
Process exited with code 255.
Output for 5.5.2
xrange (1000000) took 0.12150692939758 seconds. RangeIterator (1000000) took 0.40010905265808 seconds. Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 32 bytes) in /in/24GEa on line 43
Process exited with code 255.
Output for 5.5.1
xrange (1000000) took 0.11781287193298 seconds. RangeIterator (1000000) took 0.38261198997498 seconds. Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 32 bytes) in /in/24GEa on line 43
Process exited with code 255.
Output for 5.5.0
xrange (1000000) took 0.11982011795044 seconds. RangeIterator (1000000) took 0.38232016563416 seconds. Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 32 bytes) in /in/24GEa on line 43
Process exited with code 255.
Output for 5.4.0 - 5.4.45
Parse error: syntax error, unexpected '$i' (T_VARIABLE) in /in/24GEa on line 7
Process exited with code 255.
Output for 5.2.3 - 5.3.29
Parse error: syntax error, unexpected T_VARIABLE in /in/24GEa on line 7
Process exited with code 255.
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.2.2
<br /> <b>Parse error</b>: syntax error, unexpected T_VARIABLE in <b>/in/24GEa</b> on line <b>7</b><br />
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
<br /> <b>Parse error</b>: parse error, unexpected T_VARIABLE in <b>/in/24GEa</b> on line <b>7</b><br />
Process exited with code 255.
Output for 4.3.2 - 4.3.4
<br /> <b>Parse error</b>: parse error in <b>/in/24GEa</b> on line <b>7</b><br />
Process exited with code 255.