3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str1 = 'Hello'; $str2 = 'hello'; if ($str1 == $str2) { echo '1'; } if (strcmp($str1, $str2)) { echo '2'; } if (strcasecmp($str1, $str2)) { echo '3'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 5
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 11
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 17
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
Branch analysis from position: 11
Branch analysis from position: 5
filename:       /in/A0VeD
function name:  (null)
number of ops:  18
compiled vars:  !0 = $str1, !1 = $str2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'Hello'
    3     1        ASSIGN                                                   !1, 'hello'
    4     2        IS_EQUAL                                                 !0, !1
          3      > JMPZ                                                     ~4, ->5
    5     4    >   ECHO                                                     '1'
    7     5    >   INIT_FCALL                                               'strcmp'
          6        SEND_VAR                                                 !0
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                         $5      
          9      > JMPZ                                                     $5, ->11
    8    10    >   ECHO                                                     '2'
   10    11    >   INIT_FCALL                                               'strcasecmp'
         12        SEND_VAR                                                 !0
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                         $6      
         15      > JMPZ                                                     $6, ->17
   11    16    >   ECHO                                                     '3'
   12    17    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.12 ms | 1395 KiB | 17 Q