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); $a = $matches[1]; // 1234 //echo $a; //echo '<br>'; //echo '<br>'; //Extract no d'annonces $regexno = '/name="(\d+)"/i'; preg_match($regexno, $a, $matches); //echo 'id:'; //echo $matches[1]; //Extract url des fiches $regexurl = '/href="(\S+)"/i'; preg_match($regexurl, $a, $matches); //echo 'url:'; //echo $matches[1]; $url_fiche = 'http://www.kijiji.ca' . $matches[1]; echo $url_fiche;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8SVcn
function name:  (null)
number of ops:  27
compiled vars:  !0 = $url_liste, !1 = $html_liste, !2 = $regexa, !3 = $matches, !4 = $a, !5 = $regexno, !6 = $regexurl, !7 = $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                                                 
   10     8        FETCH_DIM_R                                      ~12     !3, 1
          9        ASSIGN                                                   !4, ~12
   17    10        ASSIGN                                                   !5, '%2Fname%3D%22%28%5Cd%2B%29%22%2Fi'
   18    11        INIT_FCALL                                               'preg_match'
         12        SEND_VAR                                                 !5
         13        SEND_VAR                                                 !4
         14        SEND_REF                                                 !3
         15        DO_ICALL                                                 
   23    16        ASSIGN                                                   !6, '%2Fhref%3D%22%28%5CS%2B%29%22%2Fi'
   24    17        INIT_FCALL                                               'preg_match'
         18        SEND_VAR                                                 !6
         19        SEND_VAR                                                 !4
         20        SEND_REF                                                 !3
         21        DO_ICALL                                                 
   27    22        FETCH_DIM_R                                      ~18     !3, 1
         23        CONCAT                                           ~19     'http%3A%2F%2Fwww.kijiji.ca', ~18
         24        ASSIGN                                                   !7, ~19
   28    25        ECHO                                                     !7
         26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
178.75 ms | 1401 KiB | 15 Q