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>"; $regex_a = '/<a(.*)</a>/'; preg_match($regex_a, $html_liste, $matches); echo $matches[1]; // 1234 $regex_no = '/name="(\d+)"/'; $url_fiche = "href=\"/v-autos-camions/ville-de-montreal/2008-bmw-x5-suv/568081363\""; preg_match($regex_no, $url_fiche, $matches); echo $matches[1];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jn0F6
function name:  (null)
number of ops:  20
compiled vars:  !0 = $url_liste, !1 = $html_liste, !2 = $regex_a, !3 = $matches, !4 = $regex_no, !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%3Ca%28.%2A%29%3C%2Fa%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        ASSIGN                                                   !4, '%2Fname%3D%22%28%5Cd%2B%29%22%2F'
   12    11        ASSIGN                                                   !5, 'href%3D%22%2Fv-autos-camions%2Fville-de-montreal%2F2008-bmw-x5-suv%2F568081363%22'
   13    12        INIT_FCALL                                               'preg_match'
         13        SEND_VAR                                                 !4
         14        SEND_VAR                                                 !5
         15        SEND_REF                                                 !3
         16        DO_ICALL                                                 
   14    17        FETCH_DIM_R                                      ~14     !3, 1
         18        ECHO                                                     ~14
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.22 ms | 1400 KiB | 15 Q