3v4l.org

run code in 300+ PHP versions simultaneously
<?php $p = "PHP"; $P = "php"; echo ($p < $P) + 2 * ($p > $P) + 3 * ($p == $P);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EEdnD
function name:  (null)
number of ops:  11
compiled vars:  !0 = $p, !1 = $P
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'PHP'
          1        ASSIGN                                                   !1, 'php'
          2        IS_SMALLER                                       ~4      !0, !1
          3        IS_SMALLER                                       ~5      !1, !0
          4        MUL                                              ~6      ~5, 2
          5        ADD                                              ~7      ~4, ~6
          6        IS_EQUAL                                         ~8      !0, !1
          7        MUL                                              ~9      ~8, 3
          8        ADD                                              ~10     ~7, ~9
          9        ECHO                                                     ~10
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.68 ms | 1393 KiB | 13 Q