3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ligne = "J' [ Pronom Personnel Masculin Féminin Singulier Fonction(Gouverneur) FonctionGroupe(Sujet) ProfondeurSyntaxique(4) 'je'] "; $position_crochet = strpos($ligne, " [ "); //on cherche dans la ligne, la position qui nous intéresse (ici la FonctionGroupe()) //en prenant garde à chercher après l'offset ($position_crochet) $position_fonctiongroupe = strpos($ligne, "FonctionGroupe(",$position_crochet+2); echo $position_fonctiongroupe."<br>"; //jusqu'à la parenthese fermante de FonctionGroupe() $position_parenthese_fermante_fonctiongroupe = strpos($ligne, "et) ", $position_fonctiongroupe); echo $position_parenthese_fermante_fonctiongroupe."<br>";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/b7tML
function name:  (null)
number of ops:  24
compiled vars:  !0 = $ligne, !1 = $position_crochet, !2 = $position_fonctiongroupe, !3 = $position_parenthese_fermante_fonctiongroupe
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'J%27+%5B+Pronom+Personnel+Masculin+F%C3%A9minin+Singulier+Fonction%28Gouverneur%29+FonctionGroupe%28Sujet%29++ProfondeurSyntaxique%284%29+%27je%27%5D%0A'
    4     1        INIT_FCALL                                               'strpos'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 '+%5B+'
          4        DO_ICALL                                         $5      
          5        ASSIGN                                                   !1, $5
    7     6        INIT_FCALL                                               'strpos'
          7        SEND_VAR                                                 !0
          8        SEND_VAL                                                 'FonctionGroupe%28'
          9        ADD                                              ~7      !1, 2
         10        SEND_VAL                                                 ~7
         11        DO_ICALL                                         $8      
         12        ASSIGN                                                   !2, $8
    8    13        CONCAT                                           ~10     !2, '%3Cbr%3E'
         14        ECHO                                                     ~10
   10    15        INIT_FCALL                                               'strpos'
         16        SEND_VAR                                                 !0
         17        SEND_VAL                                                 'et%29+'
         18        SEND_VAR                                                 !2
         19        DO_ICALL                                         $11     
         20        ASSIGN                                                   !3, $11
   11    21        CONCAT                                           ~13     !3, '%3Cbr%3E'
         22        ECHO                                                     ~13
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.99 ms | 1395 KiB | 15 Q