3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
217.21 ms | 1394 KiB | 15 Q