3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 10.34; $b = intVal($a * 100); $c = intVal($b); echo $a."\n"; echo $b."\n"; echo $c."\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/K6YV7
function name:  (null)
number of ops:  13
compiled vars:  !0 = $a, !1 = $b, !2 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 10.34
    4     1        MUL                                              ~4      !0, 100
          2        CAST                                          4  ~5      ~4
          3        ASSIGN                                                   !1, ~5
    5     4        CAST                                          4  ~7      !1
          5        ASSIGN                                                   !2, ~7
    6     6        CONCAT                                           ~9      !0, '%0A'
          7        ECHO                                                     ~9
    7     8        CONCAT                                           ~10     !1, '%0A'
          9        ECHO                                                     ~10
    8    10        CONCAT                                           ~11     !2, '%0A'
         11        ECHO                                                     ~11
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.27 ms | 1392 KiB | 13 Q