3v4l.org

run code in 300+ PHP versions simultaneously
<?php $i = -0.1; var_dump(round($i)); var_dump(max(round($i), +0.1)); var_dump(max(-0, +0));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9OH2U
function name:  (null)
number of ops:  25
compiled vars:  !0 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, -0.1
    3     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'round'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $2      
          5        SEND_VAR                                                 $2
          6        DO_ICALL                                                 
    4     7        INIT_FCALL                                               'var_dump'
          8        INIT_FCALL                                               'max'
          9        INIT_FCALL                                               'round'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $4      
         12        SEND_VAR                                                 $4
         13        SEND_VAL                                                 0.1
         14        DO_ICALL                                         $5      
         15        SEND_VAR                                                 $5
         16        DO_ICALL                                                 
    5    17        INIT_FCALL                                               'var_dump'
         18        INIT_FCALL                                               'max'
         19        SEND_VAL                                                 0
         20        SEND_VAL                                                 0
         21        DO_ICALL                                         $7      
         22        SEND_VAR                                                 $7
         23        DO_ICALL                                                 
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.87 ms | 1395 KiB | 19 Q