3v4l.org

run code in 300+ PHP versions simultaneously
<?php $Number = "11.34"; $Rounded = round($Number); $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
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 12
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1Mmnr
function name:  (null)
number of ops:  23
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        DIV                                              ~7      !1, 2
          6        ASSIGN                                                   !2, ~7
    5     7        TYPE_CHECK                                   16          !2
          8      > JMPZ                                                     ~9, ->12
          9    >   ASSIGN                                           ~10     !3, 'is+even'
         10        QM_ASSIGN                                        ~11     ~10
         11      > JMP                                                      ->14
         12    >   ASSIGN                                           ~12     !3, 'is+not+even'
         13        QM_ASSIGN                                        ~11     ~12
         14    >   FREE                                                     ~11
    6    15        CONCAT                                           ~13     !1, '+divided+by+2+equals+'
         16        CONCAT                                           ~14     ~13, !2
         17        CONCAT                                           ~15     ~14, '+therefore+'
         18        CONCAT                                           ~16     ~15, !0
         19        CONCAT                                           ~17     ~16, '+'
         20        CONCAT                                           ~18     ~17, !3
         21        ECHO                                                     ~18
    7    22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
289.68 ms | 1395 KiB | 16 Q