3v4l.org

run code in 300+ PHP versions simultaneously
<?php phpversion() >= "7.0.0beta1" or die(); try { echo intdiv(2,0); } catch (Error $e){ echo $e->getMessage(),"\n"; } try { echo 2 % 0; } catch (Error $e){ echo $e->getMessage(); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 4, Position 2 = 6
Branch analysis from position: 4
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 12
Branch analysis from position: 12
2 jumps found. (Code = 107) Position 1 = 13, Position 2 = -2
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
Found catch point at position: 20
Branch analysis from position: 20
2 jumps found. (Code = 107) Position 1 = 21, Position 2 = -2
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RmnQQ
function name:  (null)
number of ops:  25
compiled vars:  !0 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'phpversion'
          1        DO_ICALL                                         $1      
          2        IS_SMALLER_OR_EQUAL                              ~2      '7.0.0beta1', $1
          3      > JMPNZ_EX                                         ~2      ~2, ->6
          4    > > EXIT                                                     
          5*       BOOL                                             ~2      <true>
    5     6    >   INIT_FCALL                                               'intdiv'
          7        SEND_VAL                                                 2
          8        SEND_VAL                                                 0
          9        DO_ICALL                                         $3      
         10        ECHO                                                     $3
         11      > JMP                                                      ->17
    6    12  E > > CATCH                                       last         'Error'
    7    13    >   INIT_METHOD_CALL                                         !0, 'getMessage'
         14        DO_FCALL                                      0  $4      
         15        ECHO                                                     $4
         16        ECHO                                                     '%0A'
   10    17    >   MOD                                              ~5      2, 0
         18        ECHO                                                     ~5
         19      > JMP                                                      ->24
   11    20  E > > CATCH                                       last         'Error'
   12    21    >   INIT_METHOD_CALL                                         !0, 'getMessage'
         22        DO_FCALL                                      0  $6      
         23        ECHO                                                     $6
   13    24    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.16 ms | 1396 KiB | 17 Q