3v4l.org

run code in 300+ PHP versions simultaneously
<?php if(!empty($_POST)){ if(get_magic_quotes_gpc()) echo eval_php(stripslashes($_POST['content'])); else{ echo eval_php($_POST['content']); } } function eval_php($content) { ob_start(); eval("?>$content<?php "); $output = ob_get_contents(); ob_end_clean(); return $output; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 23
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 16
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
filename:       /in/SFgka
function name:  (null)
number of ops:  24
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   ISSET_ISEMPTY_VAR                             3  ~0      '_POST'
          1        BOOL_NOT                                         ~1      ~0
          2      > JMPZ                                                     ~1, ->23
          3    >   INIT_FCALL_BY_NAME                                       'get_magic_quotes_gpc'
          4        DO_FCALL                                      0  $2      
          5      > JMPZ                                                     $2, ->16
          6    >   INIT_FCALL_BY_NAME                                       'eval_php'
          7        INIT_FCALL                                               'stripslashes'
          8        FETCH_R                      global              ~3      '_POST'
          9        FETCH_DIM_R                                      ~4      ~3, 'content'
         10        SEND_VAL                                                 ~4
         11        DO_ICALL                                         $5      
         12        SEND_VAR_NO_REF_EX                                       $5
         13        DO_FCALL                                      0  $6      
         14        ECHO                                                     $6
         15      > JMP                                                      ->23
         16    >   INIT_FCALL_BY_NAME                                       'eval_php'
         17        CHECK_FUNC_ARG                                           
         18        FETCH_FUNC_ARG               global              $7      '_POST'
         19        FETCH_DIM_FUNC_ARG                               $8      $7, 'content'
         20        SEND_FUNC_ARG                                            $8
         21        DO_FCALL                                      0  $9      
         22        ECHO                                                     $9
         23    > > RETURN                                                   1

Function eval_php:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SFgka
function name:  eval_php
number of ops:  14
compiled vars:  !0 = $content, !1 = $output
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
          0  E >   RECV                                             !0      
          1        INIT_FCALL                                               'ob_start'
          2        DO_ICALL                                                 
          3        ROPE_INIT                                     3  ~4      '%3F%3E'
          4        ROPE_ADD                                      1  ~4      ~4, !0
          5        ROPE_END                                      2  ~3      ~4, '%3C%3Fphp+'
          6        INCLUDE_OR_EVAL                                          ~3, EVAL
          7        INIT_FCALL                                               'ob_get_contents'
          8        DO_ICALL                                         $7      
          9        ASSIGN                                                   !1, $7
         10        INIT_FCALL                                               'ob_end_clean'
         11        DO_ICALL                                                 
         12      > RETURN                                                   !1
         13*     > RETURN                                                   null

End of function eval_php

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.49 ms | 1392 KiB | 24 Q