3v4l.org

run code in 300+ PHP versions simultaneously
<?php $utf8string = 'Agence immobilière Dossenheim met en vente duplex a Jdaida d’une superficie 100m² composée d’un salon ,salle à manger, cuisine, 3 chambres à coucher, salle de bain et une salle d’eau ,d’un prix négociable 70MDT avec titre foncier indépendant Pour tout contact'; $var = 'vente'; $arr=preg_split("/\s+(?=\S*+$)/",$utf8string); var_dump($arr); if(preg_match('/\s+(?=\S*+$)/', $utf8string, $m, PREG_OFFSET_CAPTURE)) var_dump($m);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 20
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
filename:       /in/hR4nK
function name:  (null)
number of ops:  21
compiled vars:  !0 = $utf8string, !1 = $var, !2 = $arr, !3 = $m
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Agence+immobili%C3%A8re+Dossenheim+met+en+vente+duplex+a+Jdaida+d%E2%80%99une+superficie+100m%C2%B2+compos%C3%A9e+d%E2%80%99un+salon+%2Csalle+%C3%A0+manger%2C+cuisine%2C+3+chambres+%C3%A0+coucher%2C+salle+de+bain+et+une+salle+d%E2%80%99eau+%2Cd%E2%80%99un+prix+n%C3%A9gociable+70MDT+avec+titre+foncier+ind%C3%A9pendant+Pour+tout+contact'
    5     1        ASSIGN                                                   !1, 'vente'
    6     2        INIT_FCALL                                               'preg_split'
          3        SEND_VAL                                                 '%2F%5Cs%2B%28%3F%3D%5CS%2A%2B%24%29%2F'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $6      
          6        ASSIGN                                                   !2, $6
    7     7        INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !2
          9        DO_ICALL                                                 
    9    10        INIT_FCALL                                               'preg_match'
         11        SEND_VAL                                                 '%2F%5Cs%2B%28%3F%3D%5CS%2A%2B%24%29%2F'
         12        SEND_VAR                                                 !0
         13        SEND_REF                                                 !3
         14        SEND_VAL                                                 256
         15        DO_ICALL                                         $9      
         16      > JMPZ                                                     $9, ->20
   10    17    >   INIT_FCALL                                               'var_dump'
         18        SEND_VAR                                                 !3
         19        DO_ICALL                                                 
         20    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.08 ms | 1395 KiB | 19 Q