3v4l.org

run code in 300+ 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:  12
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        INIT_FCALL                                               'trim'
          3        SEND_VAR                                                 !0
          4        FETCH_DIM_R                                      ~2      !0, 0
          5        SEND_VAL                                                 ~2
          6        DO_ICALL                                         $3      
          7        STRLEN                                           ~4      $3
          8        BOOL_NOT                                         ~5      ~4
          9        SEND_VAL                                                 ~5
    4    10        DO_ICALL                                                 
    6    11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.13 ms | 1010 KiB | 15 Q