3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input='46.9'; $floor=floor($input); $tens=round($input,-1); echo $floor; echo $tens; $array = array( '0a' => '0', '20a' => '0-20', '50a' => '20-50', '100a' => '50-100', '200a' => '100-200', '500a' => '200-500', ); print_r($array);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/cjkXj
function name:  (null)
number of ops:  17
compiled vars:  !0 = $input, !1 = $floor, !2 = $tens, !3 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '46.9'
    4     1        INIT_FCALL                                               'floor'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $5      
          4        ASSIGN                                                   !1, $5
    5     5        INIT_FCALL                                               'round'
          6        SEND_VAR                                                 !0
          7        SEND_VAL                                                 -1
          8        DO_ICALL                                         $7      
          9        ASSIGN                                                   !2, $7
    6    10        ECHO                                                     !1
    7    11        ECHO                                                     !2
    9    12        ASSIGN                                                   !3, <array>
   17    13        INIT_FCALL                                               'print_r'
         14        SEND_VAR                                                 !3
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.69 ms | 1386 KiB | 19 Q