3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.23 ms | 1396 KiB | 15 Q