3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.83 ms | 1396 KiB | 17 Q