3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php print_r(token_get_all('<?php $perf_id == "chris" AND $date < strtotime("5th July");'));
Output for 7.0.0 - 7.1.0
Array ( [0] => Array ( [0] => 379 [1] => <?php [2] => 1 ) [1] => Array ( [0] => 320 [1] => $perf_id [2] => 1 ) [2] => Array ( [0] => 382 [1] => [2] => 1 ) [3] => Array ( [0] => 285 [1] => == [2] => 1 ) [4] => Array ( [0] => 382 [1] => [2] => 1 ) [5] => Array ( [0] => 323 [1] => "chris" [2] => 1 ) [6] => Array ( [0] => 382 [1] => [2] => 1 ) [7] => Array ( [0] => 265 [1] => AND [2] => 1 ) [8] => Array ( [0] => 382 [1] => [2] => 1 ) [9] => Array ( [0] => 320 [1] => $date [2] => 1 ) [10] => Array ( [0] => 382 [1] => [2] => 1 ) [11] => < [12] => Array ( [0] => 382 [1] => [2] => 1 ) [13] => Array ( [0] => 319 [1] => strtotime [2] => 1 ) [14] => ( [15] => Array ( [0] => 323 [1] => "5th July" [2] => 1 ) [16] => ) [17] => ; )
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] => 309 [1] => $perf_id [2] => 1 ) [2] => Array ( [0] => 371 [1] => [2] => 1 ) [3] => Array ( [0] => 283 [1] => == [2] => 1 ) [4] => Array ( [0] => 371 [1] => [2] => 1 ) [5] => Array ( [0] => 315 [1] => "chris" [2] => 1 ) [6] => Array ( [0] => 371 [1] => [2] => 1 ) [7] => Array ( [0] => 265 [1] => AND [2] => 1 ) [8] => Array ( [0] => 371 [1] => [2] => 1 ) [9] => Array ( [0] => 309 [1] => $date [2] => 1 ) [10] => Array ( [0] => 371 [1] => [2] => 1 ) [11] => < [12] => Array ( [0] => 371 [1] => [2] => 1 ) [13] => Array ( [0] => 307 [1] => strtotime [2] => 1 ) [14] => ( [15] => Array ( [0] => 315 [1] => "5th July" [2] => 1 ) [16] => ) [17] => ; )
Output for 5.6.0 - 5.6.28
Array ( [0] => Array ( [0] => 376 [1] => <?php [2] => 1 ) [1] => Array ( [0] => 312 [1] => $perf_id [2] => 1 ) [2] => Array ( [0] => 379 [1] => [2] => 1 ) [3] => Array ( [0] => 285 [1] => == [2] => 1 ) [4] => Array ( [0] => 379 [1] => [2] => 1 ) [5] => Array ( [0] => 318 [1] => "chris" [2] => 1 ) [6] => Array ( [0] => 379 [1] => [2] => 1 ) [7] => Array ( [0] => 265 [1] => AND [2] => 1 ) [8] => Array ( [0] => 379 [1] => [2] => 1 ) [9] => Array ( [0] => 312 [1] => $date [2] => 1 ) [10] => Array ( [0] => 379 [1] => [2] => 1 ) [11] => < [12] => Array ( [0] => 379 [1] => [2] => 1 ) [13] => Array ( [0] => 310 [1] => strtotime [2] => 1 ) [14] => ( [15] => Array ( [0] => 318 [1] => "5th July" [2] => 1 ) [16] => ) [17] => ; )
Output for 5.5.0 - 5.5.37
Array ( [0] => Array ( [0] => 374 [1] => <?php [2] => 1 ) [1] => Array ( [0] => 310 [1] => $perf_id [2] => 1 ) [2] => Array ( [0] => 377 [1] => [2] => 1 ) [3] => Array ( [0] => 284 [1] => == [2] => 1 ) [4] => Array ( [0] => 377 [1] => [2] => 1 ) [5] => Array ( [0] => 316 [1] => "chris" [2] => 1 ) [6] => Array ( [0] => 377 [1] => [2] => 1 ) [7] => Array ( [0] => 265 [1] => AND [2] => 1 ) [8] => Array ( [0] => 377 [1] => [2] => 1 ) [9] => Array ( [0] => 310 [1] => $date [2] => 1 ) [10] => Array ( [0] => 377 [1] => [2] => 1 ) [11] => < [12] => Array ( [0] => 377 [1] => [2] => 1 ) [13] => Array ( [0] => 308 [1] => strtotime [2] => 1 ) [14] => ( [15] => Array ( [0] => 316 [1] => "5th July" [2] => 1 ) [16] => ) [17] => ; )
Output for 5.4.0 - 5.4.45
Array ( [0] => Array ( [0] => 372 [1] => <?php [2] => 1 ) [1] => Array ( [0] => 309 [1] => $perf_id [2] => 1 ) [2] => Array ( [0] => 375 [1] => [2] => 1 ) [3] => Array ( [0] => 283 [1] => == [2] => 1 ) [4] => Array ( [0] => 375 [1] => [2] => 1 ) [5] => Array ( [0] => 315 [1] => "chris" [2] => 1 ) [6] => Array ( [0] => 375 [1] => [2] => 1 ) [7] => Array ( [0] => 265 [1] => AND [2] => 1 ) [8] => Array ( [0] => 375 [1] => [2] => 1 ) [9] => Array ( [0] => 309 [1] => $date [2] => 1 ) [10] => Array ( [0] => 375 [1] => [2] => 1 ) [11] => < [12] => Array ( [0] => 375 [1] => [2] => 1 ) [13] => Array ( [0] => 307 [1] => strtotime [2] => 1 ) [14] => ( [15] => Array ( [0] => 315 [1] => "5th July" [2] => 1 ) [16] => ) [17] => ; )
Output for 5.2.2 - 5.2.17
Array ( [0] => Array ( [0] => 367 [1] => <?php [2] => 1 ) [1] => Array ( [0] => 309 [1] => $perf_id [2] => 1 ) [2] => Array ( [0] => 370 [1] => [2] => 1 ) [3] => Array ( [0] => 283 [1] => == [2] => 1 ) [4] => Array ( [0] => 370 [1] => [2] => 1 ) [5] => Array ( [0] => 315 [1] => "chris" [2] => 1 ) [6] => Array ( [0] => 370 [1] => [2] => 1 ) [7] => Array ( [0] => 265 [1] => AND [2] => 1 ) [8] => Array ( [0] => 370 [1] => [2] => 1 ) [9] => Array ( [0] => 309 [1] => $date [2] => 1 ) [10] => Array ( [0] => 370 [1] => [2] => 1 ) [11] => < [12] => Array ( [0] => 370 [1] => [2] => 1 ) [13] => Array ( [0] => 307 [1] => strtotime [2] => 1 ) [14] => ( [15] => Array ( [0] => 315 [1] => "5th July" [2] => 1 ) [16] => ) [17] => ; )
Output for 5.1.0 - 5.2.1
Array ( [0] => Array ( [0] => 367 [1] => <?php ) [1] => Array ( [0] => 309 [1] => $perf_id ) [2] => Array ( [0] => 370 [1] => ) [3] => Array ( [0] => 283 [1] => == ) [4] => Array ( [0] => 370 [1] => ) [5] => Array ( [0] => 315 [1] => "chris" ) [6] => Array ( [0] => 370 [1] => ) [7] => Array ( [0] => 265 [1] => AND ) [8] => Array ( [0] => 370 [1] => ) [9] => Array ( [0] => 309 [1] => $date ) [10] => Array ( [0] => 370 [1] => ) [11] => < [12] => Array ( [0] => 370 [1] => ) [13] => Array ( [0] => 307 [1] => strtotime ) [14] => ( [15] => Array ( [0] => 315 [1] => "5th July" ) [16] => ) [17] => ; )
Output for 5.0.0 - 5.0.5
Array ( [0] => Array ( [0] => 365 [1] => <?php ) [1] => Array ( [0] => 308 [1] => $perf_id ) [2] => Array ( [0] => 368 [1] => ) [3] => Array ( [0] => 279 [1] => == ) [4] => Array ( [0] => 368 [1] => ) [5] => Array ( [0] => 314 [1] => "chris" ) [6] => Array ( [0] => 368 [1] => ) [7] => Array ( [0] => 264 [1] => AND ) [8] => Array ( [0] => 368 [1] => ) [9] => Array ( [0] => 308 [1] => $date ) [10] => Array ( [0] => 368 [1] => ) [11] => < [12] => Array ( [0] => 368 [1] => ) [13] => Array ( [0] => 306 [1] => strtotime ) [14] => ( [15] => Array ( [0] => 314 [1] => "5th July" ) [16] => ) [17] => ; )
Output for 4.4.2 - 4.4.9
Array ( [0] => Array ( [0] => 354 [1] => <?php ) [1] => Array ( [0] => 307 [1] => $perf_id ) [2] => Array ( [0] => 357 [1] => ) [3] => Array ( [0] => 283 [1] => == ) [4] => Array ( [0] => 357 [1] => ) [5] => Array ( [0] => 313 [1] => "chris" ) [6] => Array ( [0] => 357 [1] => ) [7] => Array ( [0] => 265 [1] => AND ) [8] => Array ( [0] => 357 [1] => ) [9] => Array ( [0] => 307 [1] => $date ) [10] => Array ( [0] => 357 [1] => ) [11] => < [12] => Array ( [0] => 357 [1] => ) [13] => Array ( [0] => 305 [1] => strtotime ) [14] => ( [15] => Array ( [0] => 313 [1] => "5th July" ) [16] => ) [17] => ; )
Output for 4.3.0 - 4.4.1
Array ( [0] => Array ( [0] => 353 [1] => <?php ) [1] => Array ( [0] => 306 [1] => $perf_id ) [2] => Array ( [0] => 356 [1] => ) [3] => Array ( [0] => 279 [1] => == ) [4] => Array ( [0] => 356 [1] => ) [5] => Array ( [0] => 312 [1] => "chris" ) [6] => Array ( [0] => 356 [1] => ) [7] => Array ( [0] => 264 [1] => AND ) [8] => Array ( [0] => 356 [1] => ) [9] => Array ( [0] => 306 [1] => $date ) [10] => Array ( [0] => 356 [1] => ) [11] => < [12] => Array ( [0] => 356 [1] => ) [13] => Array ( [0] => 304 [1] => strtotime ) [14] => ( [15] => Array ( [0] => 312 [1] => "5th July" ) [16] => ) [17] => ; )