3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = 'c024a1e76bf52cb14cb40f4ff9181659'; $metaKey = 'subs'; $id = 2; $value = $x === md5($id . $metaKey) ? 'ok' : 'fuck'; print_r($value);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 11
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mv8bi
function name:  (null)
number of ops:  17
compiled vars:  !0 = $x, !1 = $metaKey, !2 = $id, !3 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'c024a1e76bf52cb14cb40f4ff9181659'
    5     1        ASSIGN                                                   !1, 'subs'
    6     2        ASSIGN                                                   !2, 2
    7     3        INIT_FCALL                                               'md5'
          4        CONCAT                                           ~7      !2, !1
          5        SEND_VAL                                                 ~7
          6        DO_ICALL                                         $8      
          7        IS_IDENTICAL                                             !0, $8
          8      > JMPZ                                                     ~9, ->11
          9    >   QM_ASSIGN                                        ~10     'ok'
         10      > JMP                                                      ->12
         11    >   QM_ASSIGN                                        ~10     'fuck'
         12    >   ASSIGN                                                   !3, ~10
    9    13        INIT_FCALL                                               'print_r'
         14        SEND_VAR                                                 !3
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
179.68 ms | 1395 KiB | 17 Q