3v4l.org

run code in 300+ PHP versions simultaneously
<?php print_r(token_get_all(' function extractURL($url) { if (preg_match(\'#http://www.google.com/?$#i\', $url, $match)) { return $match[1]; } return null; }'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/r22KO
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'print_r'
          1        INIT_FCALL                                               'token_get_all'
          2        SEND_VAL                                                 '%0Afunction+extractURL%28%24url%29%0A%7B%0A++++if+%28preg_match%28%27%23http%3A%2F%2Fwww.google.com%2F%3F%24%23i%27%2C+%24url%2C+%24match%29%29+%7B%0A++++++++return+%24match%5B1%5D%3B%0A++++%7D%0A++++return+null%3B%0A%7D'
          3        DO_ICALL                                         $0      
          4        SEND_VAR                                                 $0
          5        DO_ICALL                                                 
    9     6      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.84 ms | 1393 KiB | 17 Q