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 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/gaG4X
function name:  (null)
number of ops:  22
compiled vars:  !0 = $url_liste, !1 = $html_liste, !2 = $regexa, !3 = $matches, !4 = $regexno, !5 = $url_fiche
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
   11    10        ECHO                                                     '%3Cbr%3E'
   12    11        ECHO                                                     '%3Cbr%3E'
   14    12        ASSIGN                                                   !4, '%2Fname%3D%22%28%5Cd%2B%29%22%2F'
   15    13        ASSIGN                                                   !5, 'href%3D%22%2Fv-autos-camions%2Fville-de-montreal%2F2008-bmw-x5-suv%2F568081363%22'
   16    14        INIT_FCALL                                               'preg_match'
         15        SEND_VAR                                                 !4
         16        SEND_VAR                                                 !5
         17        SEND_REF                                                 !3
         18        DO_ICALL                                                 
   17    19        FETCH_DIM_R                                      ~14     !3, 1
         20        ECHO                                                     ~14
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
190.52 ms | 1395 KiB | 15 Q