3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.23 ms | 1394 KiB | 15 Q