3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = 'test"'; $test = str_replace(['$'], ['\\\\$'], $test); echo 'usermod -p `perl -e \'print crypt("' . $test . '","Sa")\'` ';
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nJK1H
function name:  (null)
number of ops:  11
compiled vars:  !0 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'test%22'
    5     1        INIT_FCALL                                               'str_replace'
          2        SEND_VAL                                                 <array>
          3        SEND_VAL                                                 <array>
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
          6        ASSIGN                                                   !0, $2
    7     7        CONCAT                                           ~4      'usermod+-p+%60perl+-e+%27print+crypt%28%22', !0
          8        CONCAT                                           ~5      ~4, '%22%2C%22Sa%22%29%27%60+'
          9        ECHO                                                     ~5
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.1 ms | 1009 KiB | 14 Q