3v4l.org

run code in 300+ PHP versions simultaneously
<?php $v1 = ord(' ') - ord('B'); $v2 = strcmp(' ', 'B'); if($v1 === $v2) { echo 'True'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 9
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
filename:       /in/4NVld
function name:  (null)
number of ops:  10
compiled vars:  !0 = $v1, !1 = $v2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, -34
    4     1        INIT_FCALL                                               'strcmp'
          2        SEND_VAL                                                 '+'
          3        SEND_VAL                                                 'B'
          4        DO_ICALL                                         $3      
          5        ASSIGN                                                   !1, $3
    7     6        IS_IDENTICAL                                             !0, !1
          7      > JMPZ                                                     ~5, ->9
    8     8    >   ECHO                                                     'True'
    9     9    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.48 ms | 1394 KiB | 15 Q