3v4l.org

run code in 300+ PHP versions simultaneously
<?php $num = "48.2"; $float = (float)$num; echo ceil($float * 2) / 2;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mOhhZ
function name:  (null)
number of ops:  10
compiled vars:  !0 = $num, !1 = $float
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '48.2'
    3     1        CAST                                          5  ~3      !0
          2        ASSIGN                                                   !1, ~3
    4     3        INIT_FCALL                                               'ceil'
          4        MUL                                              ~5      !1, 2
          5        SEND_VAL                                                 ~5
          6        DO_ICALL                                         $6      
          7        DIV                                              ~7      $6, 2
          8        ECHO                                                     ~7
    5     9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.06 ms | 1404 KiB | 15 Q