3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pending = 1; $approved = 2; $rejected = 4; if ($pending > 0) { $pending = '<span style="color:#f66;">' . $pending . '</span>'; } $total = $pending + $approved + $rejected; echo $total; // 6
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 8
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
filename:       /in/VRuOc
function name:  (null)
number of ops:  13
compiled vars:  !0 = $pending, !1 = $approved, !2 = $rejected, !3 = $total
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 1
    3     1        ASSIGN                                                   !1, 2
    4     2        ASSIGN                                                   !2, 4
    6     3        IS_SMALLER                                               0, !0
          4      > JMPZ                                                     ~7, ->8
    7     5    >   CONCAT                                           ~8      '%3Cspan+style%3D%22color%3A%23f66%3B%22%3E', !0
          6        CONCAT                                           ~9      ~8, '%3C%2Fspan%3E'
          7        ASSIGN                                                   !0, ~9
   10     8    >   ADD                                              ~11     !0, !1
          9        ADD                                              ~12     ~11, !2
         10        ASSIGN                                                   !3, ~12
   12    11        ECHO                                                     !3
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.96 ms | 1393 KiB | 13 Q