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 ($v1 == $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 = 15, Position 2 = 17
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
2 jumps found. (Code = 43) Position 1 = 22, Position 2 = 24
Branch analysis from position: 22
1 jumps found. (Code = 42) Position 1 = 25
Branch analysis from position: 25
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
2 jumps found. (Code = 43) Position 1 = 22, Position 2 = 24
Branch analysis from position: 22
Branch analysis from position: 24
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 17
Branch analysis from position: 15
Branch analysis from position: 17
filename:       /in/B6cWb
function name:  (null)
number of ops:  27
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        IS_EQUAL                                                 !0, !1
         14      > JMPZ                                                     ~7, ->17
         15    >   QM_ASSIGN                                        ~8      'they+are+the+same'
         16      > JMP                                                      ->18
         17    >   QM_ASSIGN                                        ~8      'they+aren%27t+the+same'
         18    >   ECHO                                                     ~8
    8    19        ECHO                                                     '%0A'
    9    20        IS_IDENTICAL                                             !0, !1
         21      > JMPZ                                                     ~9, ->24
         22    >   QM_ASSIGN                                        ~10     'they+are+the+same'
         23      > JMP                                                      ->25
         24    >   QM_ASSIGN                                        ~10     'they+aren%27t+the+same'
         25    >   ECHO                                                     ~10
         26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.61 ms | 1396 KiB | 15 Q