3v4l.org

run code in 500+ PHP versions simultaneously
<?php $localPath = ''; var_dump($localPath[0] !== '/'); var_dump(substr($localPath, 0, 1) !== '/');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Ag0Xtr
function name:  (null)
number of ops:  13
compiled vars:  !0 = $localPath
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                       !0, ''
    3     1        INIT_FCALL                                                   'var_dump'
          2        FETCH_DIM_R                                          ~2      !0, 0
          3        IS_NOT_IDENTICAL                                     ~3      ~2, '%2F'
          4        SEND_VAL                                                     ~3
          5        DO_ICALL                                                     
    4     6        INIT_FCALL                                                   'var_dump'
          7        FRAMELESS_ICALL_3                substr              ~5      !0, 0
          8        OP_DATA                                                      1
          9        IS_NOT_IDENTICAL                                     ~6      ~5, '%2F'
         10        SEND_VAL                                                     ~6
         11        DO_ICALL                                                     
         12      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
146.84 ms | 495 KiB | 12 Q