3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface I {} class A implements I{} $results = []; [$key, $value] = compute('instanceof [object]', function($instance) { $instance instanceof I; }); $results[$key] = $value; [$key, $value] = compute('is_subclass_of [object]', function($instance) { is_subclass_of($instance, I::class); }); $results[$key] = $value; [$key, $value] = compute('is_subclass_of [class]', function($instance) { is_subclass_of(A::class, I::class); }); $results[$key] = $value; [$key, $value] = compute('class_implements [object]', function($instance) { in_array(I::class, class_implements(A::class)); }); $results[$key] = $value; [$key, $value] = compute('is_a [object]', function($instance) { is_a($instance, I::class); }); $results[$key] = $value; [$key, $value] = compute('is_a [class]', function($instance) { is_a(A::class, I::class, true); }); $results[$key] = $value; [$key, $value] = compute('reflection [class]', function($instance) { ( new ReflectionClass(A::class))->implementsInterface(I::class); }); $results[$key] = $value; function compute($name, $callback) { $instance = new A; $start = microtime(true); for($i = 1e5; $i; $i--) { $callback($instance); } $elapsedMs = (microtime(true) - $start)*1000; return [$name, $elapsedMs]; } asort($results); $best = min($results); $results = array_map(function($result) use($best) { return [ $result, $result / $best, ]; }, $results); $performance = 0; foreach($results as $name => $result) { [$elapsedMs, $performance] = $result; $extraTimeInPercent = ($performance - 1) * 100; echo sprintf( '%25s took %6.2f ms | +%3.0f%% | %s', $name, $elapsedMs, $extraTimeInPercent, str_pad('', ($performance * 10), '.') ) . PHP_EOL; }
Output for 8.1.0
instanceof [object] took 5.15 ms | + 0% | .......... Deprecated: Implicit conversion from float 23.48336957024564 to int loses precision in /in/FY4re on line 70 is_a [object] took 12.10 ms | +135% | ....................... Deprecated: Implicit conversion from float 24.18189387981681 to int loses precision in /in/FY4re on line 70 is_subclass_of [object] took 12.46 ms | +142% | ........................ Deprecated: Implicit conversion from float 28.30642549845029 to int loses precision in /in/FY4re on line 70 is_a [class] took 14.59 ms | +183% | ............................ Deprecated: Implicit conversion from float 30.35943933015682 to int loses precision in /in/FY4re on line 70 is_subclass_of [class] took 15.65 ms | +204% | .............................. Deprecated: Implicit conversion from float 45.54979876948698 to int loses precision in /in/FY4re on line 70 class_implements [object] took 23.48 ms | +355% | ............................................. Deprecated: Implicit conversion from float 52.99671554794838 to int loses precision in /in/FY4re on line 70 reflection [class] took 27.31 ms | +430% | ....................................................
Output for 8.0.13
instanceof [object] took 5.94 ms | + 0% | .......... is_subclass_of [object] took 12.32 ms | +107% | .................... is_a [object] took 12.91 ms | +117% | ..................... is_subclass_of [class] took 15.09 ms | +154% | ......................... is_a [class] took 17.21 ms | +190% | ............................ class_implements [object] took 19.76 ms | +233% | ................................. reflection [class] took 27.47 ms | +362% | ..............................................
Output for 8.0.12
instanceof [object] took 5.52 ms | + 0% | .......... is_a [object] took 10.58 ms | + 92% | ................... is_subclass_of [object] took 12.80 ms | +132% | ....................... is_a [class] took 13.82 ms | +150% | ......................... is_subclass_of [class] took 17.06 ms | +209% | .............................. class_implements [object] took 18.02 ms | +227% | ................................ reflection [class] took 23.89 ms | +333% | ...........................................
Output for 8.0.11
instanceof [object] took 5.52 ms | + 0% | .......... is_a [object] took 10.85 ms | + 97% | ................... is_subclass_of [object] took 11.77 ms | +113% | ..................... is_subclass_of [class] took 15.54 ms | +182% | ............................ is_a [class] took 16.18 ms | +193% | ............................. class_implements [object] took 22.75 ms | +312% | ......................................... reflection [class] took 24.08 ms | +336% | ...........................................
Output for 8.0.10
instanceof [object] took 6.02 ms | + 0% | .......... is_subclass_of [object] took 10.70 ms | + 78% | ................. is_a [object] took 11.19 ms | + 86% | .................. is_subclass_of [class] took 13.46 ms | +124% | ...................... is_a [class] took 15.54 ms | +158% | ......................... class_implements [object] took 20.28 ms | +237% | ................................. reflection [class] took 24.19 ms | +302% | ........................................
Output for 8.0.9
instanceof [object] took 6.01 ms | + 0% | .......... is_subclass_of [object] took 10.87 ms | + 81% | .................. is_a [object] took 12.31 ms | +105% | .................... is_subclass_of [class] took 13.88 ms | +131% | ....................... is_a [class] took 13.90 ms | +131% | ....................... class_implements [object] took 18.09 ms | +201% | .............................. reflection [class] took 24.90 ms | +314% | .........................................
Output for 8.0.8
instanceof [object] took 5.12 ms | + 0% | .......... is_subclass_of [object] took 9.65 ms | + 89% | .................. is_a [object] took 10.82 ms | +111% | ..................... is_subclass_of [class] took 12.58 ms | +146% | ........................ is_a [class] took 13.63 ms | +166% | .......................... class_implements [object] took 17.22 ms | +237% | ................................. reflection [class] took 25.69 ms | +402% | ..................................................
Output for 8.0.7
instanceof [object] took 5.40 ms | + 0% | .......... is_a [object] took 10.16 ms | + 88% | .................. is_subclass_of [object] took 11.92 ms | +121% | ...................... is_subclass_of [class] took 14.60 ms | +170% | ........................... is_a [class] took 15.29 ms | +183% | ............................ class_implements [object] took 18.03 ms | +234% | ................................. reflection [class] took 25.38 ms | +370% | ..............................................
Output for 8.0.6
instanceof [object] took 5.32 ms | + 0% | .......... is_subclass_of [object] took 9.42 ms | + 77% | ................. is_a [object] took 9.81 ms | + 84% | .................. is_subclass_of [class] took 12.51 ms | +135% | ....................... is_a [class] took 13.16 ms | +147% | ........................ class_implements [object] took 17.18 ms | +223% | ................................ reflection [class] took 22.94 ms | +331% | ...........................................
Output for 8.0.5
instanceof [object] took 6.20 ms | + 0% | .......... is_subclass_of [object] took 9.62 ms | + 55% | ............... is_a [object] took 10.07 ms | + 63% | ................ is_subclass_of [class] took 12.39 ms | +100% | .................... is_a [class] took 12.96 ms | +109% | .................... class_implements [object] took 18.99 ms | +207% | .............................. reflection [class] took 24.66 ms | +298% | .......................................
Output for 8.0.3
instanceof [object] took 5.39 ms | + 0% | .......... is_a [object] took 9.77 ms | + 81% | .................. is_subclass_of [object] took 10.40 ms | + 93% | ................... is_subclass_of [class] took 14.37 ms | +167% | .......................... is_a [class] took 14.58 ms | +171% | ........................... class_implements [object] took 19.48 ms | +262% | .................................... reflection [class] took 26.84 ms | +398% | .................................................
Output for 8.0.2
instanceof [object] took 5.61 ms | + 0% | .......... is_subclass_of [object] took 10.78 ms | + 92% | ................... is_a [object] took 12.69 ms | +126% | ...................... is_subclass_of [class] took 13.19 ms | +135% | ....................... is_a [class] took 15.54 ms | +177% | ........................... class_implements [object] took 18.78 ms | +235% | ................................. reflection [class] took 25.25 ms | +350% | ............................................
Output for 8.0.1
instanceof [object] took 4.95 ms | + 0% | .......... is_a [object] took 9.90 ms | +100% | ................... is_subclass_of [object] took 10.06 ms | +103% | .................... is_subclass_of [class] took 13.38 ms | +170% | ........................... is_a [class] took 13.67 ms | +176% | ........................... class_implements [object] took 19.26 ms | +289% | ...................................... reflection [class] took 25.83 ms | +422% | ....................................................
Output for 8.0.0
instanceof [object] took 6.18 ms | + 0% | .......... is_subclass_of [object] took 10.11 ms | + 63% | ................ is_a [object] took 13.25 ms | +114% | ..................... is_subclass_of [class] took 14.43 ms | +133% | ....................... is_a [class] took 14.78 ms | +139% | ....................... class_implements [object] took 22.91 ms | +270% | ..................................... reflection [class] took 25.32 ms | +309% | ........................................
Output for 7.4.27
instanceof [object] took 5.91 ms | + 0% | .......... is_subclass_of [object] took 10.64 ms | + 80% | .................. is_a [object] took 12.13 ms | +105% | .................... is_a [class] took 13.82 ms | +134% | ....................... is_subclass_of [class] took 14.71 ms | +149% | ........................ class_implements [object] took 20.13 ms | +241% | .................................. reflection [class] took 28.00 ms | +374% | ...............................................
Output for 7.4.26
instanceof [object] took 6.78 ms | + 0% | .......... is_subclass_of [object] took 10.46 ms | + 54% | ............... is_a [object] took 11.03 ms | + 63% | ................ is_subclass_of [class] took 14.06 ms | +107% | .................... is_a [class] took 16.71 ms | +146% | ........................ class_implements [object] took 21.33 ms | +215% | ............................... reflection [class] took 30.26 ms | +346% | ............................................
Output for 7.4.25
instanceof [object] took 6.38 ms | + 0% | .......... is_subclass_of [object] took 11.28 ms | + 77% | ................. is_a [object] took 11.96 ms | + 87% | .................. is_subclass_of [class] took 13.18 ms | +107% | .................... is_a [class] took 15.81 ms | +148% | ........................ class_implements [object] took 19.10 ms | +199% | ............................. reflection [class] took 28.16 ms | +341% | ............................................
Output for 7.4.24
instanceof [object] took 6.23 ms | + 0% | .......... is_subclass_of [object] took 9.68 ms | + 55% | ............... is_a [object] took 10.78 ms | + 73% | ................. is_a [class] took 13.59 ms | +118% | ..................... is_subclass_of [class] took 13.97 ms | +124% | ...................... class_implements [object] took 18.99 ms | +205% | .............................. reflection [class] took 28.73 ms | +361% | ..............................................
Output for 7.4.23
instanceof [object] took 7.08 ms | + 0% | .......... is_a [object] took 10.24 ms | + 45% | .............. is_subclass_of [object] took 12.71 ms | + 79% | ................. is_a [class] took 12.89 ms | + 82% | .................. is_subclass_of [class] took 13.65 ms | + 93% | ................... class_implements [object] took 18.45 ms | +160% | .......................... reflection [class] took 28.89 ms | +308% | ........................................
Output for 7.4.22
instanceof [object] took 7.08 ms | + 0% | .......... is_subclass_of [object] took 9.71 ms | + 37% | ............. is_a [object] took 11.22 ms | + 59% | ............... is_a [class] took 12.86 ms | + 82% | .................. is_subclass_of [class] took 13.50 ms | + 91% | ................... class_implements [object] took 17.45 ms | +147% | ........................ reflection [class] took 25.49 ms | +260% | ....................................
Output for 7.4.21
instanceof [object] took 5.87 ms | + 0% | .......... is_subclass_of [object] took 9.51 ms | + 62% | ................ is_a [object] took 10.98 ms | + 87% | .................. is_subclass_of [class] took 12.74 ms | +117% | ..................... is_a [class] took 16.09 ms | +174% | ........................... class_implements [object] took 19.21 ms | +227% | ................................ reflection [class] took 32.05 ms | +446% | ......................................................
Output for 7.4.20
instanceof [object] took 6.20 ms | + 0% | .......... is_a [object] took 9.99 ms | + 61% | ................ is_subclass_of [object] took 10.37 ms | + 67% | ................ is_subclass_of [class] took 12.23 ms | + 97% | ................... is_a [class] took 12.38 ms | +100% | ................... class_implements [object] took 16.79 ms | +171% | ........................... reflection [class] took 25.26 ms | +307% | ........................................
Output for 7.4.19
instanceof [object] took 5.31 ms | + 0% | .......... is_a [object] took 9.98 ms | + 88% | .................. is_subclass_of [object] took 9.99 ms | + 88% | .................. is_subclass_of [class] took 12.87 ms | +142% | ........................ is_a [class] took 13.22 ms | +149% | ........................ class_implements [object] took 17.76 ms | +234% | ................................. reflection [class] took 26.32 ms | +395% | .................................................
Output for 7.4.18
instanceof [object] took 6.05 ms | + 0% | .......... is_subclass_of [object] took 10.29 ms | + 70% | ................. is_a [object] took 10.70 ms | + 77% | ................. is_subclass_of [class] took 13.90 ms | +130% | ...................... is_a [class] took 16.31 ms | +170% | .......................... class_implements [object] took 17.52 ms | +190% | ............................ reflection [class] took 27.09 ms | +348% | ............................................
Output for 7.4.16
instanceof [object] took 6.28 ms | + 0% | .......... is_subclass_of [object] took 12.18 ms | + 94% | ................... is_a [object] took 12.90 ms | +106% | .................... is_a [class] took 14.26 ms | +127% | ...................... is_subclass_of [class] took 15.03 ms | +140% | ....................... class_implements [object] took 19.10 ms | +204% | .............................. reflection [class] took 27.81 ms | +343% | ............................................
Output for 7.4.15
instanceof [object] took 5.90 ms | + 0% | .......... is_a [object] took 10.50 ms | + 78% | ................. is_subclass_of [object] took 10.72 ms | + 82% | .................. is_subclass_of [class] took 12.42 ms | +110% | ..................... is_a [class] took 13.40 ms | +127% | ...................... class_implements [object] took 16.59 ms | +181% | ............................ reflection [class] took 24.85 ms | +321% | ..........................................
Output for 7.4.14
instanceof [object] took 5.64 ms | + 0% | .......... is_subclass_of [object] took 9.00 ms | + 60% | ............... is_a [object] took 9.79 ms | + 74% | ................. is_subclass_of [class] took 11.59 ms | +106% | .................... is_a [class] took 11.96 ms | +112% | ..................... class_implements [object] took 16.95 ms | +201% | .............................. reflection [class] took 25.25 ms | +348% | ............................................
Output for 7.4.13
instanceof [object] took 5.75 ms | + 0% | .......... is_a [object] took 9.33 ms | + 62% | ................ is_subclass_of [object] took 9.92 ms | + 73% | ................. is_subclass_of [class] took 11.77 ms | +105% | .................... is_a [class] took 11.87 ms | +106% | .................... class_implements [object] took 16.75 ms | +191% | ............................. reflection [class] took 24.63 ms | +328% | ..........................................
Output for 7.4.12
instanceof [object] took 5.68 ms | + 0% | .......... is_subclass_of [object] took 9.58 ms | + 69% | ................ is_a [object] took 10.29 ms | + 81% | .................. is_subclass_of [class] took 11.80 ms | +108% | .................... is_a [class] took 13.52 ms | +138% | ....................... class_implements [object] took 19.45 ms | +243% | .................................. reflection [class] took 25.76 ms | +354% | .............................................
Output for 7.4.11
instanceof [object] took 5.55 ms | + 0% | .......... is_subclass_of [object] took 9.51 ms | + 71% | ................. is_a [object] took 9.82 ms | + 77% | ................. is_subclass_of [class] took 12.64 ms | +128% | ...................... is_a [class] took 12.83 ms | +131% | ....................... class_implements [object] took 17.16 ms | +209% | .............................. reflection [class] took 25.58 ms | +361% | ..............................................
Output for 7.4.10
instanceof [object] took 5.49 ms | + 0% | .......... is_subclass_of [object] took 8.96 ms | + 63% | ................ is_a [class] took 11.71 ms | +113% | ..................... is_subclass_of [class] took 12.67 ms | +131% | ....................... is_a [object] took 13.03 ms | +137% | ....................... class_implements [object] took 21.70 ms | +295% | ....................................... reflection [class] took 24.14 ms | +339% | ...........................................
Output for 7.4.9
instanceof [object] took 5.55 ms | + 0% | .......... is_subclass_of [object] took 9.79 ms | + 76% | ................. is_a [object] took 9.95 ms | + 79% | ................. is_subclass_of [class] took 12.30 ms | +122% | ...................... is_a [class] took 12.52 ms | +126% | ...................... class_implements [object] took 16.97 ms | +206% | .............................. reflection [class] took 25.48 ms | +359% | .............................................
Output for 7.4.8
instanceof [object] took 5.50 ms | + 0% | .......... is_subclass_of [object] took 9.24 ms | + 68% | ................ is_a [object] took 9.94 ms | + 81% | .................. is_subclass_of [class] took 11.92 ms | +117% | ..................... is_a [class] took 12.97 ms | +136% | ....................... class_implements [object] took 17.29 ms | +214% | ............................... reflection [class] took 26.03 ms | +373% | ...............................................
Output for 7.4.7
instanceof [object] took 5.43 ms | + 0% | .......... is_subclass_of [object] took 9.24 ms | + 70% | ................. is_a [object] took 9.94 ms | + 83% | .................. is_subclass_of [class] took 11.88 ms | +119% | ..................... is_a [class] took 12.39 ms | +128% | ...................... class_implements [object] took 18.12 ms | +234% | ................................. reflection [class] took 25.25 ms | +365% | ..............................................
Output for 7.4.6
instanceof [object] took 5.63 ms | + 0% | .......... is_subclass_of [object] took 9.16 ms | + 63% | ................ is_a [object] took 9.36 ms | + 66% | ................ is_subclass_of [class] took 12.15 ms | +116% | ..................... is_a [class] took 12.25 ms | +117% | ..................... class_implements [object] took 16.24 ms | +188% | ............................ reflection [class] took 25.68 ms | +356% | .............................................
Output for 7.4.5
instanceof [object] took 5.38 ms | + 0% | .......... is_subclass_of [object] took 9.12 ms | + 69% | ................ is_a [object] took 10.95 ms | +104% | .................... is_subclass_of [class] took 11.82 ms | +120% | ..................... is_a [class] took 13.62 ms | +153% | ......................... class_implements [object] took 16.47 ms | +206% | .............................. reflection [class] took 27.86 ms | +418% | ...................................................
Output for 7.4.4
instanceof [object] took 6.39 ms | + 0% | .......... is_subclass_of [object] took 9.16 ms | + 43% | .............. is_a [object] took 9.82 ms | + 54% | ............... is_a [class] took 12.67 ms | + 98% | ................... is_subclass_of [class] took 12.84 ms | +101% | .................... class_implements [object] took 18.75 ms | +194% | ............................. reflection [class] took 25.37 ms | +297% | .......................................
Output for 7.4.3
instanceof [object] took 6.07 ms | + 0% | .......... is_subclass_of [object] took 9.83 ms | + 62% | ................ is_a [object] took 10.21 ms | + 68% | ................ is_subclass_of [class] took 12.36 ms | +103% | .................... is_a [class] took 12.72 ms | +109% | .................... class_implements [object] took 17.14 ms | +182% | ............................ reflection [class] took 25.61 ms | +322% | ..........................................
Output for 7.4.2
instanceof [object] took 5.16 ms | + 0% | .......... is_subclass_of [object] took 9.45 ms | + 83% | .................. is_a [object] took 9.53 ms | + 85% | .................. is_subclass_of [class] took 12.15 ms | +136% | ....................... is_a [class] took 12.42 ms | +141% | ........................ class_implements [object] took 16.66 ms | +223% | ................................ reflection [class] took 26.50 ms | +414% | ...................................................
Output for 7.4.1
instanceof [object] took 5.62 ms | + 0% | .......... is_a [object] took 9.49 ms | + 69% | ................ is_subclass_of [object] took 10.60 ms | + 89% | .................. is_subclass_of [class] took 11.26 ms | +100% | .................... is_a [class] took 11.88 ms | +111% | ..................... class_implements [object] took 16.53 ms | +194% | ............................. reflection [class] took 25.21 ms | +349% | ............................................
Output for 7.4.0
instanceof [object] took 5.37 ms | + 0% | .......... is_subclass_of [object] took 9.41 ms | + 75% | ................. is_a [object] took 9.75 ms | + 81% | .................. is_subclass_of [class] took 11.44 ms | +113% | ..................... is_a [class] took 11.97 ms | +123% | ...................... class_implements [object] took 16.33 ms | +204% | .............................. reflection [class] took 24.49 ms | +356% | .............................................
Output for 7.3.33
instanceof [object] took 5.63 ms | + 0% | .......... is_subclass_of [object] took 9.28 ms | + 65% | ................ is_a [object] took 10.55 ms | + 88% | .................. is_subclass_of [class] took 11.99 ms | +113% | ..................... is_a [class] took 12.14 ms | +116% | ..................... class_implements [object] took 16.60 ms | +195% | ............................. reflection [class] took 27.99 ms | +397% | .................................................
Output for 7.3.32
instanceof [object] took 5.87 ms | + 0% | .......... is_subclass_of [object] took 10.18 ms | + 74% | ................. is_a [object] took 10.19 ms | + 74% | ................. is_subclass_of [class] took 11.86 ms | +102% | .................... is_a [class] took 12.53 ms | +114% | ..................... class_implements [object] took 15.67 ms | +167% | .......................... reflection [class] took 27.79 ms | +374% | ...............................................
Output for 7.3.31
instanceof [object] took 5.96 ms | + 0% | .......... is_a [object] took 10.30 ms | + 73% | ................. is_subclass_of [object] took 10.52 ms | + 76% | ................. is_subclass_of [class] took 12.40 ms | +108% | .................... is_a [class] took 12.50 ms | +110% | .................... class_implements [object] took 15.88 ms | +166% | .......................... reflection [class] took 31.32 ms | +425% | ....................................................
Output for 7.3.30
instanceof [object] took 6.14 ms | + 0% | .......... is_subclass_of [object] took 10.82 ms | + 76% | ................. is_a [object] took 11.11 ms | + 81% | .................. is_subclass_of [class] took 13.59 ms | +121% | ...................... is_a [class] took 14.31 ms | +133% | ....................... class_implements [object] took 15.93 ms | +160% | ......................... reflection [class] took 30.59 ms | +398% | .................................................
Output for 7.3.29
instanceof [object] took 7.25 ms | + 0% | .......... is_a [object] took 13.05 ms | + 80% | ................. is_subclass_of [object] took 14.20 ms | + 96% | ................... is_subclass_of [class] took 14.58 ms | +101% | .................... is_a [class] took 18.84 ms | +160% | ......................... class_implements [object] took 20.47 ms | +182% | ............................ reflection [class] took 35.70 ms | +392% | .................................................
Output for 7.3.28
instanceof [object] took 8.56 ms | + 0% | .......... is_a [object] took 12.24 ms | + 43% | .............. is_subclass_of [object] took 12.69 ms | + 48% | .............. is_subclass_of [class] took 14.59 ms | + 70% | ................. is_a [class] took 16.98 ms | + 98% | ................... class_implements [object] took 21.53 ms | +152% | ......................... reflection [class] took 36.22 ms | +323% | ..........................................
Output for 7.3.27
instanceof [object] took 8.47 ms | + 0% | .......... is_subclass_of [object] took 11.70 ms | + 38% | ............. is_a [object] took 13.10 ms | + 55% | ............... is_subclass_of [class] took 15.36 ms | + 81% | .................. is_a [class] took 15.87 ms | + 87% | .................. class_implements [object] took 22.02 ms | +160% | ......................... reflection [class] took 35.39 ms | +318% | .........................................
Output for 7.3.26
instanceof [object] took 7.28 ms | + 0% | .......... is_a [object] took 12.94 ms | + 78% | ................. is_subclass_of [object] took 14.70 ms | +102% | .................... is_a [class] took 15.93 ms | +119% | ..................... is_subclass_of [class] took 16.48 ms | +127% | ...................... class_implements [object] took 28.86 ms | +297% | ....................................... reflection [class] took 35.06 ms | +382% | ................................................
Output for 7.3.25
instanceof [object] took 6.59 ms | + 0% | .......... is_subclass_of [object] took 12.82 ms | + 95% | ................... is_a [object] took 12.84 ms | + 95% | ................... is_a [class] took 16.22 ms | +146% | ........................ is_subclass_of [class] took 19.44 ms | +195% | ............................. class_implements [object] took 21.37 ms | +224% | ................................ reflection [class] took 35.35 ms | +437% | .....................................................
Output for 7.3.24
instanceof [object] took 6.60 ms | + 0% | .......... is_a [object] took 12.13 ms | + 84% | .................. is_subclass_of [object] took 12.30 ms | + 87% | .................. is_a [class] took 15.06 ms | +128% | ...................... is_subclass_of [class] took 17.91 ms | +172% | ........................... class_implements [object] took 23.28 ms | +253% | ................................... reflection [class] took 37.65 ms | +471% | .........................................................
Output for 7.3.23
instanceof [object] took 8.09 ms | + 0% | .......... is_a [object] took 11.48 ms | + 42% | .............. is_subclass_of [object] took 13.45 ms | + 66% | ................ is_subclass_of [class] took 15.27 ms | + 89% | .................. is_a [class] took 17.83 ms | +120% | ...................... class_implements [object] took 25.33 ms | +213% | ............................... reflection [class] took 40.25 ms | +397% | .................................................
Output for 7.3.22
instanceof [object] took 7.68 ms | + 0% | .......... is_a [object] took 12.21 ms | + 59% | ............... is_subclass_of [object] took 13.13 ms | + 71% | ................. is_subclass_of [class] took 17.20 ms | +124% | ...................... is_a [class] took 17.88 ms | +133% | ....................... class_implements [object] took 21.33 ms | +178% | ........................... reflection [class] took 35.95 ms | +368% | ..............................................
Output for 7.3.21
instanceof [object] took 6.29 ms | + 0% | .......... is_subclass_of [object] took 9.87 ms | + 57% | ............... is_a [object] took 13.21 ms | +110% | ..................... is_subclass_of [class] took 15.09 ms | +140% | ....................... is_a [class] took 17.41 ms | +177% | ........................... class_implements [object] took 22.00 ms | +250% | .................................. reflection [class] took 33.66 ms | +435% | .....................................................
Output for 7.3.20
instanceof [object] took 6.36 ms | + 0% | .......... is_subclass_of [object] took 13.49 ms | +112% | ..................... is_a [object] took 13.73 ms | +116% | ..................... is_a [class] took 14.06 ms | +121% | ...................... is_subclass_of [class] took 16.41 ms | +158% | ......................... class_implements [object] took 20.84 ms | +228% | ................................ reflection [class] took 36.37 ms | +472% | .........................................................
Output for 7.3.19
instanceof [object] took 6.07 ms | + 0% | .......... is_subclass_of [object] took 9.82 ms | + 62% | ................ is_a [object] took 12.56 ms | +107% | .................... is_subclass_of [class] took 12.72 ms | +110% | .................... is_a [class] took 16.04 ms | +164% | .......................... class_implements [object] took 21.35 ms | +252% | ................................... reflection [class] took 34.54 ms | +469% | ........................................................
Output for 7.3.18
instanceof [object] took 6.51 ms | + 0% | .......... is_subclass_of [object] took 11.57 ms | + 78% | ................. is_a [object] took 13.27 ms | +104% | .................... is_a [class] took 15.48 ms | +138% | ....................... is_subclass_of [class] took 17.49 ms | +169% | .......................... class_implements [object] took 19.91 ms | +206% | .............................. reflection [class] took 32.68 ms | +402% | ..................................................
Output for 7.3.17
instanceof [object] took 6.61 ms | + 0% | .......... is_subclass_of [object] took 10.04 ms | + 52% | ............... is_a [object] took 11.19 ms | + 69% | ................ is_subclass_of [class] took 13.73 ms | +108% | .................... is_a [class] took 15.52 ms | +135% | ....................... class_implements [object] took 18.41 ms | +178% | ........................... reflection [class] took 36.80 ms | +456% | .......................................................
Output for 7.3.16
instanceof [object] took 6.96 ms | + 0% | .......... is_a [object] took 11.69 ms | + 68% | ................ is_a [class] took 13.92 ms | +100% | ................... is_subclass_of [object] took 15.05 ms | +116% | ..................... class_implements [object] took 20.72 ms | +198% | ............................. is_subclass_of [class] took 21.03 ms | +202% | .............................. reflection [class] took 37.14 ms | +433% | .....................................................
Output for 7.3.15
instanceof [object] took 5.96 ms | + 0% | .......... is_a [object] took 9.74 ms | + 63% | ................ is_subclass_of [object] took 11.80 ms | + 98% | ................... is_a [class] took 13.33 ms | +123% | ...................... is_subclass_of [class] took 14.20 ms | +138% | ....................... class_implements [object] took 17.46 ms | +193% | ............................. reflection [class] took 30.75 ms | +416% | ...................................................
Output for 7.3.14
instanceof [object] took 5.36 ms | + 0% | .......... is_a [object] took 10.40 ms | + 94% | ................... is_subclass_of [object] took 10.75 ms | +101% | .................... is_a [class] took 13.18 ms | +146% | ........................ is_subclass_of [class] took 14.16 ms | +164% | .......................... class_implements [object] took 16.78 ms | +213% | ............................... reflection [class] took 30.75 ms | +474% | .........................................................
Output for 7.3.13
instanceof [object] took 5.84 ms | + 0% | .......... is_subclass_of [object] took 11.94 ms | +105% | .................... is_a [object] took 13.22 ms | +126% | ...................... is_subclass_of [class] took 13.23 ms | +127% | ...................... is_a [class] took 16.49 ms | +183% | ............................ class_implements [object] took 17.76 ms | +204% | .............................. reflection [class] took 32.94 ms | +464% | ........................................................

preferences:
38.88 ms | 529 KiB | 5 Q