3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(substr_compare('abcd', 'bcd', 1, null, false)); var_dump(substr_compare('abcd', 'bcd', 1)); var_dump(substr_compare('abcd', 'BCD', 1, null, true)); var_dump(substr_compare('abcd', 'BCD', 1, 3, true));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/F1WQG
function name:  (null)
number of ops:  39
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'substr_compare'
          2        SEND_VAL                                                 'abcd'
          3        SEND_VAL                                                 'bcd'
          4        SEND_VAL                                                 1
          5        SEND_VAL                                                 null
          6        SEND_VAL                                                 <false>
          7        DO_ICALL                                         $0      
          8        SEND_VAR                                                 $0
          9        DO_ICALL                                                 
    3    10        INIT_FCALL                                               'var_dump'
         11        INIT_FCALL                                               'substr_compare'
         12        SEND_VAL                                                 'abcd'
         13        SEND_VAL                                                 'bcd'
         14        SEND_VAL                                                 1
         15        DO_ICALL                                         $2      
         16        SEND_VAR                                                 $2
         17        DO_ICALL                                                 
    5    18        INIT_FCALL                                               'var_dump'
         19        INIT_FCALL                                               'substr_compare'
         20        SEND_VAL                                                 'abcd'
         21        SEND_VAL                                                 'BCD'
         22        SEND_VAL                                                 1
         23        SEND_VAL                                                 null
         24        SEND_VAL                                                 <true>
         25        DO_ICALL                                         $4      
         26        SEND_VAR                                                 $4
         27        DO_ICALL                                                 
    6    28        INIT_FCALL                                               'var_dump'
         29        INIT_FCALL                                               'substr_compare'
         30        SEND_VAL                                                 'abcd'
         31        SEND_VAL                                                 'BCD'
         32        SEND_VAL                                                 1
         33        SEND_VAL                                                 3
         34        SEND_VAL                                                 <true>
         35        DO_ICALL                                         $6      
         36        SEND_VAR                                                 $6
         37        DO_ICALL                                                 
         38      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.79 ms | 1396 KiB | 17 Q