3v4l.org

run code in 500+ PHP versions simultaneously
<?php $string = 'aaaba'; var_export( !strlen(trim($string, $string[0])) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4JWLm
function name:  (null)
number of ops:  9
compiled vars:  !0 = $string
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 'aaaba'
    4     1        INIT_FCALL                                                   'var_export'
    5     2        FETCH_DIM_R                                          ~2      !0, 0
          3        FRAMELESS_ICALL_2                trim                ~3      !0, ~2
          4        STRLEN                                               ~4      ~3
          5        BOOL_NOT                                             ~5      ~4
          6        SEND_VAL                                                     ~5
    4     7        DO_ICALL                                                     
    6     8      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
157.37 ms | 1985 KiB | 14 Q