3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.53 ms | 1394 KiB | 15 Q