<?php
$start = microtime(true);
$stack = new SplStack();
$array = [];
for ($i = 0; $i < 1000000; ++$i) {
$stack->push($i);
// $array[] = $i;
}
$tmp = 0;
for ($i = 0; $i < 1000000; ++$i) {
$tmp = $stack->pop();
// $tmp = array_pop($array);
}
echo microtime(true) - $start;
- Output for 7.4.0
- 0.14796185493469
- Output for 7.3.12
- 0.16304183006287
- Output for 7.3.11
- 0.15795302391052
- Output for 7.3.10
- 0.10328388214111
- Output for 7.3.9
- 0.12934613227844
- Output for 7.3.8
- 0.10177493095398
- Output for 7.3.7
- 0.14175796508789
- Output for 7.3.6
- 0.11722493171692
- Output for 7.3.5
- 0.11522006988525
- Output for 7.3.4
- 0.10244202613831
- Output for 7.3.3
- 0.10483193397522
- Output for 7.3.2
- 0.14060807228088
- Output for 7.3.1
- 0.11336994171143
- Output for 7.3.0
- 0.13230299949646
- Output for 7.2.25
- 0.1410219669342
- Output for 7.2.24
- 0.16680192947388
- Output for 7.2.23
- 0.1290500164032
- Output for 7.2.22
- 0.10456705093384
- Output for 7.2.21
- 0.10271191596985
- Output for 7.2.20
- 0.14179086685181
- Output for 7.2.19
- 0.10478591918945
- Output for 7.2.18
- 0.09992504119873
- Output for 7.2.17
- 0.10588407516479
- Output for 7.2.0
- 0.10398197174072
- Output for 7.1.33
- 0.18168210983276
- Output for 7.1.32
- 0.1609799861908
- Output for 7.1.31
- 0.17413091659546
- Output for 7.1.30
- 0.15695691108704
- Output for 7.1.29
- 0.16070699691772
- Output for 7.1.28
- 0.20116710662842
- Output for 7.1.27
- 0.15706205368042
- Output for 7.1.26
- 0.17673301696777
- Output for 7.1.7
- 0.085453033447266
- Output for 7.1.6
- 0.094070196151733
- Output for 7.1.5
- 0.11790084838867
- Output for 7.1.0
- 0.11548519134521
- Output for 7.0.20
- 0.28980684280396
- Output for 7.0.14
- 0.11349701881409
- Output for 7.0.6
- 0.10489392280579
- Output for 7.0.5
- 0.10914397239685
- Output for 7.0.4
- 0.10179805755615
- Output for 7.0.3
- 0.090914011001587
- Output for 7.0.2
- 0.089574098587036
- Output for 7.0.1
- 0.087711095809937
- Output for 7.0.0
- 0.09555196762085
- Output for 5.4.0 - 5.4.45, 5.5.24 - 5.5.35, 5.6.8 - 5.6.28
- Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 32 bytes) in /in/bqsrV on line 8
Process exited with code 255. - Output for 4.4.2 - 4.4.9, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29
- Parse error: syntax error, unexpected '[' in /in/bqsrV on line 5
Process exited with code 255. - Output for 4.3.0 - 4.3.1, 4.3.5 - 4.3.11, 4.4.0 - 4.4.1, 5.0.0 - 5.0.5
- Parse error: parse error, unexpected '[' in /in/bqsrV on line 5
Process exited with code 255. - Output for 4.3.2 - 4.3.4
- Parse error: parse error in /in/bqsrV on line 5
Process exited with code 255.
preferences:
183.67 ms | 401 KiB | 205 Q