3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sql = "(select count(*) from rateexport where rateexport.`block # rate` > 0) as B_#," . PHP_EOL; for ($x = 1; $x < 31; $x++) { echo str_replace("#", $x, $sql); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 3
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 3
Branch analysis from position: 12
Branch analysis from position: 3
filename:       /in/Y39vk
function name:  (null)
number of ops:  13
compiled vars:  !0 = $sql, !1 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%28select++count%28%2A%29+from+rateexport+where+rateexport.%60block+%23+rate%60+%3E+0%29+as+B_%23%2C%0A'
    3     1        ASSIGN                                                   !1, 1
          2      > JMP                                                      ->10
    4     3    >   INIT_FCALL                                               'str_replace'
          4        SEND_VAL                                                 '%23'
          5        SEND_VAR                                                 !1
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $4      
          8        ECHO                                                     $4
    3     9        PRE_INC                                                  !1
         10    >   IS_SMALLER                                               !1, 31
         11      > JMPNZ                                                    ~6, ->3
    5    12    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
182.65 ms | 1394 KiB | 15 Q