3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str1 = "apple"; $str2 = "pal"; $str3 = "pole"; var_export(!strlen(trim($str2, $str1))); echo "\n---\n"; var_export(!strlen(trim($str3, $str1)));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IVlI3
function name:  (null)
number of ops:  23
compiled vars:  !0 = $str1, !1 = $str2, !2 = $str3
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'apple'
    4     1        ASSIGN                                                   !1, 'pal'
    5     2        ASSIGN                                                   !2, 'pole'
    6     3        INIT_FCALL                                               'var_export'
          4        INIT_FCALL                                               'trim'
          5        SEND_VAR                                                 !1
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $6      
          8        STRLEN                                           ~7      $6
          9        BOOL_NOT                                         ~8      ~7
         10        SEND_VAL                                                 ~8
         11        DO_ICALL                                                 
    7    12        ECHO                                                     '%0A---%0A'
    8    13        INIT_FCALL                                               'var_export'
         14        INIT_FCALL                                               'trim'
         15        SEND_VAR                                                 !2
         16        SEND_VAR                                                 !0
         17        DO_ICALL                                         $10     
         18        STRLEN                                           ~11     $10
         19        BOOL_NOT                                         ~12     ~11
         20        SEND_VAL                                                 ~12
         21        DO_ICALL                                                 
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.29 ms | 1011 KiB | 15 Q