3v4l.org

run code in 300+ PHP versions simultaneously
<?php $var="20070601"; if (intval($var)) echo "it's safe"; echo '$var='.$var; echo "<br>"; $var1="1 union select 1,1,1 from admin"; if (intval($var1)) echo "it's safe too"; echo '$var1='.$var1;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 4
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 11
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
Branch analysis from position: 4
filename:       /in/UTNuu
function name:  (null)
number of ops:  14
compiled vars:  !0 = $var, !1 = $var1
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '20070601'
    4     1        CAST                                          4  ~3      !0
          2      > JMPZ                                                     ~3, ->4
    5     3    >   ECHO                                                     'it%27s+safe'
    6     4    >   CONCAT                                           ~4      '%24var%3D', !0
          5        ECHO                                                     ~4
    7     6        ECHO                                                     '%3Cbr%3E'
    8     7        ASSIGN                                                   !1, '1+union+select+1%2C1%2C1+from+admin'
    9     8        CAST                                          4  ~6      !1
          9      > JMPZ                                                     ~6, ->11
   10    10    >   ECHO                                                     'it%27s+safe+too'
   11    11    >   CONCAT                                           ~7      '%24var1%3D', !1
         12        ECHO                                                     ~7
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
139.64 ms | 1393 KiB | 13 Q