3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $code = ' /** * * @param string $script The PHP script * @param string $class The full qualified class name with namespace * @param string $alias An optional alias for the class */ protected function addUseStatement(&$script, $class, $alias = null) { if (isset($this->getTable()->useStatements) && in_array($class, $this->getTable()->useStatements)) { return; } if ($alias) { $script = "use $class as $alias;\n$script"; } else { $script = "use $class;\n$script"; } if (!isset($this->getTable()->useStatements)) { $this->getTable()->useStatements = array(); } $this->getTable()->useStatements[] = $class; } '; print_r(token_get_all("<?php\n$code"));
Output for 7.0.0 - 7.1.0
Array ( [0] => Array ( [0] => 379 [1] => <?php [2] => 1 ) [1] => Array ( [0] => 382 [1] => [2] => 2 ) [2] => Array ( [0] => 378 [1] => /** * * @param string $script The PHP script * @param string $class The full qualified class name with namespace * @param string $alias An optional alias for the class */ [2] => 3 ) [3] => Array ( [0] => 382 [1] => [2] => 8 ) [4] => Array ( [0] => 315 [1] => protected [2] => 9 ) [5] => Array ( [0] => 382 [1] => [2] => 9 ) [6] => Array ( [0] => 346 [1] => function [2] => 9 ) [7] => Array ( [0] => 382 [1] => [2] => 9 ) [8] => Array ( [0] => 319 [1] => addUseStatement [2] => 9 ) [9] => ( [10] => & [11] => Array ( [0] => 320 [1] => $script [2] => 9 ) [12] => , [13] => Array ( [0] => 382 [1] => [2] => 9 ) [14] => Array ( [0] => 320 [1] => $class [2] => 9 ) [15] => , [16] => Array ( [0] => 382 [1] => [2] => 9 ) [17] => Array ( [0] => 320 [1] => $alias [2] => 9 ) [18] => Array ( [0] => 382 [1] => [2] => 9 ) [19] => = [20] => Array ( [0] => 382 [1] => [2] => 9 ) [21] => Array ( [0] => 319 [1] => null [2] => 9 ) [22] => ) [23] => Array ( [0] => 382 [1] => [2] => 9 ) [24] => { [25] => Array ( [0] => 382 [1] => [2] => 10 ) [26] => Array ( [0] => 327 [1] => if [2] => 11 ) [27] => Array ( [0] => 382 [1] => [2] => 11 ) [28] => ( [29] => Array ( [0] => 358 [1] => isset [2] => 11 ) [30] => ( [31] => Array ( [0] => 320 [1] => $this [2] => 11 ) [32] => Array ( [0] => 366 [1] => -> [2] => 11 ) [33] => Array ( [0] => 319 [1] => getTable [2] => 11 ) [34] => ( [35] => ) [36] => Array ( [0] => 366 [1] => -> [2] => 11 ) [37] => Array ( [0] => 319 [1] => useStatements [2] => 11 ) [38] => ) [39] => Array ( [0] => 382 [1] => [2] => 11 ) [40] => Array ( [0] => 284 [1] => && [2] => 11 ) [41] => Array ( [0] => 382 [1] => [2] => 11 ) [42] => Array ( [0] => 319 [1] => in_array [2] => 11 ) [43] => ( [44] => Array ( [0] => 320 [1] => $class [2] => 11 ) [45] => , [46] => Array ( [0] => 382 [1] => [2] => 11 ) [47] => Array ( [0] => 320 [1] => $this [2] => 11 ) [48] => Array ( [0] => 366 [1] => -> [2] => 11 ) [49] => Array ( [0] => 319 [1] => getTable [2] => 11 ) [50] => ( [51] => ) [52] => Array ( [0] => 366 [1] => -> [2] => 11 ) [53] => Array ( [0] => 319 [1] => useStatements [2] => 11 ) [54] => ) [55] => ) [56] => Array ( [0] => 382 [1] => [2] => 11 ) [57] => { [58] => Array ( [0] => 382 [1] => [2] => 11 ) [59] => Array ( [0] => 348 [1] => return [2] => 12 ) [60] => ; [61] => Array ( [0] => 382 [1] => [2] => 12 ) [62] => } [63] => Array ( [0] => 382 [1] => [2] => 13 ) [64] => Array ( [0] => 327 [1] => if [2] => 15 ) [65] => Array ( [0] => 382 [1] => [2] => 15 ) [66] => ( [67] => Array ( [0] => 320 [1] => $alias [2] => 15 ) [68] => ) [69] => Array ( [0] => 382 [1] => [2] => 15 ) [70] => { [71] => Array ( [0] => 382 [1] => [2] => 16 ) [72] => Array ( [0] => 320 [1] => $script [2] => 17 ) [73] => Array ( [0] => 382 [1] => [2] => 17 ) [74] => = [75] => Array ( [0] => 382 [1] => [2] => 17 ) [76] => " [77] => Array ( [0] => 322 [1] => use [2] => 17 ) [78] => Array ( [0] => 320 [1] => $class [2] => 17 ) [79] => Array ( [0] => 322 [1] => as [2] => 17 ) [80] => Array ( [0] => 320 [1] => $alias [2] => 17 ) [81] => Array ( [0] => 322 [1] => ;\n [2] => 17 ) [82] => Array ( [0] => 320 [1] => $script [2] => 17 ) [83] => " [84] => ; [85] => Array ( [0] => 382 [1] => [2] => 17 ) [86] => } [87] => Array ( [0] => 382 [1] => [2] => 18 ) [88] => Array ( [0] => 309 [1] => else [2] => 19 ) [89] => Array ( [0] => 382 [1] => [2] => 19 ) [90] => { [91] => Array ( [0] => 382 [1] => [2] => 20 ) [92] => Array ( [0] => 320 [1] => $script [2] => 21 ) [93] => Array ( [0] => 382 [1] => [2] => 21 ) [94] => = [95] => Array ( [0] => 382 [1] => [2] => 21 ) [96] => " [97] => Array ( [0] => 322 [1] => use [2] => 21 ) [98] => Array ( [0] => 320 [1] => $class [2] => 21 ) [99] => Array ( [0] => 322 [1] => ;\n [2] => 21 ) [100] => Array ( [0] => 320 [1] => $script [2] => 21 ) [101] => " [102] => ; [103] => Array ( [0] => 382 [1] => [2] => 21 ) [104] => } [105] => Array ( [0] => 382 [1] => [2] => 22 ) [106] => Array ( [0] => 327 [1] => if [2] => 24 ) [107] => Array ( [0] => 382 [1] => [2] => 24 ) [108] => ( [109] => ! [110] => Array ( [0] => 358 [1] => isset [2] => 24 ) [111] => ( [112] => Array ( [0] => 320 [1] => $this [2] => 24 ) [113] => Array ( [0] => 366 [1] => -> [2] => 24 ) [114] => Array ( [0] => 319 [1] => getTable [2] => 24 ) [115] => ( [116] => ) [117] => Array ( [0] => 366 [1] => -> [2] => 24 ) [118] => Array ( [0] => 319 [1] => useStatements [2] => 24 ) [119] => ) [120] => ) [121] => Array ( [0] => 382 [1] => [2] => 24 ) [122] => { [123] => Array ( [0] => 382 [1] => [2] => 24 ) [124] => Array ( [0] => 320 [1] => $this [2] => 25 ) [125] => Array ( [0] => 366 [1] => -> [2] => 25 ) [126] => Array ( [0] => 319 [1] => getTable [2] => 25 ) [127] => ( [128] => ) [129] => Array ( [0] => 366 [1] => -> [2] => 25 ) [130] => Array ( [0] => 319 [1] => useStatements [2] => 25 ) [131] => Array ( [0] => 382 [1] => [2] => 25 ) [132] => = [133] => Array ( [0] => 382 [1] => [2] => 25 ) [134] => Array ( [0] => 368 [1] => array [2] => 25 ) [135] => ( [136] => ) [137] => ; [138] => Array ( [0] => 382 [1] => [2] => 25 ) [139] => } [140] => Array ( [0] => 382 [1] => [2] => 26 ) [141] => Array ( [0] => 320 [1] => $this [2] => 27 ) [142] => Array ( [0] => 366 [1] => -> [2] => 27 ) [143] => Array ( [0] => 319 [1] => getTable [2] => 27 ) [144] => ( [145] => ) [146] => Array ( [0] => 366 [1] => -> [2] => 27 ) [147] => Array ( [0] => 319 [1] => useStatements [2] => 27 ) [148] => [ [149] => ] [150] => Array ( [0] => 382 [1] => [2] => 27 ) [151] => = [152] => Array ( [0] => 382 [1] => [2] => 27 ) [153] => Array ( [0] => 320 [1] => $class [2] => 27 ) [154] => ; [155] => Array ( [0] => 382 [1] => [2] => 27 ) [156] => } [157] => Array ( [0] => 382 [1] => [2] => 28 ) )
Output for 5.3.0 - 5.3.29, hhvm-3.10.0 - 3.12.0
Array ( [0] => Array ( [0] => 368 [1] => <?php [2] => 1 ) [1] => Array ( [0] => 371 [1] => [2] => 2 ) [2] => Array ( [0] => 367 [1] => /** * * @param string $script The PHP script * @param string $class The full qualified class name with namespace * @param string $alias An optional alias for the class */ [2] => 3 ) [3] => Array ( [0] => 371 [1] => [2] => 8 ) [4] => Array ( [0] => 343 [1] => protected [2] => 9 ) [5] => Array ( [0] => 371 [1] => [2] => 9 ) [6] => Array ( [0] => 334 [1] => function [2] => 9 ) [7] => Array ( [0] => 371 [1] => [2] => 9 ) [8] => Array ( [0] => 307 [1] => addUseStatement [2] => 9 ) [9] => ( [10] => & [11] => Array ( [0] => 309 [1] => $script [2] => 9 ) [12] => , [13] => Array ( [0] => 371 [1] => [2] => 9 ) [14] => Array ( [0] => 309 [1] => $class [2] => 9 ) [15] => , [16] => Array ( [0] => 371 [1] => [2] => 9 ) [17] => Array ( [0] => 309 [1] => $alias [2] => 9 ) [18] => Array ( [0] => 371 [1] => [2] => 9 ) [19] => = [20] => Array ( [0] => 371 [1] => [2] => 9 ) [21] => Array ( [0] => 307 [1] => null [2] => 9 ) [22] => ) [23] => Array ( [0] => 371 [1] => [2] => 9 ) [24] => { [25] => Array ( [0] => 371 [1] => [2] => 10 ) [26] => Array ( [0] => 301 [1] => if [2] => 11 ) [27] => Array ( [0] => 371 [1] => [2] => 11 ) [28] => ( [29] => Array ( [0] => 350 [1] => isset [2] => 11 ) [30] => ( [31] => Array ( [0] => 309 [1] => $this [2] => 11 ) [32] => Array ( [0] => 357 [1] => -> [2] => 11 ) [33] => Array ( [0] => 307 [1] => getTable [2] => 11 ) [34] => ( [35] => ) [36] => Array ( [0] => 357 [1] => -> [2] => 11 ) [37] => Array ( [0] => 307 [1] => useStatements [2] => 11 ) [38] => ) [39] => Array ( [0] => 371 [1] => [2] => 11 ) [40] => Array ( [0] => 279 [1] => && [2] => 11 ) [41] => Array ( [0] => 371 [1] => [2] => 11 ) [42] => Array ( [0] => 307 [1] => in_array [2] => 11 ) [43] => ( [44] => Array ( [0] => 309 [1] => $class [2] => 11 ) [45] => , [46] => Array ( [0] => 371 [1] => [2] => 11 ) [47] => Array ( [0] => 309 [1] => $this [2] => 11 ) [48] => Array ( [0] => 357 [1] => -> [2] => 11 ) [49] => Array ( [0] => 307 [1] => getTable [2] => 11 ) [50] => ( [51] => ) [52] => Array ( [0] => 357 [1] => -> [2] => 11 ) [53] => Array ( [0] => 307 [1] => useStatements [2] => 11 ) [54] => ) [55] => ) [56] => Array ( [0] => 371 [1] => [2] => 11 ) [57] => { [58] => Array ( [0] => 371 [1] => [2] => 11 ) [59] => Array ( [0] => 336 [1] => return [2] => 12 ) [60] => ; [61] => Array ( [0] => 371 [1] => [2] => 12 ) [62] => } [63] => Array ( [0] => 371 [1] => [2] => 13 ) [64] => Array ( [0] => 301 [1] => if [2] => 15 ) [65] => Array ( [0] => 371 [1] => [2] => 15 ) [66] => ( [67] => Array ( [0] => 309 [1] => $alias [2] => 15 ) [68] => ) [69] => Array ( [0] => 371 [1] => [2] => 15 ) [70] => { [71] => Array ( [0] => 371 [1] => [2] => 16 ) [72] => Array ( [0] => 309 [1] => $script [2] => 17 ) [73] => Array ( [0] => 371 [1] => [2] => 17 ) [74] => = [75] => Array ( [0] => 371 [1] => [2] => 17 ) [76] => " [77] => Array ( [0] => 314 [1] => use [2] => 17 ) [78] => Array ( [0] => 309 [1] => $class [2] => 17 ) [79] => Array ( [0] => 314 [1] => as [2] => 17 ) [80] => Array ( [0] => 309 [1] => $alias [2] => 17 ) [81] => Array ( [0] => 314 [1] => ;\n [2] => 17 ) [82] => Array ( [0] => 309 [1] => $script [2] => 17 ) [83] => " [84] => ; [85] => Array ( [0] => 371 [1] => [2] => 17 ) [86] => } [87] => Array ( [0] => 371 [1] => [2] => 18 ) [88] => Array ( [0] => 303 [1] => else [2] => 19 ) [89] => Array ( [0] => 371 [1] => [2] => 19 ) [90] => { [91] => Array ( [0] => 371 [1] => [2] => 20 ) [92] => Array ( [0] => 309 [1] => $script [2] => 21 ) [93] => Array ( [0] => 371 [1] => [2] => 21 ) [94] => = [95] => Array ( [0] => 371 [1] => [2] => 21 ) [96] => " [97] => Array ( [0] => 314 [1] => use [2] => 21 ) [98] => Array ( [0] => 309 [1] => $class [2] => 21 ) [99] => Array ( [0] => 314 [1] => ;\n [2] => 21 ) [100] => Array ( [0] => 309 [1] => $script [2] => 21 ) [101] => " [102] => ; [103] => Array ( [0] => 371 [1] => [2] => 21 ) [104] => } [105] => Array ( [0] => 371 [1] => [2] => 22 ) [106] => Array ( [0] => 301 [1] => if [2] => 24 ) [107] => Array ( [0] => 371 [1] => [2] => 24 ) [108] => ( [109] => ! [110] => Array ( [0] => 350 [1] => isset [2] => 24 ) [111] => ( [112] => Array ( [0] => 309 [1] => $this [2] => 24 ) [113] => Array ( [0] => 357 [1] => -> [2] => 24 ) [114] => Array ( [0] => 307 [1] => getTable [2] => 24 ) [115] => ( [116] => ) [117] => Array ( [0] => 357 [1] => -> [2] => 24 ) [118] => Array ( [0] => 307 [1] => useStatements [2] => 24 ) [119] => ) [120] => ) [121] => Array ( [0] => 371 [1] => [2] => 24 ) [122] => { [123] => Array ( [0] => 371 [1] => [2] => 24 ) [124] => Array ( [0] => 309 [1] => $this [2] => 25 ) [125] => Array ( [0] => 357 [1] => -> [2] => 25 ) [126] => Array ( [0] => 307 [1] => getTable [2] => 25 ) [127] => ( [128] => ) [129] => Array ( [0] => 357 [1] => -> [2] => 25 ) [130] => Array ( [0] => 307 [1] => useStatements [2] => 25 ) [131] => Array ( [0] => 371 [1] => [2] => 25 ) [132] => = [133] => Array ( [0] => 371 [1] => [2] => 25 ) [134] => Array ( [0] => 360 [1] => array [2] => 25 ) [135] => ( [136] => ) [137] => ; [138] => Array ( [0] => 371 [1] => [2] => 25 ) [139] => } [140] => Array ( [0] => 371 [1] => [2] => 26 ) [141] => Array ( [0] => 309 [1] => $this [2] => 27 ) [142] => Array ( [0] => 357 [1] => -> [2] => 27 ) [143] => Array ( [0] => 307 [1] => getTable [2] => 27 ) [144] => ( [145] => ) [146] => Array ( [0] => 357 [1] => -> [2] => 27 ) [147] => Array ( [0] => 307 [1] => useStatements [2] => 27 ) [148] => [ [149] => ] [150] => Array ( [0] => 371 [1] => [2] => 27 ) [151] => = [152] => Array ( [0] => 371 [1] => [2] => 27 ) [153] => Array ( [0] => 309 [1] => $class [2] => 27 ) [154] => ; [155] => Array ( [0] => 371 [1] => [2] => 27 ) [156] => } [157] => Array ( [0] => 371 [1] => [2] => 28 ) )
Output for 5.6.0 - 5.6.28
Array ( [0] => Array ( [0] => 376 [1] => <?php [2] => 1 ) [1] => Array ( [0] => 379 [1] => [2] => 2 ) [2] => Array ( [0] => 375 [1] => /** * * @param string $script The PHP script * @param string $class The full qualified class name with namespace * @param string $alias An optional alias for the class */ [2] => 3 ) [3] => Array ( [0] => 379 [1] => [2] => 8 ) [4] => Array ( [0] => 348 [1] => protected [2] => 9 ) [5] => Array ( [0] => 379 [1] => [2] => 9 ) [6] => Array ( [0] => 337 [1] => function [2] => 9 ) [7] => Array ( [0] => 379 [1] => [2] => 9 ) [8] => Array ( [0] => 310 [1] => addUseStatement [2] => 9 ) [9] => ( [10] => & [11] => Array ( [0] => 312 [1] => $script [2] => 9 ) [12] => , [13] => Array ( [0] => 379 [1] => [2] => 9 ) [14] => Array ( [0] => 312 [1] => $class [2] => 9 ) [15] => , [16] => Array ( [0] => 379 [1] => [2] => 9 ) [17] => Array ( [0] => 312 [1] => $alias [2] => 9 ) [18] => Array ( [0] => 379 [1] => [2] => 9 ) [19] => = [20] => Array ( [0] => 379 [1] => [2] => 9 ) [21] => Array ( [0] => 310 [1] => null [2] => 9 ) [22] => ) [23] => Array ( [0] => 379 [1] => [2] => 9 ) [24] => { [25] => Array ( [0] => 379 [1] => [2] => 10 ) [26] => Array ( [0] => 304 [1] => if [2] => 11 ) [27] => Array ( [0] => 379 [1] => [2] => 11 ) [28] => ( [29] => Array ( [0] => 355 [1] => isset [2] => 11 ) [30] => ( [31] => Array ( [0] => 312 [1] => $this [2] => 11 ) [32] => Array ( [0] => 363 [1] => -> [2] => 11 ) [33] => Array ( [0] => 310 [1] => getTable [2] => 11 ) [34] => ( [35] => ) [36] => Array ( [0] => 363 [1] => -> [2] => 11 ) [37] => Array ( [0] => 310 [1] => useStatements [2] => 11 ) [38] => ) [39] => Array ( [0] => 379 [1] => [2] => 11 ) [40] => Array ( [0] => 281 [1] => && [2] => 11 ) [41] => Array ( [0] => 379 [1] => [2] => 11 ) [42] => Array ( [0] => 310 [1] => in_array [2] => 11 ) [43] => ( [44] => Array ( [0] => 312 [1] => $class [2] => 11 ) [45] => , [46] => Array ( [0] => 379 [1] => [2] => 11 ) [47] => Array ( [0] => 312 [1] => $this [2] => 11 ) [48] => Array ( [0] => 363 [1] => -> [2] => 11 ) [49] => Array ( [0] => 310 [1] => getTable [2] => 11 ) [50] => ( [51] => ) [52] => Array ( [0] => 363 [1] => -> [2] => 11 ) [53] => Array ( [0] => 310 [1] => useStatements [2] => 11 ) [54] => ) [55] => ) [56] => Array ( [0] => 379 [1] => [2] => 11 ) [57] => { [58] => Array ( [0] => 379 [1] => [2] => 11 ) [59] => Array ( [0] => 339 [1] => return [2] => 12 ) [60] => ; [61] => Array ( [0] => 379 [1] => [2] => 12 ) [62] => } [63] => Array ( [0] => 379 [1] => [2] => 13 ) [64] => Array ( [0] => 304 [1] => if [2] => 15 ) [65] => Array ( [0] => 379 [1] => [2] => 15 ) [66] => ( [67] => Array ( [0] => 312 [1] => $alias [2] => 15 ) [68] => ) [69] => Array ( [0] => 379 [1] => [2] => 15 ) [70] => { [71] => Array ( [0] => 379 [1] => [2] => 16 ) [72] => Array ( [0] => 312 [1] => $script [2] => 17 ) [73] => Array ( [0] => 379 [1] => [2] => 17 ) [74] => = [75] => Array ( [0] => 379 [1] => [2] => 17 ) [76] => " [77] => Array ( [0] => 317 [1] => use [2] => 17 ) [78] => Array ( [0] => 312 [1] => $class [2] => 17 ) [79] => Array ( [0] => 317 [1] => as [2] => 17 ) [80] => Array ( [0] => 312 [1] => $alias [2] => 17 ) [81] => Array ( [0] => 317 [1] => ;\n [2] => 17 ) [82] => Array ( [0] => 312 [1] => $script [2] => 17 ) [83] => " [84] => ; [85] => Array ( [0] => 379 [1] => [2] => 17 ) [86] => } [87] => Array ( [0] => 379 [1] => [2] => 18 ) [88] => Array ( [0] => 306 [1] => else [2] => 19 ) [89] => Array ( [0] => 379 [1] => [2] => 19 ) [90] => { [91] => Array ( [0] => 379 [1] => [2] => 20 ) [92] => Array ( [0] => 312 [1] => $script [2] => 21 ) [93] => Array ( [0] => 379 [1] => [2] => 21 ) [94] => = [95] => Array ( [0] => 379 [1] => [2] => 21 ) [96] => " [97] => Array ( [0] => 317 [1] => use [2] => 21 ) [98] => Array ( [0] => 312 [1] => $class [2] => 21 ) [99] => Array ( [0] => 317 [1] => ;\n [2] => 21 ) [100] => Array ( [0] => 312 [1] => $script [2] => 21 ) [101] => " [102] => ; [103] => Array ( [0] => 379 [1] => [2] => 21 ) [104] => } [105] => Array ( [0] => 379 [1] => [2] => 22 ) [106] => Array ( [0] => 304 [1] => if [2] => 24 ) [107] => Array ( [0] => 379 [1] => [2] => 24 ) [108] => ( [109] => ! [110] => Array ( [0] => 355 [1] => isset [2] => 24 ) [111] => ( [112] => Array ( [0] => 312 [1] => $this [2] => 24 ) [113] => Array ( [0] => 363 [1] => -> [2] => 24 ) [114] => Array ( [0] => 310 [1] => getTable [2] => 24 ) [115] => ( [116] => ) [117] => Array ( [0] => 363 [1] => -> [2] => 24 ) [118] => Array ( [0] => 310 [1] => useStatements [2] => 24 ) [119] => ) [120] => ) [121] => Array ( [0] => 379 [1] => [2] => 24 ) [122] => { [123] => Array ( [0] => 379 [1] => [2] => 24 ) [124] => Array ( [0] => 312 [1] => $this [2] => 25 ) [125] => Array ( [0] => 363 [1] => -> [2] => 25 ) [126] => Array ( [0] => 310 [1] => getTable [2] => 25 ) [127] => ( [128] => ) [129] => Array ( [0] => 363 [1] => -> [2] => 25 ) [130] => Array ( [0] => 310 [1] => useStatements [2] => 25 ) [131] => Array ( [0] => 379 [1] => [2] => 25 ) [132] => = [133] => Array ( [0] => 379 [1] => [2] => 25 ) [134] => Array ( [0] => 366 [1] => array [2] => 25 ) [135] => ( [136] => ) [137] => ; [138] => Array ( [0] => 379 [1] => [2] => 25 ) [139] => } [140] => Array ( [0] => 379 [1] => [2] => 26 ) [141] => Array ( [0] => 312 [1] => $this [2] => 27 ) [142] => Array ( [0] => 363 [1] => -> [2] => 27 ) [143] => Array ( [0] => 310 [1] => getTable [2] => 27 ) [144] => ( [145] => ) [146] => Array ( [0] => 363 [1] => -> [2] => 27 ) [147] => Array ( [0] => 310 [1] => useStatements [2] => 27 ) [148] => [ [149] => ] [150] => Array ( [0] => 379 [1] => [2] => 27 ) [151] => = [152] => Array ( [0] => 379 [1] => [2] => 27 ) [153] => Array ( [0] => 312 [1] => $class [2] => 27 ) [154] => ; [155] => Array ( [0] => 379 [1] => [2] => 27 ) [156] => } [157] => Array ( [0] => 379 [1] => [2] => 28 ) )
Output for 5.5.0 - 5.5.36
Array ( [0] => Array ( [0] => 374 [1] => <?php [2] => 1 ) [1] => Array ( [0] => 377 [1] => [2] => 2 ) [2] => Array ( [0] => 373 [1] => /** * * @param string $script The PHP script * @param string $class The full qualified class name with namespace * @param string $alias An optional alias for the class */ [2] => 3 ) [3] => Array ( [0] => 377 [1] => [2] => 8 ) [4] => Array ( [0] => 346 [1] => protected [2] => 9 ) [5] => Array ( [0] => 377 [1] => [2] => 9 ) [6] => Array ( [0] => 335 [1] => function [2] => 9 ) [7] => Array ( [0] => 377 [1] => [2] => 9 ) [8] => Array ( [0] => 308 [1] => addUseStatement [2] => 9 ) [9] => ( [10] => & [11] => Array ( [0] => 310 [1] => $script [2] => 9 ) [12] => , [13] => Array ( [0] => 377 [1] => [2] => 9 ) [14] => Array ( [0] => 310 [1] => $class [2] => 9 ) [15] => , [16] => Array ( [0] => 377 [1] => [2] => 9 ) [17] => Array ( [0] => 310 [1] => $alias [2] => 9 ) [18] => Array ( [0] => 377 [1] => [2] => 9 ) [19] => = [20] => Array ( [0] => 377 [1] => [2] => 9 ) [21] => Array ( [0] => 308 [1] => null [2] => 9 ) [22] => ) [23] => Array ( [0] => 377 [1] => [2] => 9 ) [24] => { [25] => Array ( [0] => 377 [1] => [2] => 10 ) [26] => Array ( [0] => 302 [1] => if [2] => 11 ) [27] => Array ( [0] => 377 [1] => [2] => 11 ) [28] => ( [29] => Array ( [0] => 353 [1] => isset [2] => 11 ) [30] => ( [31] => Array ( [0] => 310 [1] => $this [2] => 11 ) [32] => Array ( [0] => 361 [1] => -> [2] => 11 ) [33] => Array ( [0] => 308 [1] => getTable [2] => 11 ) [34] => ( [35] => ) [36] => Array ( [0] => 361 [1] => -> [2] => 11 ) [37] => Array ( [0] => 308 [1] => useStatements [2] => 11 ) [38] => ) [39] => Array ( [0] => 377 [1] => [2] => 11 ) [40] => Array ( [0] => 280 [1] => && [2] => 11 ) [41] => Array ( [0] => 377 [1] => [2] => 11 ) [42] => Array ( [0] => 308 [1] => in_array [2] => 11 ) [43] => ( [44] => Array ( [0] => 310 [1] => $class [2] => 11 ) [45] => , [46] => Array ( [0] => 377 [1] => [2] => 11 ) [47] => Array ( [0] => 310 [1] => $this [2] => 11 ) [48] => Array ( [0] => 361 [1] => -> [2] => 11 ) [49] => Array ( [0] => 308 [1] => getTable [2] => 11 ) [50] => ( [51] => ) [52] => Array ( [0] => 361 [1] => -> [2] => 11 ) [53] => Array ( [0] => 308 [1] => useStatements [2] => 11 ) [54] => ) [55] => ) [56] => Array ( [0] => 377 [1] => [2] => 11 ) [57] => { [58] => Array ( [0] => 377 [1] => [2] => 11 ) [59] => Array ( [0] => 337 [1] => return [2] => 12 ) [60] => ; [61] => Array ( [0] => 377 [1] => [2] => 12 ) [62] => } [63] => Array ( [0] => 377 [1] => [2] => 13 ) [64] => Array ( [0] => 302 [1] => if [2] => 15 ) [65] => Array ( [0] => 377 [1] => [2] => 15 ) [66] => ( [67] => Array ( [0] => 310 [1] => $alias [2] => 15 ) [68] => ) [69] => Array ( [0] => 377 [1] => [2] => 15 ) [70] => { [71] => Array ( [0] => 377 [1] => [2] => 16 ) [72] => Array ( [0] => 310 [1] => $script [2] => 17 ) [73] => Array ( [0] => 377 [1] => [2] => 17 ) [74] => = [75] => Array ( [0] => 377 [1] => [2] => 17 ) [76] => " [77] => Array ( [0] => 315 [1] => use [2] => 17 ) [78] => Array ( [0] => 310 [1] => $class [2] => 17 ) [79] => Array ( [0] => 315 [1] => as [2] => 17 ) [80] => Array ( [0] => 310 [1] => $alias [2] => 17 ) [81] => Array ( [0] => 315 [1] => ;\n [2] => 17 ) [82] => Array ( [0] => 310 [1] => $script [2] => 17 ) [83] => " [84] => ; [85] => Array ( [0] => 377 [1] => [2] => 17 ) [86] => } [87] => Array ( [0] => 377 [1] => [2] => 18 ) [88] => Array ( [0] => 304 [1] => else [2] => 19 ) [89] => Array ( [0] => 377 [1] => [2] => 19 ) [90] => { [91] => Array ( [0] => 377 [1] => [2] => 20 ) [92] => Array ( [0] => 310 [1] => $script [2] => 21 ) [93] => Array ( [0] => 377 [1] => [2] => 21 ) [94] => = [95] => Array ( [0] => 377 [1] => [2] => 21 ) [96] => " [97] => Array ( [0] => 315 [1] => use [2] => 21 ) [98] => Array ( [0] => 310 [1] => $class [2] => 21 ) [99] => Array ( [0] => 315 [1] => ;\n [2] => 21 ) [100] => Array ( [0] => 310 [1] => $script [2] => 21 ) [101] => " [102] => ; [103] => Array ( [0] => 377 [1] => [2] => 21 ) [104] => } [105] => Array ( [0] => 377 [1] => [2] => 22 ) [106] => Array ( [0] => 302 [1] => if [2] => 24 ) [107] => Array ( [0] => 377 [1] => [2] => 24 ) [108] => ( [109] => ! [110] => Array ( [0] => 353 [1] => isset [2] => 24 ) [111] => ( [112] => Array ( [0] => 310 [1] => $this [2] => 24 ) [113] => Array ( [0] => 361 [1] => -> [2] => 24 ) [114] => Array ( [0] => 308 [1] => getTable [2] => 24 ) [115] => ( [116] => ) [117] => Array ( [0] => 361 [1] => -> [2] => 24 ) [118] => Array ( [0] => 308 [1] => useStatements [2] => 24 ) [119] => ) [120] => ) [121] => Array ( [0] => 377 [1] => [2] => 24 ) [122] => { [123] => Array ( [0] => 377 [1] => [2] => 24 ) [124] => Array ( [0] => 310 [1] => $this [2] => 25 ) [125] => Array ( [0] => 361 [1] => -> [2] => 25 ) [126] => Array ( [0] => 308 [1] => getTable [2] => 25 ) [127] => ( [128] => ) [129] => Array ( [0] => 361 [1] => -> [2] => 25 ) [130] => Array ( [0] => 308 [1] => useStatements [2] => 25 ) [131] => Array ( [0] => 377 [1] => [2] => 25 ) [132] => = [133] => Array ( [0] => 377 [1] => [2] => 25 ) [134] => Array ( [0] => 364 [1] => array [2] => 25 ) [135] => ( [136] => ) [137] => ; [138] => Array ( [0] => 377 [1] => [2] => 25 ) [139] => } [140] => Array ( [0] => 377 [1] => [2] => 26 ) [141] => Array ( [0] => 310 [1] => $this [2] => 27 ) [142] => Array ( [0] => 361 [1] => -> [2] => 27 ) [143] => Array ( [0] => 308 [1] => getTable [2] => 27 ) [144] => ( [145] => ) [146] => Array ( [0] => 361 [1] => -> [2] => 27 ) [147] => Array ( [0] => 308 [1] => useStatements [2] => 27 ) [148] => [ [149] => ] [150] => Array ( [0] => 377 [1] => [2] => 27 ) [151] => = [152] => Array ( [0] => 377 [1] => [2] => 27 ) [153] => Array ( [0] => 310 [1] => $class [2] => 27 ) [154] => ; [155] => Array ( [0] => 377 [1] => [2] => 27 ) [156] => } [157] => Array ( [0] => 377 [1] => [2] => 28 ) )
Output for 5.4.0 - 5.4.45
Array ( [0] => Array ( [0] => 372 [1] => <?php [2] => 1 ) [1] => Array ( [0] => 375 [1] => [2] => 2 ) [2] => Array ( [0] => 371 [1] => /** * * @param string $script The PHP script * @param string $class The full qualified class name with namespace * @param string $alias An optional alias for the class */ [2] => 3 ) [3] => Array ( [0] => 375 [1] => [2] => 8 ) [4] => Array ( [0] => 344 [1] => protected [2] => 9 ) [5] => Array ( [0] => 375 [1] => [2] => 9 ) [6] => Array ( [0] => 334 [1] => function [2] => 9 ) [7] => Array ( [0] => 375 [1] => [2] => 9 ) [8] => Array ( [0] => 307 [1] => addUseStatement [2] => 9 ) [9] => ( [10] => & [11] => Array ( [0] => 309 [1] => $script [2] => 9 ) [12] => , [13] => Array ( [0] => 375 [1] => [2] => 9 ) [14] => Array ( [0] => 309 [1] => $class [2] => 9 ) [15] => , [16] => Array ( [0] => 375 [1] => [2] => 9 ) [17] => Array ( [0] => 309 [1] => $alias [2] => 9 ) [18] => Array ( [0] => 375 [1] => [2] => 9 ) [19] => = [20] => Array ( [0] => 375 [1] => [2] => 9 ) [21] => Array ( [0] => 307 [1] => null [2] => 9 ) [22] => ) [23] => Array ( [0] => 375 [1] => [2] => 9 ) [24] => { [25] => Array ( [0] => 375 [1] => [2] => 10 ) [26] => Array ( [0] => 301 [1] => if [2] => 11 ) [27] => Array ( [0] => 375 [1] => [2] => 11 ) [28] => ( [29] => Array ( [0] => 351 [1] => isset [2] => 11 ) [30] => ( [31] => Array ( [0] => 309 [1] => $this [2] => 11 ) [32] => Array ( [0] => 359 [1] => -> [2] => 11 ) [33] => Array ( [0] => 307 [1] => getTable [2] => 11 ) [34] => ( [35] => ) [36] => Array ( [0] => 359 [1] => -> [2] => 11 ) [37] => Array ( [0] => 307 [1] => useStatements [2] => 11 ) [38] => ) [39] => Array ( [0] => 375 [1] => [2] => 11 ) [40] => Array ( [0] => 279 [1] => && [2] => 11 ) [41] => Array ( [0] => 375 [1] => [2] => 11 ) [42] => Array ( [0] => 307 [1] => in_array [2] => 11 ) [43] => ( [44] => Array ( [0] => 309 [1] => $class [2] => 11 ) [45] => , [46] => Array ( [0] => 375 [1] => [2] => 11 ) [47] => Array ( [0] => 309 [1] => $this [2] => 11 ) [48] => Array ( [0] => 359 [1] => -> [2] => 11 ) [49] => Array ( [0] => 307 [1] => getTable [2] => 11 ) [50] => ( [51] => ) [52] => Array ( [0] => 359 [1] => -> [2] => 11 ) [53] => Array ( [0] => 307 [1] => useStatements [2] => 11 ) [54] => ) [55] => ) [56] => Array ( [0] => 375 [1] => [2] => 11 ) [57] => { [58] => Array ( [0] => 375 [1] => [2] => 11 ) [59] => Array ( [0] => 336 [1] => return [2] => 12 ) [60] => ; [61] => Array ( [0] => 375 [1] => [2] => 12 ) [62] => } [63] => Array ( [0] => 375 [1] => [2] => 13 ) [64] => Array ( [0] => 301 [1] => if [2] => 15 ) [65] => Array ( [0] => 375 [1] => [2] => 15 ) [66] => ( [67] => Array ( [0] => 309 [1] => $alias [2] => 15 ) [68] => ) [69] => Array ( [0] => 375 [1] => [2] => 15 ) [70] => { [71] => Array ( [0] => 375 [1] => [2] => 16 ) [72] => Array ( [0] => 309 [1] => $script [2] => 17 ) [73] => Array ( [0] => 375 [1] => [2] => 17 ) [74] => = [75] => Array ( [0] => 375 [1] => [2] => 17 ) [76] => " [77] => Array ( [0] => 314 [1] => use [2] => 17 ) [78] => Array ( [0] => 309 [1] => $class [2] => 17 ) [79] => Array ( [0] => 314 [1] => as [2] => 17 ) [80] => Array ( [0] => 309 [1] => $alias [2] => 17 ) [81] => Array ( [0] => 314 [1] => ;\n [2] => 17 ) [82] => Array ( [0] => 309 [1] => $script [2] => 17 ) [83] => " [84] => ; [85] => Array ( [0] => 375 [1] => [2] => 17 ) [86] => } [87] => Array ( [0] => 375 [1] => [2] => 18 ) [88] => Array ( [0] => 303 [1] => else [2] => 19 ) [89] => Array ( [0] => 375 [1] => [2] => 19 ) [90] => { [91] => Array ( [0] => 375 [1] => [2] => 20 ) [92] => Array ( [0] => 309 [1] => $script [2] => 21 ) [93] => Array ( [0] => 375 [1] => [2] => 21 ) [94] => = [95] => Array ( [0] => 375 [1] => [2] => 21 ) [96] => " [97] => Array ( [0] => 314 [1] => use [2] => 21 ) [98] => Array ( [0] => 309 [1] => $class [2] => 21 ) [99] => Array ( [0] => 314 [1] => ;\n [2] => 21 ) [100] => Array ( [0] => 309 [1] => $script [2] => 21 ) [101] => " [102] => ; [103] => Array ( [0] => 375 [1] => [2] => 21 ) [104] => } [105] => Array ( [0] => 375 [1] => [2] => 22 ) [106] => Array ( [0] => 301 [1] => if [2] => 24 ) [107] => Array ( [0] => 375 [1] => [2] => 24 ) [108] => ( [109] => ! [110] => Array ( [0] => 351 [1] => isset [2] => 24 ) [111] => ( [112] => Array ( [0] => 309 [1] => $this [2] => 24 ) [113] => Array ( [0] => 359 [1] => -> [2] => 24 ) [114] => Array ( [0] => 307 [1] => getTable [2] => 24 ) [115] => ( [116] => ) [117] => Array ( [0] => 359 [1] => -> [2] => 24 ) [118] => Array ( [0] => 307 [1] => useStatements [2] => 24 ) [119] => ) [120] => ) [121] => Array ( [0] => 375 [1] => [2] => 24 ) [122] => { [123] => Array ( [0] => 375 [1] => [2] => 24 ) [124] => Array ( [0] => 309 [1] => $this [2] => 25 ) [125] => Array ( [0] => 359 [1] => -> [2] => 25 ) [126] => Array ( [0] => 307 [1] => getTable [2] => 25 ) [127] => ( [128] => ) [129] => Array ( [0] => 359 [1] => -> [2] => 25 ) [130] => Array ( [0] => 307 [1] => useStatements [2] => 25 ) [131] => Array ( [0] => 375 [1] => [2] => 25 ) [132] => = [133] => Array ( [0] => 375 [1] => [2] => 25 ) [134] => Array ( [0] => 362 [1] => array [2] => 25 ) [135] => ( [136] => ) [137] => ; [138] => Array ( [0] => 375 [1] => [2] => 25 ) [139] => } [140] => Array ( [0] => 375 [1] => [2] => 26 ) [141] => Array ( [0] => 309 [1] => $this [2] => 27 ) [142] => Array ( [0] => 359 [1] => -> [2] => 27 ) [143] => Array ( [0] => 307 [1] => getTable [2] => 27 ) [144] => ( [145] => ) [146] => Array ( [0] => 359 [1] => -> [2] => 27 ) [147] => Array ( [0] => 307 [1] => useStatements [2] => 27 ) [148] => [ [149] => ] [150] => Array ( [0] => 375 [1] => [2] => 27 ) [151] => = [152] => Array ( [0] => 375 [1] => [2] => 27 ) [153] => Array ( [0] => 309 [1] => $class [2] => 27 ) [154] => ; [155] => Array ( [0] => 375 [1] => [2] => 27 ) [156] => } [157] => Array ( [0] => 375 [1] => [2] => 28 ) )