3v4l.org

run code in 300+ PHP versions simultaneously
<?php $block_line = (int) ceil(7/3); $totalSum = 40; if($block_line > 1){ $overLine = $block_line - 1; $totalSum = 40 - $overLine*2; } $singleSum = (int) $totalSum/2; var_dump($singleSum);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 13
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/CvdLc
function name:  (null)
number of ops:  20
compiled vars:  !0 = $block_line, !1 = $totalSum, !2 = $overLine, !3 = $singleSum
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'ceil'
          1        SEND_VAL                                                 2.33333
          2        DO_ICALL                                         $4      
          3        CAST                                          4  ~5      $4
          4        ASSIGN                                                   !0, ~5
    4     5        ASSIGN                                                   !1, 40
    5     6        IS_SMALLER                                               1, !0
          7      > JMPZ                                                     ~8, ->13
    6     8    >   SUB                                              ~9      !0, 1
          9        ASSIGN                                                   !2, ~9
    7    10        MUL                                              ~11     !2, 2
         11        SUB                                              ~12     40, ~11
         12        ASSIGN                                                   !1, ~12
    9    13    >   CAST                                          4  ~14     !1
         14        DIV                                              ~15     ~14, 2
         15        ASSIGN                                                   !3, ~15
   10    16        INIT_FCALL                                               'var_dump'
         17        SEND_VAR                                                 !3
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.74 ms | 1005 KiB | 15 Q