3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array('remboursement' => 'remboursement'); $key = 'M'; if(preg_match("/".$key."/i", join(",", array_keys($arr)))){ echo "oui"; } else{ echo "non"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 18
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GhhCB
function name:  (null)
number of ops:  20
compiled vars:  !0 = $arr, !1 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        ASSIGN                                                   !1, 'M'
    7     2        INIT_FCALL                                               'preg_match'
          3        CONCAT                                           ~4      '%2F', !1
          4        CONCAT                                           ~5      ~4, '%2Fi'
          5        SEND_VAL                                                 ~5
          6        INIT_FCALL                                               'join'
          7        SEND_VAL                                                 '%2C'
          8        INIT_FCALL                                               'array_keys'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                         $6      
         11        SEND_VAR                                                 $6
         12        DO_ICALL                                         $7      
         13        SEND_VAR                                                 $7
         14        DO_ICALL                                         $8      
         15      > JMPZ                                                     $8, ->18
    8    16    >   ECHO                                                     'oui'
         17      > JMP                                                      ->19
   11    18    >   ECHO                                                     'non'
   12    19    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148 ms | 1386 KiB | 19 Q