3v4l.org

run code in 300+ PHP versions simultaneously
<?php $i = -0.1; var_dump(+0.0); var_dump(round($i)); var_dump(max(round($i), +0.)); var_dump(max(-0, +0));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bF7mH
function name:  (null)
number of ops:  28
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        SEND_VAL                                                 0
          3        DO_ICALL                                                 
    4     4        INIT_FCALL                                               'var_dump'
          5        INIT_FCALL                                               'round'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $3      
          8        SEND_VAR                                                 $3
          9        DO_ICALL                                                 
    5    10        INIT_FCALL                                               'var_dump'
         11        INIT_FCALL                                               'max'
         12        INIT_FCALL                                               'round'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                         $5      
         15        SEND_VAR                                                 $5
         16        SEND_VAL                                                 0
         17        DO_ICALL                                         $6      
         18        SEND_VAR                                                 $6
         19        DO_ICALL                                                 
    6    20        INIT_FCALL                                               'var_dump'
         21        INIT_FCALL                                               'max'
         22        SEND_VAL                                                 0
         23        SEND_VAL                                                 0
         24        DO_ICALL                                         $8      
         25        SEND_VAR                                                 $8
         26        DO_ICALL                                                 
         27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.99 ms | 1395 KiB | 19 Q