3v4l.org

run code in 300+ PHP versions simultaneously
<?php $v1 = 5; $v2 = '5-4'; echo (strcmp($v1,$v2) === 0 ? 'they are the same' : 'they aren\'t the same'); echo "\n"; echo ((string) $v1 == (string) $v2 ? 'they are the same' : 'they aren\'t the same'); echo "\n"; echo ($v1 === $v2 ? 'they are the same' : 'they aren\'t the same');
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 10
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 19
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
2 jumps found. (Code = 43) Position 1 = 24, Position 2 = 26
Branch analysis from position: 24
1 jumps found. (Code = 42) Position 1 = 27
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
2 jumps found. (Code = 43) Position 1 = 24, Position 2 = 26
Branch analysis from position: 24
Branch analysis from position: 26
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 19
Branch analysis from position: 17
Branch analysis from position: 19
filename:       /in/L3WXU
function name:  (null)
number of ops:  29
compiled vars:  !0 = $v1, !1 = $v2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 5
    3     1        ASSIGN                                                   !1, '5-4'
    5     2        INIT_FCALL                                               'strcmp'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                         $4      
          6        IS_IDENTICAL                                             $4, 0
          7      > JMPZ                                                     ~5, ->10
          8    >   QM_ASSIGN                                        ~6      'they+are+the+same'
          9      > JMP                                                      ->11
         10    >   QM_ASSIGN                                        ~6      'they+aren%27t+the+same'
         11    >   ECHO                                                     ~6
    6    12        ECHO                                                     '%0A'
    7    13        CAST                                          6  ~7      !0
         14        CAST                                          6  ~8      !1
         15        IS_EQUAL                                                 ~7, ~8
         16      > JMPZ                                                     ~9, ->19
         17    >   QM_ASSIGN                                        ~10     'they+are+the+same'
         18      > JMP                                                      ->20
         19    >   QM_ASSIGN                                        ~10     'they+aren%27t+the+same'
         20    >   ECHO                                                     ~10
    8    21        ECHO                                                     '%0A'
    9    22        IS_IDENTICAL                                             !0, !1
         23      > JMPZ                                                     ~11, ->26
         24    >   QM_ASSIGN                                        ~12     'they+are+the+same'
         25      > JMP                                                      ->27
         26    >   QM_ASSIGN                                        ~12     'they+aren%27t+the+same'
         27    >   ECHO                                                     ~12
         28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.8 ms | 1401 KiB | 15 Q