3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 123.45; $b = 'a'; $ans = floatval($a) / floatval($b); var_dump((int)trim($b)); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/O9P01
function name:  (null)
number of ops:  14
compiled vars:  !0 = $a, !1 = $b, !2 = $ans
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, 123.45
    5     1        ASSIGN                                                   !1, 'a'
    7     2        CAST                                          5  ~5      !0
          3        CAST                                          5  ~6      !1
          4        DIV                                              ~7      ~5, ~6
          5        ASSIGN                                                   !2, ~7
    8     6        INIT_FCALL                                               'var_dump'
          7        INIT_FCALL                                               'trim'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                         $9      
         10        CAST                                          4  ~10     $9
         11        SEND_VAL                                                 ~10
         12        DO_ICALL                                                 
   15    13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.48 ms | 1394 KiB | 17 Q