3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Foo { public function bar() {} } $foo = new Foo(); $method = 'bar'; $args = array(); $iterations = 100000; $start = microtime(true); for($i = 0; $i < $iterations; $i++) { $foo->{$method}($args); } echo 'Calling directly on object: ' . microtime(true) - $start . '<br />'; $start = microtime(true); for($i = 0; $i < $iterations; $i++) { call_user_func(array($foo, $method), $args); } echo 'Calling call_user_func: ' . microtime(true) - $start . '<br />';
Output for 7.1.0
Warning: A non-numeric value encountered in /in/VGv0Z on line 21 -1371478974.0063<br /> Warning: A non-numeric value encountered in /in/VGv0Z on line 30 -1371478974.0159<br />
Output for 7.0.14
-1371478974.0039<br />-1371478974.0169<br />
Output for 7.0.12
-1371478974.0039<br />-1371478974.0133<br />
Output for 7.0.6
-1462258370.7307<br />-1462258370.7379<br />
Output for 7.0.5
-1459626450.435<br />-1459626450.4433<br />
Output for 7.0.4
-1457593917.5861<br />-1457593917.5918<br />
Output for 7.0.3
-1458287184.1895<br />-1458287184.1964<br />
Output for 7.0.2
-1458653529.7145<br />-1458653529.7221<br />
Output for 7.0.1
-1458757898.7454<br />-1458757898.7537<br />
Output for 7.0.0
-1459022761.5741<br />-1459022761.5827<br />
Output for hhvm-3.12.0
-1459451694.5486<br />-1459451694.5673<br />
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.6.28
-1371478974.0044<br />-1371478974.0197<br />
Output for 5.6.21
-1462155220.3868<br />-1462155220.4015<br />
Output for 5.6.20
-1460227336.4929<br />-1460227336.5028<br />
Output for 5.6.19
-1457363999.6769<br />-1457363999.694<br />
Output for 5.6.18
-1457996819.2623<br />-1457996819.2737<br />
Output for 5.6.17
-1458389054.7255<br />-1458389054.7392<br />
Output for 5.6.16
-1459111898.8792<br />-1459111898.8892<br />
Output for 5.6.15
-1459201475.895<br />-1459201475.9101<br />
Output for 5.6.14
-1459556411.0806<br />-1459556411.0924<br />
Output for 5.6.13
-1460693633.8265<br />-1460693633.8384<br />
Output for 5.6.12
-1461088414.239<br />-1461088414.2488<br />
Output for 5.6.11
-1461373178.8253<br />-1461373178.84<br />
Output for 5.6.10
-1461552184.7084<br />-1461552184.7178<br />
Output for 5.6.9
-1461742849.9932<br />-1461742850.0042<br />
Output for 5.6.8
-1461944552.0443<br />-1461944552.0577<br />
Output for 5.6.7
-1464175996.3794<br />-1464175996.3986<br />
Output for 5.5.35
-1463896653.4351<br />-1463896653.4466<br />
Output for 5.5.34
-1460322272.8103<br />-1460322272.8251<br />
Output for 5.5.33
-1457461016.8112<br />-1457461016.8211<br />
Output for 5.5.32
-1458176226.4224<br />-1458176226.433<br />
Output for 5.5.31
-1458485407.3465<br />-1458485407.3625<br />
Output for 5.5.30
-1459468339.7459<br />-1459468339.7604<br />
Output for 5.5.29
-1460830742.7884<br />-1460830742.8<br />
Output for 5.5.28
-1461185990.2308<br />-1461185990.2423<br />
Output for 5.5.27
-1461281424.6886<br />-1461281424.7041<br />
Output for 5.5.26
-1461647407.8058<br />-1461647407.8155<br />
Output for 5.5.25
-1461842083.6063<br />-1461842083.6241<br />
Output for 5.5.24
-1464028117.045<br />-1464028117.0595<br />
Output for 5.4.45
-1444739791.1696<br />-1444739791.184<br />
Output for 5.4.44
-1444739791.5649<br />-1444739791.5802<br />
Output for 5.4.43
-1444739791.9401<br />-1444739791.9503<br />
Output for 5.4.42
-1444739792.2656<br />-1444739792.2756<br />
Output for 5.4.41
-1444739792.618<br />-1444739792.6282<br />
Output for 5.4.40
-1444739792.964<br />-1444739792.9739<br />
Output for 5.4.39
-1444739793.283<br />-1444739793.2928<br />
Output for 5.4.38
-1444739793.6308<br />-1444739793.6411<br />
Output for 5.4.37
-1444739793.9953<br />-1444739794.0056<br />
Output for 5.4.36
-1444739794.3506<br />-1444739794.3608<br />
Output for 5.4.35
-1444739794.7079<br />-1444739794.7179<br />
Output for 5.4.34
-1444739795.0457<br />-1444739795.0559<br />
Output for 5.4.32
-1444739795.3201<br />-1444739795.3297<br />
Output for 5.4.31
-1444739795.4582<br />-1444739795.4681<br />
Output for 5.4.30
-1444739795.617<br />-1444739795.6331<br />
Output for 5.4.29
-1444739795.9229<br />-1444739795.9328<br />
Output for 5.4.28
-1444739796.3034<br />-1444739796.3226<br />
Output for 5.4.27
-1444739796.6746<br />-1444739796.6842<br />
Output for 5.4.26
-1444739797.0501<br />-1444739797.0596<br />
Output for 5.4.25
-1444739797.4253<br />-1444739797.4422<br />
Output for 5.4.24
-1444739797.7743<br />-1444739797.7839<br />
Output for 5.4.23
-1444739798.1501<br />-1444739798.1678<br />
Output for 5.4.22
-1444739798.5024<br />-1444739798.5118<br />
Output for 5.4.21
-1444739798.8062<br />-1444739798.8158<br />
Output for 5.4.20
-1444739798.9497<br />-1444739798.9593<br />
Output for 5.4.19
-1444739799.098<br />-1444739799.1152<br />
Output for 5.4.18
-1444739799.3634<br />-1444739799.3732<br />
Output for 5.4.17
-1444739799.7075<br />-1444739799.7176<br />
Output for 5.4.16
-1444739800.04<br />-1444739800.05<br />
Output for 5.4.15
-1444739800.4169<br />-1444739800.4268<br />
Output for 5.4.14
-1444739800.82<br />-1444739800.8299<br />
Output for 5.4.13
-1444739801.1736<br />-1444739801.1832<br />
Output for 5.4.12
-1444739801.604<br />-1444739801.6207<br />
Output for 5.4.11
-1444739801.9787<br />-1444739801.9885<br />
Output for 5.4.10
-1444739802.3256<br />-1444739802.3357<br />
Output for 5.4.9
-1444739802.7243<br />-1444739802.7343<br />
Output for 5.4.8
-1444739803.1112<br />-1444739803.1213<br />
Output for 5.4.7
-1444739803.475<br />-1444739803.4847<br />
Output for 5.4.6
-1444739803.8023<br />-1444739803.8122<br />
Output for 5.4.5
-1444739804.1464<br />-1444739804.1568<br />
Output for 5.4.4
-1444739804.495<br />-1444739804.5051<br />
Output for 5.4.3
-1444739804.8116<br />-1444739804.8218<br />
Output for 5.4.2
-1444739805.1319<br />-1444739805.1419<br />
Output for 5.4.1
-1444739805.4638<br />-1444739805.4741<br />
Output for 5.4.0
-1444739805.7868<br />-1444739805.7961<br />
Output for 5.3.29
-1444739806.1373<br />-1444739806.1491<br />
Output for 5.3.28
-1444739806.5072<br />-1444739806.5279<br />
Output for 5.3.27
-1444739806.8895<br />-1444739806.9008<br />
Output for 5.3.26
-1444739807.24<br />-1444739807.2508<br />
Output for 5.3.25
-1444739807.562<br />-1444739807.5727<br />
Output for 5.3.24
-1444739807.9116<br />-1444739807.9221<br />
Output for 5.3.23
-1444739808.2498<br />-1444739808.2605<br />
Output for 5.3.22
-1444739808.6247<br />-1444739808.6453<br />
Output for 5.3.21
-1444739808.9931<br />-1444739809.0036<br />
Output for 5.3.20
-1444739809.3436<br />-1444739809.354<br />
Output for 5.3.19
-1444739809.7625<br />-1444739809.7731<br />
Output for 5.3.18
-1444739810.1149<br />-1444739810.1253<br />
Output for 5.3.17
-1444739810.5006<br />-1444739810.5109<br />
Output for 5.3.16
-1444739810.8337<br />-1444739810.8444<br />
Output for 5.3.15
-1444739811.0611<br />-1444739811.0776<br />
Output for 5.3.14
-1444739811.2627<br />-1444739811.2803<br />
Output for 5.3.13
-1444739811.4337<br />-1444739811.4443<br />
Output for 5.3.12
-1444739811.7758<br />-1444739811.7866<br />
Output for 5.3.11
-1444739812.1452<br />-1444739812.156<br />
Output for 5.3.10
-1444739812.4964<br />-1444739812.5071<br />
Output for 5.3.9
-1444739812.8495<br />-1444739812.8605<br />
Output for 5.3.8
-1444739813.2057<br />-1444739813.2168<br />
Output for 5.3.7
-1444739813.5434<br />-1444739813.5548<br />
Output for 5.3.6
-1444739813.8884<br />-1444739813.8995<br />
Output for 5.3.5
-1444739814.2267<br />-1444739814.238<br />
Output for 5.3.4
-1444739814.5506<br />-1444739814.5617<br />
Output for 5.3.3
-1444739814.8883<br />-1444739814.8989<br />
Output for 5.3.2
-1444739815.2519<br />-1444739815.2633<br />
Output for 5.3.1
-1444739815.5821<br />-1444739815.5935<br />
Output for 5.3.0
-1444739815.9243<br />-1444739815.935<br />
Output for 5.2.17
-1444739816.2199<br />-1444739816.2345<br />
Output for 5.2.16
-1444739816.528<br />-1444739816.5416<br />
Output for 5.2.15
-1444739816.849<br />-1444739816.863<br />
Output for 5.2.14
-1444739817.174<br />-1444739817.1879<br />
Output for 5.2.13
-1444739817.5585<br />-1444739817.5778<br />
Output for 5.2.12
-1444739817.9396<br />-1444739817.9534<br />
Output for 5.2.11
-1444739818.2647<br />-1444739818.2788<br />
Output for 5.2.10
-1444739818.5671<br />-1444739818.5807<br />
Output for 5.2.9
-1444739818.8883<br />-1444739818.9021<br />
Output for 5.2.8
-1444739819.2981<br />-1444739819.3123<br />
Output for 5.2.7
-1444739819.6247<br />-1444739819.6396<br />
Output for 5.2.6
-1444739819.9493<br />-1444739819.9631<br />
Output for 5.2.5
-1444739820.2847<br />-1444739820.2983<br />
Output for 5.2.4
-1444739820.5528<br />-1444739820.5662<br />
Output for 5.2.3
-1444739820.8201<br />-1444739820.8335<br />
Output for 5.2.2
-1444739821.1141<br />-1444739821.128<br />
Output for 5.2.1
-1444739821.4027<br />-1444739821.4152<br />
Output for 5.2.0
-1444739821.6776<br />-1444739821.6909<br />
Output for 5.1.6
-1444739821.9496<br />-1444739821.9646<br />
Output for 5.1.5
-1444739822.2961<br />-1444739822.321<br />
Output for 5.1.4
-1444739822.6304<br />-1444739822.6443<br />
Output for 5.1.3
-1444739822.8517<br />-1444739822.8662<br />
Output for 5.1.2
-1444739823.0147<br />-1444739823.0277<br />
Output for 5.1.1
-1444739823.1641<br />-1444739823.1781<br />
Output for 5.1.0
-1444739823.3408<br />-1444739823.3536<br />
Output for 5.0.5
-1444739823.5513<br />-1444739823.5808<br />
Output for 5.0.4
-1444739823.7334<br />-1444739823.7628<br />
Output for 5.0.3
-1444739823.9584<br />-1444739823.9863<br />
Output for 5.0.2
-1444739824.1861<br />-1444739824.2141<br />
Output for 5.0.1
-1444739824.415<br />-1444739824.4428<br />
Output for 5.0.0
-1444739824.6538<br />-1444739824.6833<br />
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /in/VGv0Z on line 5
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1
Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /in/VGv0Z on line 5
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `T_OLD_FUNCTION' or `T_FUNCTION' or `T_VAR' or `'}'' in /in/VGv0Z on line 5
Process exited with code 255.