3v4l.org

run code in 300+ PHP versions simultaneously
<?php $domain = 'https://kgopen.baidu.com/user/noinfo?code=2'; $ip = escapeshellcmd($domain); echo $ip.'\n'; $domain = "`ls`"; $ip = escapeshellarg($domain); echo $ip;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nKKpb
function name:  (null)
number of ops:  14
compiled vars:  !0 = $domain, !1 = $ip
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'https%3A%2F%2Fkgopen.baidu.com%2Fuser%2Fnoinfo%3Fcode%3D2'
    3     1        INIT_FCALL                                               'escapeshellcmd'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !1, $3
    4     5        CONCAT                                           ~5      !1, '%5Cn'
          6        ECHO                                                     ~5
    5     7        ASSIGN                                                   !0, '%60ls%60'
    6     8        INIT_FCALL                                               'escapeshellarg'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                         $7      
         11        ASSIGN                                                   !1, $7
    7    12        ECHO                                                     !1
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.94 ms | 1385 KiB | 17 Q