<?php
$users = array(array('name' => 'a'),
array('name' => 'b'),
array('name' => 'c'),
array('name' => 'd'),
array('name' => 'e'),
array('name' => 'f'),
array('name' => 'g')
);
function userNames($users)
{
foreach($users as $user)
{
yield $user['name'];
}
}
$start = microtime(true) . PHP_EOL;
foreach(userNames($users) as $name)
{
echo $name . PHP_EOL;
}
echo microtime(true) - $start;
- Output for 7.1.23, 7.3.0
- a
b
c
d
e
f
g
Notice: A non well formed numeric value encountered in /in/qjvFQ on line 27
4.0054321289062E-5
- Output for 7.2.13
- a
b
c
d
e
f
g
Notice: A non well formed numeric value encountered in /in/qjvFQ on line 27
4.2200088500977E-5
- Output for 7.2.12
- a
b
c
d
e
f
g
Notice: A non well formed numeric value encountered in /in/qjvFQ on line 27
3.814697265625E-5
- Output for 7.2.11
- a
b
c
d
e
f
g
Notice: A non well formed numeric value encountered in /in/qjvFQ on line 27
7.6055526733398E-5
- Output for 7.2.10
- a
b
c
d
e
f
g
Notice: A non well formed numeric value encountered in /in/qjvFQ on line 27
4.4107437133789E-5
- Output for 7.2.9
- a
b
c
d
e
f
g
Notice: A non well formed numeric value encountered in /in/qjvFQ on line 27
3.7193298339844E-5
- Output for 7.1.1, 7.2.8
- a
b
c
d
e
f
g
Notice: A non well formed numeric value encountered in /in/qjvFQ on line 27
5.1021575927734E-5
- Output for 7.2.7
- a
b
c
d
e
f
g
Notice: A non well formed numeric value encountered in /in/qjvFQ on line 27
3.2186508178711E-5
- Output for 7.2.6
- a
b
c
d
e
f
g
Notice: A non well formed numeric value encountered in /in/qjvFQ on line 27
8.1062316894531E-5
- Output for 7.2.5
- a
b
c
d
e
f
g
Notice: A non well formed numeric value encountered in /in/qjvFQ on line 27
8.9883804321289E-5
- Output for 7.2.4
- a
b
c
d
e
f
g
Notice: A non well formed numeric value encountered in /in/qjvFQ on line 27
3.6001205444336E-5
- Output for 7.1.16, 7.2.3
- a
b
c
d
e
f
g
Notice: A non well formed numeric value encountered in /in/qjvFQ on line 27
4.3153762817383E-5
- Output for 7.2.2
- a
b
c
d
e
f
g
Notice: A non well formed numeric value encountered in /in/qjvFQ on line 27
0.0001220703125
- Output for 7.2.1
- a
b
c
d
e
f
g
Notice: A non well formed numeric value encountered in /in/qjvFQ on line 27
5.3167343139648E-5
- Output for 7.2.0
- a
b
c
d
e
f
g
Notice: A non well formed numeric value encountered in /in/qjvFQ on line 27
7.2002410888672E-5
- Output for 7.1.25
- a
b
c
d
e
f
g
Notice: A non well formed numeric value encountered in /in/qjvFQ on line 27
9.918212890625E-5
- Output for 7.1.24
- a
b
c
d
e
f
g
Notice: A non well formed numeric value encountered in /in/qjvFQ on line 27
5.8174133300781E-5
- Output for 7.1.22
- a
b
c
d
e
f
g
Notice: A non well formed numeric value encountered in /in/qjvFQ on line 27
6.1988830566406E-5
- Output for 7.1.21
- a
b
c
d
e
f
g
Notice: A non well formed numeric value encountered in /in/qjvFQ on line 27
8.0108642578125E-5
- Output for 7.1.20
- a
b
c
d
e
f
g
Notice: A non well formed numeric value encountered in /in/qjvFQ on line 27
2.7179718017578E-5
- Output for 7.1.19
- a
b
c
d
e
f
g
Notice: A non well formed numeric value encountered in /in/qjvFQ on line 27
8.9168548583984E-5
- Output for 7.1.18
- a
b
c
d
e
f
g
Notice: A non well formed numeric value encountered in /in/qjvFQ on line 27
4.1007995605469E-5
- Output for 7.1.17
- a
b
c
d
e
f
g
Notice: A non well formed numeric value encountered in /in/qjvFQ on line 27
6.103515625E-5
- Output for 7.1.15
- a
b
c
d
e
f
g
Notice: A non well formed numeric value encountered in /in/qjvFQ on line 27
6.5088272094727E-5
- Output for 7.1.14
- a
b
c
d
e
f
g
Notice: A non well formed numeric value encountered in /in/qjvFQ on line 27
0.0077581405639648
- Output for 7.1.13
- a
b
c
d
e
f
g
Notice: A non well formed numeric value encountered in /in/qjvFQ on line 27
5.2213668823242E-5
- Output for 7.1.9, 7.1.12
- a
b
c
d
e
f
g
Notice: A non well formed numeric value encountered in /in/qjvFQ on line 27
6.413459777832E-5
- Output for 7.1.11
- a
b
c
d
e
f
g
Notice: A non well formed numeric value encountered in /in/qjvFQ on line 27
5.5074691772461E-5
- Output for 7.1.10
- a
b
c
d
e
f
g
Notice: A non well formed numeric value encountered in /in/qjvFQ on line 27
0.022767066955566
- Output for 7.1.8
- a
b
c
d
e
f
g
Notice: A non well formed numeric value encountered in /in/qjvFQ on line 27
6.3180923461914E-5
- Output for 7.1.7
- a
b
c
d
e
f
g
Notice: A non well formed numeric value encountered in /in/qjvFQ on line 27
4.6014785766602E-5
- Output for 7.1.6
- a
b
c
d
e
f
g
Notice: A non well formed numeric value encountered in /in/qjvFQ on line 27
6.9141387939453E-5
- Output for 7.1.5
- a
b
c
d
e
f
g
Notice: A non well formed numeric value encountered in /in/qjvFQ on line 27
2.598762512207E-5
- Output for 7.1.4
- a
b
c
d
e
f
g
Notice: A non well formed numeric value encountered in /in/qjvFQ on line 27
0.0026061534881592
- Output for 7.1.3
- a
b
c
d
e
f
g
Notice: A non well formed numeric value encountered in /in/qjvFQ on line 27
0.015608072280884
- Output for 7.1.2
- a
b
c
d
e
f
g
Notice: A non well formed numeric value encountered in /in/qjvFQ on line 27
9.5129013061523E-5
- Output for 7.1.0
- a
b
c
d
e
f
g
Notice: A non well formed numeric value encountered in /in/qjvFQ on line 27
0.018324136734009
- Output for 7.0.33
- a
b
c
d
e
f
g
5.4121017456055E-5
- Output for 7.0.32
- a
b
c
d
e
f
g
0.022106170654297
- Output for 5.5.10, 5.6.37, 7.0.28, 7.0.31
- a
b
c
d
e
f
g
5.5074691772461E-5
- Output for 7.0.30
- a
b
c
d
e
f
g
5.3167343139648E-5
- Output for 7.0.29
- a
b
c
d
e
f
g
5.9604644775391E-6
- Output for 7.0.24, 7.0.27
- a
b
c
d
e
f
g
4.0054321289062E-5
- Output for 7.0.26
- a
b
c
d
e
f
g
0.00010108947753906
- Output for 7.0.25
- a
b
c
d
e
f
g
0.012637138366699
- Output for 7.0.23
- a
b
c
d
e
f
g
0.0073089599609375
- Output for 7.0.22
- a
b
c
d
e
f
g
1.4066696166992E-5
- Output for 7.0.21
- a
b
c
d
e
f
g
0.006721019744873
- Output for 7.0.20
- a
b
c
d
e
f
g
0.04492712020874
- Output for 7.0.19
- a
b
c
d
e
f
g
0.053344011306763
- Output for 7.0.18
- a
b
c
d
e
f
g
0.0026710033416748
- Output for 7.0.17
- a
b
c
d
e
f
g
0.00028300285339355
- Output for 7.0.16
- a
b
c
d
e
f
g
5.2928924560547E-5
- Output for 7.0.15
- a
b
c
d
e
f
g
9.1075897216797E-5
- Output for 5.6.14, 5.6.31, 7.0.14
- a
b
c
d
e
f
g
3.6001205444336E-5
- Output for 5.5.5, 7.0.13
- a
b
c
d
e
f
g
5.1021575927734E-5
- Output for 7.0.12
- a
b
c
d
e
f
g
0.024941921234131
- Output for 5.6.33, 7.0.11
- a
b
c
d
e
f
g
7.9154968261719E-5
- Output for 7.0.10
- a
b
c
d
e
f
g
0.015534162521362
- Output for 7.0.9
- a
b
c
d
e
f
g
0.026090860366821
- Output for 7.0.8
- a
b
c
d
e
f
g
0.010856151580811
- Output for 7.0.7
- a
b
c
d
e
f
g
0.024525165557861
- Output for 7.0.6
- a
b
c
d
e
f
g
3.3140182495117E-5
- Output for 7.0.5
- a
b
c
d
e
f
g
0.037824153900146
- Output for 7.0.4
- a
b
c
d
e
f
g
0.0085890293121338
- Output for 7.0.3
- a
b
c
d
e
f
g
0.063769102096558
- Output for 7.0.2
- a
b
c
d
e
f
g
8.0108642578125E-5
- Output for 5.5.38, 5.6.18, 7.0.1
- a
b
c
d
e
f
g
6.2942504882812E-5
- Output for 7.0.0
- a
b
c
d
e
f
g
5.8174133300781E-5
- Output for 5.5.3, 5.6.38
- a
b
c
d
e
f
g
3.0994415283203E-5
- Output for 5.6.13, 5.6.36
- a
b
c
d
e
f
g
3.504753112793E-5
- Output for 5.6.35
- a
b
c
d
e
f
g
0.028609037399292
- Output for 5.6.34
- a
b
c
d
e
f
g
5.793571472168E-5
- Output for 5.6.32
- a
b
c
d
e
f
g
0.00010299682617188
- Output for 5.6.30
- a
b
c
d
e
f
g
2.0980834960938E-5
- Output for 5.6.29
- a
b
c
d
e
f
g
3.814697265625E-5
- Output for 5.6.28
- a
b
c
d
e
f
g
4.7922134399414E-5
- Output for 5.6.27
- a
b
c
d
e
f
g
0.00014495849609375
- Output for 5.6.26
- a
b
c
d
e
f
g
5.8889389038086E-5
- Output for 5.6.25
- a
b
c
d
e
f
g
0.0003659725189209
- Output for 5.5.22, 5.6.24
- a
b
c
d
e
f
g
0.00011086463928223
- Output for 5.5.4, 5.6.3, 5.6.8, 5.6.23
- a
b
c
d
e
f
g
9.7036361694336E-5
- Output for 5.6.22
- a
b
c
d
e
f
g
0.00010204315185547
- Output for 5.6.21
- a
b
c
d
e
f
g
5.0067901611328E-5
- Output for 5.6.20
- a
b
c
d
e
f
g
3.4809112548828E-5
- Output for 5.6.19
- a
b
c
d
e
f
g
0.065459012985229
- Output for 5.6.17
- a
b
c
d
e
f
g
5.3882598876953E-5
- Output for 5.6.16
- a
b
c
d
e
f
g
0.00011301040649414
- Output for 5.5.14, 5.6.15
- a
b
c
d
e
f
g
7.1048736572266E-5
- Output for 5.6.12
- a
b
c
d
e
f
g
6.6995620727539E-5
- Output for 5.6.11
- a
b
c
d
e
f
g
6.9141387939453E-6
- Output for 5.6.10
- a
b
c
d
e
f
g
9.9897384643555E-5
- Output for 5.6.9
- a
b
c
d
e
f
g
9.4175338745117E-5
- Output for 5.6.7
- a
b
c
d
e
f
g
5.0067901611328E-6
- Output for 5.5.21, 5.6.6
- a
b
c
d
e
f
g
0.00013208389282227
- Output for 5.6.5
- a
b
c
d
e
f
g
0.018877029418945
- Output for 5.6.4
- a
b
c
d
e
f
g
0.046477079391479
- Output for 5.6.2
- a
b
c
d
e
f
g
7.7009201049805E-5
- Output for 5.6.1
- a
b
c
d
e
f
g
5.6028366088867E-5
- Output for 5.6.0
- a
b
c
d
e
f
g
5.1975250244141E-5
- Output for 5.5.2, 5.5.9, 5.5.37
- a
b
c
d
e
f
g
1.2874603271484E-5
- Output for 5.5.36
- a
b
c
d
e
f
g
6.8187713623047E-5
- Output for 5.5.35
- a
b
c
d
e
f
g
7.5101852416992E-5
- Output for 5.5.34
- a
b
c
d
e
f
g
4.1961669921875E-5
- Output for 5.5.33
- a
b
c
d
e
f
g
0.015066862106323
- Output for 5.5.32
- a
b
c
d
e
f
g
0.00043606758117676
- Output for 5.5.31
- a
b
c
d
e
f
g
8.2015991210938E-5
- Output for 5.5.30
- a
b
c
d
e
f
g
0.065917015075684
- Output for 5.5.29
- a
b
c
d
e
f
g
0.082256078720093
- Output for 5.5.28
- a
b
c
d
e
f
g
9.608268737793E-5
- Output for 5.5.27
- a
b
c
d
e
f
g
2.8848648071289E-5
- Output for 5.5.26
- a
b
c
d
e
f
g
4.1007995605469E-5
- Output for 5.5.25
- a
b
c
d
e
f
g
0.03840708732605
- Output for 5.5.24
- a
b
c
d
e
f
g
2.7894973754883E-5
- Output for 5.5.23
- a
b
c
d
e
f
g
0.00010800361633301
- Output for 5.5.20
- a
b
c
d
e
f
g
0.022225141525269
- Output for 5.5.19
- a
b
c
d
e
f
g
0.021733045578003
- Output for 5.5.18
- a
b
c
d
e
f
g
0.022914171218872
- Output for 5.5.17
- a
b
c
d
e
f
g
0.0080909729003906
- Output for 5.5.16
- a
b
c
d
e
f
g
0.0028958320617676
- Output for 5.5.15
- a
b
c
d
e
f
g
0.0039618015289307
- Output for 5.5.13
- a
b
c
d
e
f
g
6.1988830566406E-5
- Output for 5.5.12
- a
b
c
d
e
f
g
8.3208084106445E-5
- Output for 5.5.11
- a
b
c
d
e
f
g
7.8916549682617E-5
- Output for 5.5.8
- a
b
c
d
e
f
g
8.5115432739258E-5
- Output for 5.5.7
- a
b
c
d
e
f
g
3.2901763916016E-5
- Output for 5.5.6
- a
b
c
d
e
f
g
4.6968460083008E-5
- Output for 5.5.1
- a
b
c
d
e
f
g
0.0065059661865234
- Output for 5.5.0
- a
b
c
d
e
f
g
9.5129013061523E-5
- Output for 5.4.0 - 5.4.45
- Parse error: syntax error, unexpected '$user' (T_VARIABLE) in /in/qjvFQ on line 16
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 T_VARIABLE in /in/qjvFQ on line 16
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 T_VARIABLE in /in/qjvFQ on line 16
Process exited with code 255. - Output for 4.3.2 - 4.3.4
- Parse error: parse error in /in/qjvFQ on line 16
Process exited with code 255.
preferences:
239.14 ms | 401 KiB | 287 Q