3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(trim(' é ', null)); var_dump(trim(' é ', false)); var_dump(trim(' é ', 0)); var_dump(trim(' é ', '')); var_dump(trim('0é0', null)); var_dump(trim('0é0', false)); var_dump(trim('0é0', 0)); var_dump(trim('0é0', ''));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GcnsF
function name:  (null)
number of ops:  57
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'trim'
          2        SEND_VAL                                                 '+%C3%A9+'
          3        SEND_VAL                                                 null
          4        DO_ICALL                                         $0      
          5        SEND_VAR                                                 $0
          6        DO_ICALL                                                 
    3     7        INIT_FCALL                                               'var_dump'
          8        INIT_FCALL                                               'trim'
          9        SEND_VAL                                                 '+%C3%A9+'
         10        SEND_VAL                                                 <false>
         11        DO_ICALL                                         $2      
         12        SEND_VAR                                                 $2
         13        DO_ICALL                                                 
    4    14        INIT_FCALL                                               'var_dump'
         15        INIT_FCALL                                               'trim'
         16        SEND_VAL                                                 '+%C3%A9+'
         17        SEND_VAL                                                 0
         18        DO_ICALL                                         $4      
         19        SEND_VAR                                                 $4
         20        DO_ICALL                                                 
    5    21        INIT_FCALL                                               'var_dump'
         22        INIT_FCALL                                               'trim'
         23        SEND_VAL                                                 '+%C3%A9+'
         24        SEND_VAL                                                 ''
         25        DO_ICALL                                         $6      
         26        SEND_VAR                                                 $6
         27        DO_ICALL                                                 
    6    28        INIT_FCALL                                               'var_dump'
         29        INIT_FCALL                                               'trim'
         30        SEND_VAL                                                 '0%C3%A90'
         31        SEND_VAL                                                 null
         32        DO_ICALL                                         $8      
         33        SEND_VAR                                                 $8
         34        DO_ICALL                                                 
    7    35        INIT_FCALL                                               'var_dump'
         36        INIT_FCALL                                               'trim'
         37        SEND_VAL                                                 '0%C3%A90'
         38        SEND_VAL                                                 <false>
         39        DO_ICALL                                         $10     
         40        SEND_VAR                                                 $10
         41        DO_ICALL                                                 
    8    42        INIT_FCALL                                               'var_dump'
         43        INIT_FCALL                                               'trim'
         44        SEND_VAL                                                 '0%C3%A90'
         45        SEND_VAL                                                 0
         46        DO_ICALL                                         $12     
         47        SEND_VAR                                                 $12
         48        DO_ICALL                                                 
    9    49        INIT_FCALL                                               'var_dump'
         50        INIT_FCALL                                               'trim'
         51        SEND_VAL                                                 '0%C3%A90'
         52        SEND_VAL                                                 ''
         53        DO_ICALL                                         $14     
         54        SEND_VAR                                                 $14
         55        DO_ICALL                                                 
         56      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.42 ms | 1400 KiB | 17 Q