3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php print_r(token_get_all('<?php call_protected_method($pos_sales_overview, \'output_coupons\', array());'));
based on v4nMh
Output for 7.0.0 - 7.2.0
Array ( [0] => Array ( [0] => 379 [1] => <?php [2] => 1 ) [1] => Array ( [0] => 382 [1] => [2] => 1 ) [2] => Array ( [0] => 319 [1] => call_protected_method [2] => 1 ) [3] => ( [4] => Array ( [0] => 320 [1] => $pos_sales_overview [2] => 1 ) [5] => , [6] => Array ( [0] => 382 [1] => [2] => 1 ) [7] => Array ( [0] => 323 [1] => 'output_coupons' [2] => 1 ) [8] => , [9] => Array ( [0] => 382 [1] => [2] => 1 ) [10] => Array ( [0] => 368 [1] => array [2] => 1 ) [11] => ( [12] => ) [13] => ) [14] => ; )
Output for 5.6.8 - 5.6.28
Array ( [0] => Array ( [0] => 376 [1] => <?php [2] => 1 ) [1] => Array ( [0] => 379 [1] => [2] => 1 ) [2] => Array ( [0] => 310 [1] => call_protected_method [2] => 1 ) [3] => ( [4] => Array ( [0] => 312 [1] => $pos_sales_overview [2] => 1 ) [5] => , [6] => Array ( [0] => 379 [1] => [2] => 1 ) [7] => Array ( [0] => 318 [1] => 'output_coupons' [2] => 1 ) [8] => , [9] => Array ( [0] => 379 [1] => [2] => 1 ) [10] => Array ( [0] => 366 [1] => array [2] => 1 ) [11] => ( [12] => ) [13] => ) [14] => ; )
Output for 5.5.24 - 5.5.35
Array ( [0] => Array ( [0] => 374 [1] => <?php [2] => 1 ) [1] => Array ( [0] => 377 [1] => [2] => 1 ) [2] => Array ( [0] => 308 [1] => call_protected_method [2] => 1 ) [3] => ( [4] => Array ( [0] => 310 [1] => $pos_sales_overview [2] => 1 ) [5] => , [6] => Array ( [0] => 377 [1] => [2] => 1 ) [7] => Array ( [0] => 316 [1] => 'output_coupons' [2] => 1 ) [8] => , [9] => Array ( [0] => 377 [1] => [2] => 1 ) [10] => Array ( [0] => 364 [1] => array [2] => 1 ) [11] => ( [12] => ) [13] => ) [14] => ; )
Output for 5.4.11 - 5.4.45
Array ( [0] => Array ( [0] => 372 [1] => <?php [2] => 1 ) [1] => Array ( [0] => 375 [1] => [2] => 1 ) [2] => Array ( [0] => 307 [1] => call_protected_method [2] => 1 ) [3] => ( [4] => Array ( [0] => 309 [1] => $pos_sales_overview [2] => 1 ) [5] => , [6] => Array ( [0] => 375 [1] => [2] => 1 ) [7] => Array ( [0] => 315 [1] => 'output_coupons' [2] => 1 ) [8] => , [9] => Array ( [0] => 375 [1] => [2] => 1 ) [10] => Array ( [0] => 362 [1] => array [2] => 1 ) [11] => ( [12] => ) [13] => ) [14] => ; )
Output for 5.3.21 - 5.3.29
Array ( [0] => Array ( [0] => 368 [1] => <?php [2] => 1 ) [1] => Array ( [0] => 371 [1] => [2] => 1 ) [2] => Array ( [0] => 307 [1] => call_protected_method [2] => 1 ) [3] => ( [4] => Array ( [0] => 309 [1] => $pos_sales_overview [2] => 1 ) [5] => , [6] => Array ( [0] => 371 [1] => [2] => 1 ) [7] => Array ( [0] => 315 [1] => 'output_coupons' [2] => 1 ) [8] => , [9] => Array ( [0] => 371 [1] => [2] => 1 ) [10] => Array ( [0] => 360 [1] => array [2] => 1 ) [11] => ( [12] => ) [13] => ) [14] => ; )