3v4l.org

run code in 300+ PHP versions simultaneously
<?php $Number = "11.34"; $Rounded = round($Number); var_dump($Rounded); exit; $Result =($Rounded/2); is_int ($Result) ? $Solution = "is even" : $Solution = "is not even"; echo $Rounded . " divided by 2 equals " . $Result . " therefore " . $Number ." " . $Solution; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 79) Position 1 = -2
filename:       /in/pfaeg
function name:  (null)
number of ops:  27
compiled vars:  !0 = $Number, !1 = $Rounded, !2 = $Result, !3 = $Solution
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '11.34'
    3     1        INIT_FCALL                                               'round'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $5      
          4        ASSIGN                                                   !1, $5
    4     5        INIT_FCALL                                               'var_dump'
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                                 
          8      > EXIT                                                     
    5     9*       DIV                                              ~8      !1, 2
         10*       ASSIGN                                                   !2, ~8
    6    11*       TYPE_CHECK                                   16          !2
         12*       JMPZ                                                     ~10, ->16
         13*       ASSIGN                                           ~11     !3, 'is+even'
         14*       QM_ASSIGN                                        ~12     ~11
         15*       JMP                                                      ->18
         16*       ASSIGN                                           ~13     !3, 'is+not+even'
         17*       QM_ASSIGN                                        ~12     ~13
         18*       FREE                                                     ~12
    7    19*       CONCAT                                           ~14     !1, '+divided+by+2+equals+'
         20*       CONCAT                                           ~15     ~14, !2
         21*       CONCAT                                           ~16     ~15, '+therefore+'
         22*       CONCAT                                           ~17     ~16, !0
         23*       CONCAT                                           ~18     ~17, '+'
         24*       CONCAT                                           ~19     ~18, !3
         25*       ECHO                                                     ~19
    8    26*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.56 ms | 1395 KiB | 17 Q