3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url_liste = "http://www.kijiji.ca/b-autos-camions/grand-montreal/suv+vgm-bmw-x5-2001__2009/c174l80002a138a54a1000054a68?sort=priceAsc&price=2000.00__40000.00&kilometres=10000__110000"; $html_liste = "<td class=\"description\"><a href=\"/v-autos-camions/ville-de-montreal/2008-bmw-x5-suv/568081363\" class=\"title enable-search-navigation-flag\" name=\"568081363\">2008 BMW X5 SUV</a><p>"; $regexa = '/\<a(.*)\<\/a\>/'; preg_match($regexa, $html_liste, $matches); echo $matches[1]; // 1234 $url_fiche = $matches[1]; // 1234 echo '<br>'; echo '<br>'; $regexno = '/name=\"(\d+)\"/'; //$url_fiche = "href=\"/v-autos-camions/ville-de-montreal/2008-bmw-x5-suv/568081363\""; preg_match($regexno, $url_fiche, $matches); echo $matches[1];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1NcpE
function name:  (null)
number of ops:  23
compiled vars:  !0 = $url_liste, !1 = $html_liste, !2 = $regexa, !3 = $matches, !4 = $url_fiche, !5 = $regexno
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'http%3A%2F%2Fwww.kijiji.ca%2Fb-autos-camions%2Fgrand-montreal%2Fsuv%2Bvgm-bmw-x5-2001__2009%2Fc174l80002a138a54a1000054a68%3Fsort%3DpriceAsc%26price%3D2000.00__40000.00%26kilometres%3D10000__110000'
    5     1        ASSIGN                                                   !1, '%3Ctd+class%3D%22description%22%3E%3Ca+href%3D%22%2Fv-autos-camions%2Fville-de-montreal%2F2008-bmw-x5-suv%2F568081363%22+class%3D%22title+enable-search-navigation-flag%22+name%3D%22568081363%22%3E2008+BMW+X5+SUV%3C%2Fa%3E%3Cp%3E'
    7     2        ASSIGN                                                   !2, '%2F%5C%3Ca%28.%2A%29%5C%3C%5C%2Fa%5C%3E%2F'
    8     3        INIT_FCALL                                               'preg_match'
          4        SEND_VAR                                                 !2
          5        SEND_VAR                                                 !1
          6        SEND_REF                                                 !3
          7        DO_ICALL                                                 
    9     8        FETCH_DIM_R                                      ~10     !3, 1
          9        ECHO                                                     ~10
   10    10        FETCH_DIM_R                                      ~11     !3, 1
         11        ASSIGN                                                   !4, ~11
   12    12        ECHO                                                     '%3Cbr%3E'
   13    13        ECHO                                                     '%3Cbr%3E'
   15    14        ASSIGN                                                   !5, '%2Fname%3D%5C%22%28%5Cd%2B%29%5C%22%2F'
   17    15        INIT_FCALL                                               'preg_match'
         16        SEND_VAR                                                 !5
         17        SEND_VAR                                                 !4
         18        SEND_REF                                                 !3
         19        DO_ICALL                                                 
   18    20        FETCH_DIM_R                                      ~15     !3, 1
         21        ECHO                                                     ~15
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.5 ms | 1395 KiB | 15 Q