3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "Hi, how's it going?\n"; $input = "I'm not saying anything about anything"; $params = ["eval($input)", 'any']; $functionName = 'strpos'; echo $functionName; $test = $functionName($params); var_dump($test);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fiRjS
function name:  (null)
number of ops:  18
compiled vars:  !0 = $input, !1 = $params, !2 = $functionName, !3 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ECHO                                                     'Hi%2C+how%27s+it+going%3F%0A'
    5     1        ASSIGN                                                   !0, 'I%27m+not+saying+anything+about+anything'
    6     2        ROPE_INIT                                     3  ~6      'eval%28'
          3        ROPE_ADD                                      1  ~6      ~6, !0
          4        ROPE_END                                      2  ~5      ~6, '%29'
          5        INIT_ARRAY                                       ~8      ~5
          6        ADD_ARRAY_ELEMENT                                ~8      'any'
          7        ASSIGN                                                   !1, ~8
    7     8        ASSIGN                                                   !2, 'strpos'
    9     9        ECHO                                                     !2
   10    10        INIT_DYNAMIC_CALL                                        !2
         11        SEND_VAR_EX                                              !1
         12        DO_FCALL                                      0  $11     
         13        ASSIGN                                                   !3, $11
   11    14        INIT_FCALL                                               'var_dump'
         15        SEND_VAR                                                 !3
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.53 ms | 1394 KiB | 15 Q