3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "thin"; echo chop("thin", '-webfont') . PHP_EOL; echo chop("hairline", '-webfont'). PHP_EOL;
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 >   ASSIGN                                                   !0, 'thin'
    5     1        INIT_FCALL                                               'chop'
          2        SEND_VAL                                                 'thin'
          3        SEND_VAL                                                 '-webfont'
          4        DO_ICALL                                         $2      
          5        CONCAT                                           ~3      $2, '%0A'
          6        ECHO                                                     ~3
    6     7        INIT_FCALL                                               'chop'
          8        SEND_VAL                                                 'hairline'
          9        SEND_VAL                                                 '-webfont'
         10        DO_ICALL                                         $4      
         11        CONCAT                                           ~5      $4, '%0A'
         12        ECHO                                                     ~5
    7    13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.04 ms | 1394 KiB | 15 Q