3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo floor (-123.45) .' '. (-12345 % 100); var_dump(sprintf('%.2f', -123.456)); var_dump(sprintf('%.2f', 123.456));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1oljS
function name:  (null)
number of ops:  21
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'floor'
          1        SEND_VAL                                                 -123.45
          2        DO_ICALL                                         $0      
          3        CONCAT                                           ~1      $0, '+'
          4        CONCAT                                           ~2      ~1, '-45'
          5        ECHO                                                     ~2
    3     6        INIT_FCALL                                               'var_dump'
          7        INIT_FCALL                                               'sprintf'
          8        SEND_VAL                                                 '%25.2f'
          9        SEND_VAL                                                 -123.456
         10        DO_ICALL                                         $3      
         11        SEND_VAR                                                 $3
         12        DO_ICALL                                                 
    4    13        INIT_FCALL                                               'var_dump'
         14        INIT_FCALL                                               'sprintf'
         15        SEND_VAL                                                 '%25.2f'
         16        SEND_VAL                                                 123.456
         17        DO_ICALL                                         $5      
         18        SEND_VAR                                                 $5
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.55 ms | 1395 KiB | 19 Q