3v4l.org

run code in 300+ PHP versions simultaneously
<?php $cool ='<li><span class="sidebar-vote-number"><a href="/story.php?title=gamestarts now">1</a></span><span class="sidebar-article"><a href="/story.php?title=googlegoogle-google-google" class="switchurl">GoogleGoogle Google Google</a></span></li> Published News</a></div> </div> <div class="boxcontent"> <ul class="sidebar-stories"> <li><span class="sidebar-vote-number"><a href="/story.php?title=googlegoogle-google-google">1</a></span><span class="sidebar-article"><a href="/story.php?title=googlegoogle-google-google" class="switchurl">GoogleGoogle Google Google</a></span></li>'; preg_match('~<li><span class="sidebar-vote-number"><a href="([^"]*)~', $cool, $match); var_dump($match);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eNo6J
function name:  (null)
number of ops:  10
compiled vars:  !0 = $cool, !1 = $match
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%3Cli%3E%3Cspan+class%3D%22sidebar-vote-number%22%3E%3Ca+href%3D%22%2Fstory.php%3Ftitle%3Dgamestarts+now%22%3E1%3C%2Fa%3E%3C%2Fspan%3E%3Cspan+class%3D%22sidebar-article%22%3E%3Ca+href%3D%22%2Fstory.php%3Ftitle%3Dgooglegoogle-google-google%22+class%3D%22switchurl%22%3EGoogleGoogle+Google+Google%3C%2Fa%3E%3C%2Fspan%3E%3C%2Fli%3E%0A%0A++++++++Published+News%3C%2Fa%3E%3C%2Fdiv%3E%0A++++++++%3C%2Fdiv%3E%0A++++++++%3Cdiv+class%3D%22boxcontent%22%3E%0A++++++++++++%3Cul+class%3D%22sidebar-stories%22%3E%0A%0A++++++++%3Cli%3E%3Cspan+class%3D%22sidebar-vote-number%22%3E%3Ca+href%3D%22%2Fstory.php%3Ftitle%3Dgooglegoogle-google-google%22%3E1%3C%2Fa%3E%3C%2Fspan%3E%3Cspan+class%3D%22sidebar-article%22%3E%3Ca+href%3D%22%2Fstory.php%3Ftitle%3Dgooglegoogle-google-google%22+class%3D%22switchurl%22%3EGoogleGoogle+Google+Google%3C%2Fa%3E%3C%2Fspan%3E%3C%2Fli%3E'
   12     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%7E%3Cli%3E%3Cspan+class%3D%22sidebar-vote-number%22%3E%3Ca+href%3D%22%28%5B%5E%22%5D%2A%29%7E'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_ICALL                                                 
   14     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168 ms | 1395 KiB | 17 Q