3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function ref(&$array) { foreach ($array as $item) { $tem; } } $start = microtime(true); $array = range(0, 1000); ref($array); echo 'time: '.(microtime(true) - $start).' сек.';
Output for 7.2.6
time: 2.8848648071289E-5 сек.
Output for 7.0.6, 7.2.0
time: 3.8862228393555E-5 сек.
Output for 7.1.10
time: 2.6941299438477E-5 сек.
Output for 7.0.2, 7.0.5, 7.0.9, 7.0.20, 7.1.7
time: 4.1007995605469E-5 сек.
Output for 7.1.6
time: 0.0013718605041504 сек.
Output for 7.0.17, 7.1.3, 7.1.5
time: 4.1961669921875E-5 сек.
Output for 7.1.4
time: 0.00013518333435059 сек.
Output for 7.1.2
time: 3.6954879760742E-5 сек.
Output for 7.1.1
time: 3.4093856811523E-5 сек.
Output for 7.1.0
time: 4.4822692871094E-5 сек.
Output for 7.0.19
time: 4.7922134399414E-5 сек.
Output for 7.0.18
time: 4.6014785766602E-5 сек.
Output for 7.0.7, 7.0.16
time: 3.0994415283203E-5 сек.
Output for 7.0.15
time: 3.7908554077148E-5 сек.
Output for 7.0.4, 7.0.11, 7.0.14
time: 4.0054321289062E-5 сек.
Output for 7.0.13
time: 4.2200088500977E-5 сек.
Output for 7.0.12
time: 5.4121017456055E-5 сек.
Output for 7.0.10
time: 3.1948089599609E-5 сек.
Output for 7.0.8
time: 3.9815902709961E-5 сек.
Output for 7.0.3
time: 3.0040740966797E-5 сек.
Output for 7.0.1
time: 3.9100646972656E-5 сек.
Output for 7.0.0
time: 3.6001205444336E-5 сек.
Output for hhvm-3.15.4
Notice: Undefined variable: tem in /in/M7nI7 on line 5 Notice: Undefined variable: tem in /in/M7nI7 on line 5 Notice: Undefined variable: tem in /in/M7nI7 on line 5 Notice: Undefined variable: tem in /in/M7nI7 on line 5 Notice: Undefined variable: tem in /in/M7nI7 on line 5 Notice: Undefined variable: tem in /in/M7nI7 on line 5 Notice: Undefined variable: tem in /in/M7nI7 on line 5 Notice: Undefined variable: tem in /in/M7nI7 on line 5 Notice: Undefined variable: tem in /in/M7nI7 on line 5 Notice: Undefined variable: tem in /in/M7nI7 on line 5 Notice: Undefined variable: tem in /in/M7nI7 on line 5 Notice: Undefined variable: tem in /in/M7nI7 on line 5 Notice: Undefined variable: tem in /in/M7nI7 on line 5 Notice: Undefined variable: tem in /in/M7nI7 on line 5 Notice: Undefined variable: tem in /in/M7nI7 on line 5 Notice: Undefined variable: tem in /in/M7nI7 on line 5 time: 0.0043590068817139 сек.
Output for 5.6.0, 5.6.30
time: 0.00024914741516113 сек.
Output for 5.6.29
time: 0.00024604797363281 сек.
Output for 5.6.28
time: 0.00025796890258789 сек.
Output for 5.6.27
time: 0.00025391578674316 сек.
Output for 5.6.26
time: 0.0004889965057373 сек.
Output for 5.6.25
time: 0.00026488304138184 сек.
Output for 5.6.24
time: 0.00026988983154297 сек.
Output for 5.6.23
time: 0.00026798248291016 сек.
Output for 5.6.22
time: 0.00024080276489258 сек.
Output for 5.6.5, 5.6.21
time: 0.00021600723266602 сек.
Output for 5.6.20
time: 0.00038909912109375 сек.
Output for 5.6.19
time: 0.00025606155395508 сек.
Output for 5.6.18
time: 0.00017189979553223 сек.
Output for 5.6.17
time: 0.0002751350402832 сек.
Output for 5.6.16
time: 0.00017118453979492 сек.
Output for 5.6.15
time: 0.00024509429931641 сек.
Output for 5.6.14
time: 0.00017499923706055 сек.
Output for 5.6.13
time: 0.00024700164794922 сек.
Output for 5.6.11 - 5.6.12
time: 0.00024986267089844 сек.
Output for 5.6.10
time: 0.00017094612121582 сек.
Output for 5.6.9
time: 0.00016999244689941 сек.
Output for 5.6.8
time: 0.00025486946105957 сек.
Output for 5.6.7
time: 0.00017213821411133 сек.
Output for 5.6.6
time: 0.00020003318786621 сек.
Output for 5.6.4
time: 0.0002291202545166 сек.
Output for 5.6.3
time: 0.00017404556274414 сек.
Output for 5.6.2
time: 0.00016617774963379 сек.
Output for 5.6.1
time: 0.00024104118347168 сек.