3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.3 ms | 1395 KiB | 17 Q