3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo (-9%5)."\n"; echo fmod(-9, 5); echo bcmod('-9', '5');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ElOGD
function name:  (null)
number of ops:  12
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ECHO                                                     '-4%0A'
    4     1        INIT_FCALL                                               'fmod'
          2        SEND_VAL                                                 -9
          3        SEND_VAL                                                 5
          4        DO_ICALL                                         $0      
          5        ECHO                                                     $0
    5     6        INIT_FCALL_BY_NAME                                       'bcmod'
          7        SEND_VAL_EX                                              '-9'
          8        SEND_VAL_EX                                              '5'
          9        DO_FCALL                                      0  $1      
         10        ECHO                                                     $1
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.99 ms | 1385 KiB | 18 Q