3v4l.org

run code in 500+ PHP versions simultaneously
<?php echo '---begin---'; try { $result = @create_function('', 'return (return 1);'); } catch (\Exception $ex) { $result = $ex->getException(); } echo '---end---'; var_dump($result);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 9
Branch analysis from position: 9
2 jumps found. (Code = 107) Position 1 = 10, Position 2 = -2
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/apEOR
function name:  (null)
number of ops:  18
compiled vars:  !0 = $result, !1 = $ex
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ECHO                                                         '---begin---'
    5     1        BEGIN_SILENCE                                        ~2      
          2        INIT_FCALL_BY_NAME                                           'create_function'
          3        SEND_VAL_EX                                                  ''
          4        SEND_VAL_EX                                                  'return+%28return+1%29%3B'
          5        DO_FCALL                                          0  $3      
          6        END_SILENCE                                                  ~2
          7        ASSIGN                                                       !0, $3
          8      > JMP                                                          ->13
    6     9  E > > CATCH                                           last         'Exception'
    7    10    >   INIT_METHOD_CALL                                             !1, 'getException'
         11        DO_FCALL                                          0  $5      
         12        ASSIGN                                                       !0, $5
    9    13    >   ECHO                                                         '---end---'
   10    14        INIT_FCALL                                                   'var_dump'
         15        SEND_VAR                                                     !0
         16        DO_ICALL                                                     
         17      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
145.33 ms | 477 KiB | 8 Q