3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { if(PHP_MAJOR_VERSION<7) throw new Exception('PHP 7 or greater required!'); } catch(Exception $e) { echo $e->getMessage(); exit(); } echo "Hi!";
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 1, Position 2 = 5
Branch analysis from position: 1
1 jumps found. (Code = 108) Position 1 = -2
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 6
Branch analysis from position: 6
2 jumps found. (Code = 107) Position 1 = 7, Position 2 = -2
Branch analysis from position: 7
1 jumps found. (Code = 79) Position 1 = -2
filename:       /in/lTBvL
function name:  (null)
number of ops:  13
compiled vars:  !0 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E > > JMPZ                                                     <false>, ->5
          1    >   NEW                                              $1      'Exception'
          2        SEND_VAL_EX                                              'PHP+7+or+greater+required%21'
          3        DO_FCALL                                      0          
          4      > THROW                                         0          $1
          5    > > JMP                                                      ->11
    7     6  E > > CATCH                                       last         'Exception'
    9     7    >   INIT_METHOD_CALL                                         !0, 'getMessage'
          8        DO_FCALL                                      0  $3      
          9        ECHO                                                     $3
   10    10      > EXIT                                                     
   13    11    >   ECHO                                                     'Hi%21'
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.29 ms | 1393 KiB | 13 Q