3v4l.org

run code in 300+ PHP versions simultaneously
<?php $num = 15.0; $res = fmod($num, 2.5); echo ($res == 0) ? 'Success!' : 'Fail!';
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 10
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/t8JQQ
function name:  (null)
number of ops:  13
compiled vars:  !0 = $num, !1 = $res
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 15
    3     1        INIT_FCALL                                               'fmod'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 2.5
          4        DO_ICALL                                         $3      
          5        ASSIGN                                                   !1, $3
    4     6        IS_EQUAL                                                 !1, 0
          7      > JMPZ                                                     ~5, ->10
          8    >   QM_ASSIGN                                        ~6      'Success%21'
          9      > JMP                                                      ->11
         10    >   QM_ASSIGN                                        ~6      'Fail%21'
         11    >   ECHO                                                     ~6
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.52 ms | 1385 KiB | 15 Q