3v4l.org

run code in 200+ PHP versions simultaneously
<?php $str = "thin"; echo chop("thin", '-webfont') . PHP_EOL; echo chop("hairline", '-webfont'). PHP_EOL;
based on akN5v
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uHdZA
function name:  (null)
number of ops:  14
compiled vars:  !0 = $str
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   QM_ASSIGN                                                !0
   5     1        INIT_FCALL                                               'chop'
         2        SEND_VAL                                                 'thin'
         3        SEND_VAL                                                 '-webfont'
         4        DO_ICALL                                         $2      
         5        CONCAT                                           ~3      $2, '%0A'
         6        ASSIGN_OBJ                                               ~3
   6     7        INIT_FCALL                                               'chop'
         8        SEND_VAL                                                 'hairline'
         9        SEND_VAL                                                 '-webfont'
        10        DO_ICALL                                         $4      
        11        CONCAT                                           ~5      $4, '%0A'
        12        ASSIGN_OBJ                                               ~5
   7    13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.4.0