3v4l.org

run code in 300+ PHP versions simultaneously
<?php bcscale(1); var_dump(bcmod('4', '3.5')); var_dump(fmod('4', '3.5')); var_dump('4'%'3.5');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Bi8sU
function name:  (null)
number of ops:  21
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL_BY_NAME                                       'bcscale'
          1        SEND_VAL_EX                                              1
          2        DO_FCALL                                      0          
    4     3        INIT_FCALL                                               'var_dump'
          4        INIT_FCALL_BY_NAME                                       'bcmod'
          5        SEND_VAL_EX                                              '4'
          6        SEND_VAL_EX                                              '3.5'
          7        DO_FCALL                                      0  $1      
          8        SEND_VAR                                                 $1
          9        DO_ICALL                                                 
    5    10        INIT_FCALL                                               'var_dump'
         11        INIT_FCALL                                               'fmod'
         12        SEND_VAL                                                 '4'
         13        SEND_VAL                                                 '3.5'
         14        DO_ICALL                                         $3      
         15        SEND_VAR                                                 $3
         16        DO_ICALL                                                 
    6    17        INIT_FCALL                                               'var_dump'
         18        SEND_VAL                                                 1
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.57 ms | 1395 KiB | 17 Q