3v4l.org

run code in 300+ PHP versions simultaneously
<?php $request = array( 'first_name' => 'test', 'last_name' => 'tester' ); $query = escapeshellarg(json_encode($request)); $python = 'C:\\Python27\\python.exe'; $script = 'C:\\script\\script.py'; $command = "$python $script $query" ; var_dump($command);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8sVIb
function name:  (null)
number of ops:  20
compiled vars:  !0 = $request, !1 = $query, !2 = $python, !3 = $script, !4 = $command
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    6     1        INIT_FCALL                                               'escapeshellarg'
          2        INIT_FCALL                                               'json_encode'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $6      
          5        SEND_VAR                                                 $6
          6        DO_ICALL                                         $7      
          7        ASSIGN                                                   !1, $7
    8     8        ASSIGN                                                   !2, 'C%3A%5CPython27%5Cpython.exe'
    9     9        ASSIGN                                                   !3, 'C%3A%5Cscript%5Cscript.py'
   10    10        ROPE_INIT                                     5  ~12     !2
         11        ROPE_ADD                                      1  ~12     ~12, '+'
         12        ROPE_ADD                                      2  ~12     ~12, !3
         13        ROPE_ADD                                      3  ~12     ~12, '+'
         14        ROPE_END                                      4  ~11     ~12, !1
         15        ASSIGN                                                   !4, ~11
   11    16        INIT_FCALL                                               'var_dump'
         17        SEND_VAR                                                 !4
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.94 ms | 1395 KiB | 19 Q