3v4l.org

run code in 500+ PHP versions simultaneously
<?php $a = hex2bin("4c65206672616ec3a7616973"); $b = hex2bin("4c65206672616e63cca7616973"); var_dump($a, $b, strpos($a, $b) === 0);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4HgUL
function name:  (null)
number of ops:  16
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'hex2bin'
          1        SEND_VAL                                                     '4c65206672616ec3a7616973'
          2        DO_ICALL                                             $2      
          3        ASSIGN                                                       !0, $2
    4     4        INIT_FCALL                                                   'hex2bin'
          5        SEND_VAL                                                     '4c65206672616e63cca7616973'
          6        DO_ICALL                                             $4      
          7        ASSIGN                                                       !1, $4
    6     8        INIT_FCALL                                                   'var_dump'
          9        SEND_VAR                                                     !0
         10        SEND_VAR                                                     !1
         11        FRAMELESS_ICALL_2                strpos              ~6      !0, !1
         12        IS_IDENTICAL                                         ~7      ~6, 0
         13        SEND_VAL                                                     ~7
         14        DO_ICALL                                                     
         15      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
233.47 ms | 3253 KiB | 15 Q