3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a="25%"; $a=str_replace('%','',$a);//去百分号 echo is_numberic($a)?$a/100:'呀不是数字!';
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 14
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rTbii
function name:  (null)
number of ops:  17
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '25%25'
    3     1        INIT_FCALL                                               'str_replace'
          2        SEND_VAL                                                 '%25'
          3        SEND_VAL                                                 ''
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
          6        ASSIGN                                                   !0, $2
    4     7        INIT_FCALL_BY_NAME                                       'is_numberic'
          8        SEND_VAR_EX                                              !0
          9        DO_FCALL                                      0  $4      
         10      > JMPZ                                                     $4, ->14
         11    >   DIV                                              ~5      !0, 100
         12        QM_ASSIGN                                        ~6      ~5
         13      > JMP                                                      ->15
         14    >   QM_ASSIGN                                        ~6      '%E5%91%80%E4%B8%8D%E6%98%AF%E6%95%B0%E5%AD%97%21'
         15    >   ECHO                                                     ~6
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.46 ms | 1395 KiB | 15 Q