3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php error_reporting(E_ALL | E_STRICT); define('ITERATIONS', 2000000); function foo($a) { return; } $start = microtime(true); for ($i=0; $i < ITERATIONS; ++$i) { foo(1); $foo = 'foo'; $foo(1); call_user_func('foo', 1); call_user_func_array('foo', array(1)); } $stop = microtime(true); echo "Test name: " . ($stop - $start) . " seconds". PHP_EOL;
Output for 7.1.0
Test name: 0.057382106781006 seconds
Output for 7.0.14
Test name: 0.31788301467896 seconds
Output for 7.0.10
Test name: 0.23072791099548 seconds
Output for 7.0.9
Test name: 0.20305705070496 seconds
Output for 7.0.8
Test name: 0.20898795127869 seconds
Output for 7.0.7
Test name: 0.20221090316772 seconds
Output for 7.0.6
Test name: 0.19980406761169 seconds
Output for 7.0.5
Test name: 0.16026902198792 seconds
Output for 7.0.4
Test name: 0.21353197097778 seconds
Output for 7.0.3
Test name: 0.23987293243408 seconds
Output for 7.0.2
Test name: 0.22734689712524 seconds
Output for 7.0.1
Test name: 0.20697784423828 seconds
Output for 7.0.0
Test name: 0.21048498153687 seconds
Output for hhvm-3.12.0
Test name: 1.5862641334534 seconds
Output for hhvm-3.10.0
Test name: 2.0589029788971 seconds
Output for 5.6.28
Test name: 0.65567207336426 seconds
Output for 5.6.25
Test name: 1.617742061615 seconds
Output for 5.6.24
Test name: 1.6123540401459 seconds
Output for 5.6.23
Test name: 1.733186006546 seconds
Output for 5.6.22
Test name: 1.6602909564972 seconds
Output for 5.6.21
Test name: 1.5852220058441 seconds
Output for 5.6.20
Test name: 1.5577030181885 seconds
Output for 5.6.19
Test name: 1.4188628196716 seconds
Output for 5.6.18
Test name: 1.557247877121 seconds
Output for 5.6.17
Test name: 1.5718331336975 seconds
Output for 5.6.16
Test name: 1.5358560085297 seconds
Output for 5.6.15
Test name: 1.5463869571686 seconds
Output for 5.6.14
Test name: 1.7416229248047 seconds
Output for 5.6.13
Test name: 1.5187120437622 seconds
Output for 5.6.12
Test name: 1.5617890357971 seconds
Output for 5.6.11
Test name: 1.5686540603638 seconds
Output for 5.6.10
Test name: 1.4440569877625 seconds
Output for 5.6.9
Test name: 1.5907440185547 seconds
Output for 5.6.8
Test name: 1.5164048671722 seconds
Output for 5.6.7
Test name: 1.4111270904541 seconds
Output for 5.6.6
Test name: 1.491133928299 seconds
Output for 5.6.5
Test name: 1.607106924057 seconds
Output for 5.6.4
Test name: 1.5436019897461 seconds
Output for 5.6.3
Test name: 1.6555721759796 seconds
Output for 5.6.2
Test name: 1.5210139751434 seconds
Output for 5.6.1
Test name: 1.5771050453186 seconds
Output for 5.6.0
Test name: 1.5743658542633 seconds
Output for 5.5.38
Test name: 1.4371001720428 seconds
Output for 5.5.37
Test name: 1.5573220252991 seconds
Output for 5.5.36
Test name: 1.6407780647278 seconds
Output for 5.5.35
Test name: 1.4518089294434 seconds
Output for 5.5.34
Test name: 1.4034261703491 seconds
Output for 5.5.33
Test name: 1.5311050415039 seconds
Output for 5.5.32
Test name: 1.5523879528046 seconds
Output for 5.5.31
Test name: 1.6774251461029 seconds
Output for 5.5.30
Test name: 1.6339218616486 seconds
Output for 5.5.29
Test name: 1.6414737701416 seconds
Output for 5.5.28
Test name: 1.576639175415 seconds
Output for 5.5.27
Test name: 1.5553181171417 seconds
Output for 5.5.26
Test name: 1.5450868606567 seconds
Output for 5.5.25
Test name: 1.5832600593567 seconds
Output for 5.5.24
Test name: 1.5596280097961 seconds
Output for 5.5.23
Test name: 1.5963580608368 seconds
Output for 5.5.22
Test name: 1.5491790771484 seconds
Output for 5.5.21
Test name: 1.6737349033356 seconds
Output for 5.5.20
Test name: 1.5596108436584 seconds
Output for 5.5.19
Test name: 1.593740940094 seconds
Output for 5.5.18
Test name: 1.4288969039917 seconds
Output for 5.5.16
Test name: 1.5952711105347 seconds
Output for 5.5.15
Test name: 1.5653700828552 seconds
Output for 5.5.14
Test name: 1.6825618743896 seconds
Output for 5.5.13
Test name: 1.5766727924347 seconds
Output for 5.5.12
Test name: 1.5332510471344 seconds
Output for 5.5.11
Test name: 1.6947820186615 seconds
Output for 5.5.10
Test name: 1.4160540103912 seconds
Output for 5.5.9
Test name: 1.4433920383453 seconds
Output for 5.5.8
Test name: 1.4432780742645 seconds
Output for 5.5.7
Test name: 1.6827878952026 seconds
Output for 5.5.6
Test name: 1.8153250217438 seconds
Output for 5.5.5
Test name: 1.5552201271057 seconds
Output for 5.5.4
Test name: 1.5840499401093 seconds
Output for 5.5.3
Test name: 1.5901830196381 seconds
Output for 5.5.2
Test name: 1.5578699111938 seconds
Output for 5.5.1
Test name: 1.5387988090515 seconds
Output for 5.5.0
Test name: 1.5713200569153 seconds
Output for 5.4.45
Test name: 1.5974550247192 seconds
Output for 5.4.44
Test name: 1.4824650287628 seconds
Output for 5.4.43
Test name: 1.8121109008789 seconds
Output for 5.4.42
Test name: 1.5539441108704 seconds
Output for 5.4.41
Test name: 1.7442951202393 seconds
Output for 5.4.40
Test name: 1.4378259181976 seconds
Output for 5.4.39
Test name: 1.5504279136658 seconds
Output for 5.4.38
Test name: 1.6700229644775 seconds
Output for 5.4.37
Test name: 1.5644748210907 seconds
Output for 5.4.36
Test name: 1.5214321613312 seconds
Output for 5.4.35
Test name: 1.4699380397797 seconds
Output for 5.4.34
Test name: 1.5534400939941 seconds
Output for 5.4.32
Test name: 1.5814609527588 seconds
Output for 5.4.31
Test name: 1.5635378360748 seconds
Output for 5.4.30
Test name: 1.5606389045715 seconds
Output for 5.4.29
Test name: 1.6873497962952 seconds
Output for 5.4.28
Test name: 1.4454989433289 seconds
Output for 5.4.27
Test name: 1.4152500629425 seconds
Output for 5.4.26
Test name: 1.5376288890839 seconds
Output for 5.4.25
Test name: 1.7439029216766 seconds
Output for 5.4.24
Test name: 1.4868278503418 seconds
Output for 5.4.23
Test name: 1.4489359855652 seconds
Output for 5.4.22
Test name: 1.5174889564514 seconds
Output for 5.4.21
Test name: 1.5565779209137 seconds
Output for 5.4.20
Test name: 1.709527015686 seconds
Output for 5.4.19
Test name: 1.5761520862579 seconds
Output for 5.4.18
Test name: 1.5891590118408 seconds
Output for 5.4.17
Test name: 1.5509870052338 seconds
Output for 5.4.16
Test name: 1.8243680000305 seconds
Output for 5.4.15
Test name: 1.575562953949 seconds
Output for 5.4.14
Test name: 1.5562169551849 seconds
Output for 5.4.13
Test name: 1.6147100925446 seconds
Output for 5.4.12
Test name: 1.5851449966431 seconds
Output for 5.4.11
Test name: 1.3993401527405 seconds
Output for 5.4.10
Test name: 1.54407787323 seconds
Output for 5.4.9
Test name: 1.5160150527954 seconds
Output for 5.4.8
Test name: 1.5366950035095 seconds
Output for 5.4.7
Test name: 1.6504459381104 seconds
Output for 5.4.6
Test name: 1.5755801200867 seconds
Output for 5.4.5
Test name: 1.5433340072632 seconds
Output for 5.4.4
Test name: 1.5953450202942 seconds
Output for 5.4.3
Test name: 1.5438539981842 seconds
Output for 5.4.2
Test name: 1.5240149497986 seconds
Output for 5.4.1
Test name: 1.5332190990448 seconds
Output for 5.4.0
Test name: 1.4736270904541 seconds
Output for 5.3.29
Test name: 2.098384141922 seconds
Output for 5.3.28
Test name: 2.0567891597748 seconds
Output for 5.3.27
Test name: 2.2239551544189 seconds
Output for 5.3.26
Test name: 2.1786539554596 seconds
Output for 5.3.25
Test name: 2.1237869262695 seconds
Output for 5.3.24
Test name: 2.1006510257721 seconds
Output for 5.3.23
Test name: 2.0986819267273 seconds
Output for 5.3.22
Test name: 2.1276550292969 seconds
Output for 5.3.21
Test name: 2.1298758983612 seconds
Output for 5.3.20
Test name: 2.0800838470459 seconds
Output for 5.3.19
Test name: 1.9372191429138 seconds
Output for 5.3.18
Test name: 1.9986138343811 seconds
Output for 5.3.17
Test name: 1.9392638206482 seconds
Output for 5.3.16
Test name: 2.2027981281281 seconds
Output for 5.3.15
Test name: 2.0877571105957 seconds
Output for 5.3.14
Test name: 2.0932140350342 seconds
Output for 5.3.13
Test name: 2.1346199512482 seconds
Output for 5.3.12
Test name: 2.107617855072 seconds
Output for 5.3.11
Test name: 2.1120798587799 seconds
Output for 5.3.10
Test name: 2.1121590137482 seconds
Output for 5.3.9
Test name: 2.3015520572662 seconds
Output for 5.3.8
Test name: 2.3168280124664 seconds
Output for 5.3.7
Test name: 2.1517910957336 seconds
Output for 5.3.6
Test name: 2.0414950847626 seconds
Output for 5.3.5
Test name: 2.0881309509277 seconds
Output for 5.3.4
Test name: 2.1274080276489 seconds
Output for 5.3.3
Test name: 2.0633029937744 seconds
Output for 5.3.2
Test name: 2.1137070655823 seconds
Output for 5.3.1
Test name: 2.1773059368134 seconds
Output for 5.3.0
Test name: 2.1014800071716 seconds
Output for 5.0.0 - 5.0.5, 5.1.2 - 5.1.3, 5.1.6, 5.2.1 - 5.2.5, 5.2.7 - 5.2.9, 5.2.11 - 5.2.13, 5.2.16 - 5.2.17

Process exited with code 137.
Output for 5.2.15
Test name: 2.4455778598785 seconds
Output for 5.2.14
Test name: 2.3731660842896 seconds
Output for 5.2.10
Test name: 2.3801889419556 seconds
Output for 5.2.6
Test name: 2.356153011322 seconds
Output for 5.2.0
Test name: 2.2831227779388 seconds
Output for 5.1.5
Test name: 2.3234341144562 seconds
Output for 5.1.4
Test name: 2.3334770202637 seconds
Output for 5.1.1
Test name: 2.307333946228 seconds
Output for 5.1.0
Test name: 2.1099679470062 seconds
Output for 4.3.0 - 4.4.9
Notice: Use of undefined constant E_STRICT - assumed 'E_STRICT' in /in/9Q48F on line 2
Process exited with code 137.