3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo substr("AAAAB", 0, -2);
based on Dji3s
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/UOgXL
function name:  (null)
number of ops:  7
compiled vars:  none
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   2     0  E >   INIT_FCALL                                               'substr'
         1        SEND_VAL                                                 'AAAAB'
         2        SEND_VAL                                                 0
         3        SEND_VAL                                                 -2
         4        DO_ICALL                                         $0      
         5        ECHO                                                     $0
         6      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.2.0