3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(trim(''), trim(null), trim(false), trim(true), trim(0));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/oVfrK
function name:  (null)
number of ops:  23
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'trim'
          2        SEND_VAL                                                 ''
          3        DO_ICALL                                         $0      
          4        SEND_VAR                                                 $0
          5        INIT_FCALL                                               'trim'
          6        SEND_VAL                                                 null
          7        DO_ICALL                                         $1      
          8        SEND_VAR                                                 $1
          9        INIT_FCALL                                               'trim'
         10        SEND_VAL                                                 <false>
         11        DO_ICALL                                         $2      
         12        SEND_VAR                                                 $2
         13        INIT_FCALL                                               'trim'
         14        SEND_VAL                                                 <true>
         15        DO_ICALL                                         $3      
         16        SEND_VAR                                                 $3
         17        INIT_FCALL                                               'trim'
         18        SEND_VAL                                                 0
         19        DO_ICALL                                         $4      
         20        SEND_VAR                                                 $4
         21        DO_ICALL                                                 
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.49 ms | 1395 KiB | 17 Q