3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.09 ms | 1393 KiB | 13 Q