3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = " landscape tiger "; echo ltrim(rtrim($string)); echo $string; $output = preg_replace('/\s+/', '%',$string); echo $output; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ficI5
function name:  (null)
number of ops:  17
compiled vars:  !0 = $string, !1 = $output
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '+++landscape+++++++++++++tiger++'
    4     1        INIT_FCALL                                               'ltrim'
          2        INIT_FCALL                                               'rtrim'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $3      
          5        SEND_VAR                                                 $3
          6        DO_ICALL                                         $4      
          7        ECHO                                                     $4
    5     8        ECHO                                                     !0
    6     9        INIT_FCALL                                               'preg_replace'
         10        SEND_VAL                                                 '%2F%5Cs%2B%2F'
         11        SEND_VAL                                                 '%25'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                         $5      
         14        ASSIGN                                                   !1, $5
    7    15        ECHO                                                     !1
    9    16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.92 ms | 1394 KiB | 19 Q