3v4l.org

run code in 300+ PHP versions simultaneously
<?php phpversion() >= "7.0.0beta1" or die(); echo INF / 0; echo intdiv(INF,0); try { echo intdiv(2,0); } catch (Error $e){ echo $e->getMessage(); } 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 = 23
Branch analysis from position: 23
1 jumps found. (Code = 42) Position 1 = 30
Branch analysis from position: 30
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 19
Branch analysis from position: 19
2 jumps found. (Code = 107) Position 1 = 20, Position 2 = -2
Branch analysis from position: 20
1 jumps found. (Code = 42) Position 1 = 30
Branch analysis from position: 30
Found catch point at position: 26
Branch analysis from position: 26
2 jumps found. (Code = 107) Position 1 = 27, Position 2 = -2
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SqVGB
function name:  (null)
number of ops:  31
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>
    4     6    >   DIV                                              ~3      INF, 0
          7        ECHO                                                     ~3
    5     8        INIT_FCALL                                               'intdiv'
          9        SEND_VAL                                                 INF
         10        SEND_VAL                                                 0
         11        DO_ICALL                                         $4      
         12        ECHO                                                     $4
    8    13        INIT_FCALL                                               'intdiv'
         14        SEND_VAL                                                 2
         15        SEND_VAL                                                 0
         16        DO_ICALL                                         $5      
         17        ECHO                                                     $5
         18      > JMP                                                      ->23
    9    19  E > > CATCH                                       last         'Error'
   10    20    >   INIT_METHOD_CALL                                         !0, 'getMessage'
         21        DO_FCALL                                      0  $6      
         22        ECHO                                                     $6
   13    23    >   MOD                                              ~7      2, 0
         24        ECHO                                                     ~7
         25      > JMP                                                      ->30
   14    26  E > > CATCH                                       last         'Error'
   15    27    >   INIT_METHOD_CALL                                         !0, 'getMessage'
         28        DO_FCALL                                      0  $8      
         29        ECHO                                                     $8
   16    30    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.5 ms | 1401 KiB | 17 Q