3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump( substr('abc', 3, 0) , substr('abc', 2, 0) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bLL6Z
function name:  (null)
number of ops:  15
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'var_dump'
    3     1        INIT_FCALL                                               'substr'
          2        SEND_VAL                                                 'abc'
          3        SEND_VAL                                                 3
          4        SEND_VAL                                                 0
          5        DO_ICALL                                         $0      
          6        SEND_VAR                                                 $0
    4     7        INIT_FCALL                                               'substr'
          8        SEND_VAL                                                 'abc'
          9        SEND_VAL                                                 2
         10        SEND_VAL                                                 0
         11        DO_ICALL                                         $1      
         12        SEND_VAR                                                 $1
         13        DO_ICALL                                                 
    5    14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.9 ms | 1394 KiB | 17 Q