3v4l.org

run code in 300+ PHP versions simultaneously
<?php $element = new DOMText(" Summary for Test DOMText & with a nbsp char right here&nbsp;."); var_dump($element->textContent); $element->textContent = ltrim(" Summary for Test DOMText & with a nbsp char right here&nbsp;."); var_dump($element->textContent);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lbeVg
function name:  (null)
number of ops:  18
compiled vars:  !0 = $element
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $1      'DOMText'
          1        SEND_VAL_EX                                              '++Summary+for+Test+DOMText+%26+with+a+nbsp+char+right+here%26nbsp%3B.'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
    4     4        INIT_FCALL                                               'var_dump'
          5        FETCH_OBJ_R                                      ~4      !0, 'textContent'
          6        SEND_VAL                                                 ~4
          7        DO_ICALL                                                 
    5     8        INIT_FCALL                                               'ltrim'
          9        SEND_VAL                                                 '++Summary+for+Test+DOMText+%26+with+a+nbsp+char+right+here%26nbsp%3B.'
         10        DO_ICALL                                         $7      
         11        ASSIGN_OBJ                                               !0, 'textContent'
         12        OP_DATA                                                  $7
    6    13        INIT_FCALL                                               'var_dump'
         14        FETCH_OBJ_R                                      ~8      !0, 'textContent'
         15        SEND_VAL                                                 ~8
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.17 ms | 1394 KiB | 17 Q