3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = round(4.9); // 5 $b = int(4.9); // 5 echo $a; echo $b;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Bk1Ni
function name:  (null)
number of ops:  11
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'round'
          1        SEND_VAL                                                 4.9
          2        DO_ICALL                                         $2      
          3        ASSIGN                                                   !0, $2
    3     4        INIT_FCALL_BY_NAME                                       'int'
          5        SEND_VAL_EX                                              4.9
          6        DO_FCALL                                      0  $4      
          7        ASSIGN                                                   !1, $4
    5     8        ECHO                                                     !0
    6     9        ECHO                                                     !1
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.96 ms | 1393 KiB | 15 Q