3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.43 ms | 1394 KiB | 17 Q