3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo sprintf("%02s", 54.51555 * 100 % 100); echo "\n"; echo sprintf("%02s", 54.41444 * 100 % 100); echo "\n"; echo sprintf("%02s", intval(54.51444 * 100) % 100); echo "\n"; echo sprintf("%02s", intval(54.41444 * 100) % 100);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OK980
function name:  (null)
number of ops:  28
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'sprintf'
          1        SEND_VAL                                                 '%2502s'
          2        SEND_VAL                                                 51
          3        DO_ICALL                                         $0      
          4        ECHO                                                     $0
    3     5        ECHO                                                     '%0A'
    4     6        INIT_FCALL                                               'sprintf'
          7        SEND_VAL                                                 '%2502s'
          8        SEND_VAL                                                 41
          9        DO_ICALL                                         $1      
         10        ECHO                                                     $1
    5    11        ECHO                                                     '%0A'
    6    12        INIT_FCALL                                               'sprintf'
         13        SEND_VAL                                                 '%2502s'
         14        CAST                                          4  ~2      5451.44
         15        MOD                                              ~3      ~2, 100
         16        SEND_VAL                                                 ~3
         17        DO_ICALL                                         $4      
         18        ECHO                                                     $4
    7    19        ECHO                                                     '%0A'
    8    20        INIT_FCALL                                               'sprintf'
         21        SEND_VAL                                                 '%2502s'
         22        CAST                                          4  ~5      5441.44
         23        MOD                                              ~6      ~5, 100
         24        SEND_VAL                                                 ~6
         25        DO_ICALL                                         $7      
         26        ECHO                                                     $7
         27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.74 ms | 1400 KiB | 15 Q