3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test='sdfqfdsqfsdfqsdf'; if (strpos($test,'filtre_id_opt_pos_') !== false) { $valeur = $test; } else { $valeur = base64_encode($test); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 9
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hUpV4
function name:  (null)
number of ops:  14
compiled vars:  !0 = $test, !1 = $valeur
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'sdfqfdsqfsdfqsdf'
    5     1        INIT_FCALL                                               'strpos'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 'filtre_id_opt_pos_'
          4        DO_ICALL                                         $3      
          5        TYPE_CHECK                                  1018          $3
          6      > JMPZ                                                     ~4, ->9
    7     7    >   ASSIGN                                                   !1, !0
          8      > JMP                                                      ->13
   11     9    >   INIT_FCALL                                               'base64_encode'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $6      
         12        ASSIGN                                                   !1, $6
   13    13    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.55 ms | 1394 KiB | 17 Q