3v4l.org

run code in 500+ PHP versions simultaneously
<?php declare(strict_types=1); function my_str_starts_with(string $haystack, string $needle): bool { return true; } var_dump(str_starts_with(null, 'abc')); var_dump(my_str_starts_with(null, 'abc'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lSW22V
function name:  (null)
number of ops:  12
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   10     0  E >   INIT_FCALL                                                   'var_dump'
          1        FRAMELESS_ICALL_2                str_starts_with      ~0      null, 'abc'
          2        SEND_VAL                                                     ~0
          3        DO_ICALL                                                     
   11     4        INIT_FCALL                                                   'var_dump'
          5        INIT_FCALL                                                   'my_str_starts_with'
          6        SEND_VAL                                                     null
          7        SEND_VAL                                                     'abc'
          8        DO_FCALL                                          0  $2      
          9        SEND_VAR                                                     $2
         10        DO_ICALL                                                     
         11      > RETURN                                                       1

Function my_str_starts_with:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lSW22V
function name:  my_str_starts_with
number of ops:  5
compiled vars:  !0 = $haystack, !1 = $needle
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    5     0  E >   RECV                                                 !0      
          1        RECV                                                 !1      
    7     2      > RETURN                                                       <true>
    8     3*       VERIFY_RETURN_TYPE                                           
          4*     > RETURN                                                       null

End of function my_str_starts_with

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
163.36 ms | 2147 KiB | 15 Q