3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class foo { public static function bar($x,$y){ return $x*$y; } public static function met1(){ $met = $bar; //return static:: } } $s = microtime(true); for($x = 0; $x < 10000; $x++ ){ $a = is_callable(array('foo', 'bar')); } echo round(microtime(true) - $s,5)."\n"; $s = microtime(true); for($x = 0; $x < 10000; $x++ ){ $a = method_exists('foo', 'bar'); } echo round(microtime(true) - $s,5)."\n";
Output for 7.1.0
0.002 0.00075
Output for 7.0.14
0.0024 0.00074
Output for 7.0.10
0.00173 0.00047
Output for 7.0.9
0.00147 0.00044
Output for 7.0.8
0.00131 0.0004
Output for 7.0.7
0.00168 0.0005
Output for 7.0.6
0.00151 0.00048
Output for 7.0.5
0.00144 0.00043
Output for 7.0.4
0.0012 0.00036
Output for 7.0.3
0.00118 0.00035
Output for 7.0.2
0.0012 0.00035
Output for 7.0.1
0.00174 0.00068
Output for 7.0.0
0.00116 0.00034
Output for 5.6.28
0.00356 -0.00335
Output for 5.6.25
0.00302 0.00167
Output for 5.6.24
0.00331 0.00173
Output for 5.6.23
0.00308 0.00176
Output for 5.6.22
0.00485 0.0027
Output for 5.6.21
0.0031 0.00175
Output for 5.6.20
0.00252 0.00146
Output for 5.6.19
0.00278 0.00165
Output for 5.6.18
0.00252 0.00142
Output for 5.6.17
0.00256 0.00146
Output for 5.6.16
0.00249 0.00142
Output for 5.6.15
0.00254 0.00142
Output for 5.6.14
0.00257 0.0014
Output for 5.6.13
0.00305 0.00215
Output for 5.6.12
0.00319 0.00175
Output for 5.6.11
0.00521 0.00287
Output for 5.6.10
0.00511 0.00277
Output for 5.6.9
0.00331 0.00191
Output for 5.6.8
0.00306 0.00171
Output for 5.6.7
0.00354 0.00206
Output for 5.6.6
0.00539 0.003
Output for 5.6.5
0.00472 0.00199
Output for 5.6.4
0.00462 0.00261
Output for 5.6.3
0.00456 0.0024
Output for 5.6.2
0.00413 0.00233
Output for 5.6.1
0.00487 0.00273
Output for 5.6.0
0.00471 0.00248
Output for 5.5.38
0.00312 0.00176
Output for 5.5.37
0.0032 0.00171
Output for 5.5.36
0.00353 0.00195
Output for 5.5.35
0.00348 0.00215
Output for 5.5.34
0.00311 0.00178
Output for 5.5.33
0.0028 0.00155
Output for 5.5.32
0.00327 0.00179
Output for 5.5.31
0.00307 0.00179
Output for 5.5.30
0.00312 0.00183
Output for 5.5.29
0.00261 0.00154
Output for 5.5.28
0.00309 0.00177
Output for 5.5.27
0.00446 0.0025
Output for 5.5.26
0.00512 0.00294
Output for 5.5.25
0.0035 0.00202
Output for 5.5.24
0.00336 0.00202
Output for 5.5.23
0.00423 0.00247
Output for 5.5.22
0.00453 0.00258
Output for 5.5.21
0.00445 0.00217
Output for 5.5.20
0.00525 0.00306
Output for 5.5.19
0.00472 0.00266
Output for 5.5.18
0.0049 0.00277
Output for 5.5.16
0.00356 0.0021
Output for 5.5.15
0.0053 0.00294
Output for 5.5.14
0.00458 0.00258
Output for 5.5.13
0.00461 0.00294
Output for 5.5.12
0.00472 0.00346
Output for 5.5.11
0.00312 0.00181
Output for 5.5.10
0.00389 0.00296
Output for 5.5.9
0.0032 0.0018
Output for 5.5.8
0.00339 0.00202
Output for 5.5.7
0.00528 0.00282
Output for 5.5.6
0.00526 0.00303
Output for 5.5.5
0.00466 0.00296
Output for 5.5.4
0.00466 0.00266
Output for 5.5.3
0.00393 0.00224
Output for 5.5.2
0.00411 0.00251
Output for 5.5.1
0.00462 0.00277
Output for 5.5.0
0.00533 0.00306
Output for 5.4.45
0.00329 0.00178
Output for 5.4.44
0.00321 0.00199
Output for 5.4.43
0.00335 0.00239
Output for 5.4.42
0.00417 0.00227
Output for 5.4.41
0.00322 0.00185
Output for 5.4.40
0.00432 0.00247
Output for 5.4.39
0.00363 0.00204
Output for 5.4.38
0.00319 0.0018
Output for 5.4.37
0.00497 0.00283
Output for 5.4.36
0.0061 0.00246
Output for 5.4.35
0.00353 0.00205
Output for 5.4.34
0.0055 0.00267
Output for 5.4.32
0.0046 0.00266
Output for 5.4.31
0.00471 0.00235
Output for 5.4.30
0.00524 0.00322
Output for 5.4.29
0.00434 0.0024
Output for 5.4.28
0.00339 0.00196
Output for 5.4.27
0.00338 0.00188
Output for 5.4.26
0.00485 0.00277
Output for 5.4.25
0.00514 0.00314
Output for 5.4.24
0.00487 0.00283
Output for 5.4.23
0.00369 0.00209
Output for 5.4.22
0.00475 0.00261
Output for 5.4.21
0.0061 0.00354
Output for 5.4.20
0.00828 0.00402
Output for 5.4.19
0.00358 0.00273
Output for 5.4.18
0.00372 0.00217
Output for 5.4.17
0.00352 0.00204
Output for 5.4.16
0.00437 0.00211
Output for 5.4.15
0.00375 0.00212
Output for 5.4.14
0.00478 0.00269
Output for 5.4.13
0.00375 0.00215
Output for 5.4.12
0.00507 0.00307
Output for 5.4.11
0.00452 0.00253
Output for 5.4.10
0.00384 0.00238
Output for 5.4.9
0.0042 0.00277
Output for 5.4.8
0.00425 0.00265
Output for 5.4.7
0.00444 0.00244
Output for 5.4.6
0.00403 0.00232
Output for 5.4.5
0.00351 0.00183
Output for 5.4.4
0.00438 0.0023
Output for 5.4.3
0.00467 0.00276
Output for 5.4.2
0.00531 0.004
Output for 5.4.1
0.00481 0.00266
Output for 5.4.0
0.0049 0.00279
Output for 5.3.29
0.00638 0.00355
Output for 5.3.28
0.00474 0.00259
Output for 5.3.27
0.00572 0.00309
Output for 5.3.26
0.00665 0.00356
Output for 5.3.25
0.00717 0.00291
Output for 5.3.24
0.00654 0.00332
Output for 5.3.23
0.0054 0.00307
Output for 5.3.22
0.00832 0.00496
Output for 5.3.21
0.00678 0.0037
Output for 5.3.20
0.00457 0.00247
Output for 5.3.19
0.00587 0.00341
Output for 5.3.18
0.00532 0.00291
Output for 5.3.17
0.0049 0.0025
Output for 5.3.16
0.00423 0.00239
Output for 5.3.15
0.00518 0.00275
Output for 5.3.14
0.00507 0.00259
Output for 5.3.13
0.00406 0.00225
Output for 5.3.12
0.0065 0.00337
Output for 5.3.11
0.00402 0.00223
Output for 5.3.10
0.00594 0.00292
Output for 5.3.9
0.00444 0.00243
Output for 5.3.8
0.00438 0.00236
Output for 5.3.7
0.00439 0.00253
Output for 5.3.6
0.00494 0.00256
Output for 5.3.5
0.00643 0.00344
Output for 5.3.4
0.00605 0.00323
Output for 5.3.3
0.00672 0.00431
Output for 5.3.2
0.00551 0.00298
Output for 5.3.1
0.00574 0.00311
Output for 5.3.0
0.00583 0.00314
Output for 5.2.17
0.00409 0.0022
Output for 5.2.16
0.00409 0.00226
Output for 5.2.15
0.00694 0.00385
Output for 5.2.14
0.00545 0.00311
Output for 5.2.13
0.00465 0.00247
Output for 5.2.12
0.00751 0.00583
Output for 5.2.11
0.00681 0.00359
Output for 5.2.10
0.00762 0.00401
Output for 5.2.9
0.00603 0.00265
Output for 5.2.8
0.00644 0.00368
Output for 5.2.7
0.00734 0.00381
Output for 5.2.6
0.00747 0.00348
Output for 5.2.5
0.00701 0.00396
Output for 5.2.4
0.00753 0.00385
Output for 5.2.3
0.00556 0.00299
Output for 5.2.2
0.00609 0.00511
Output for 5.2.1
0.00421 0.00218
Output for 5.2.0
0.00691 0.00383
Output for 5.1.6
0.00398 0.00227
Output for 5.1.5
0.00651 0.0036
Output for 5.1.4
0.00587 0.00298
Output for 5.1.3
0.00513 0.00286
Output for 5.1.2
0.00673 0.00347
Output for 5.1.1
0.00973 0.00621
Output for 5.1.0
0.00704 0.00387
Output for 5.0.5
0.00584 0.0032
Output for 5.0.4
0.00986 0.00471
Output for 5.0.3
0.00805 0.00409
Output for 5.0.2
0.00991 0.0052
Output for 5.0.1
0.00549 0.00303
Output for 5.0.0
0.00916 0.00419
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/ZurLn on line 4
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/ZurLn on line 4
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/ZurLn on line 4
Process exited with code 255.