3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = '1'; $a = trim($a); if(!empty($a)){ $a = '( '. $a . ' ) '; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 11
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
filename:       /in/rYT7m
function name:  (null)
number of ops:  12
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '1'
    3     1        INIT_FCALL                                               'trim'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $2      
          4        ASSIGN                                                   !0, $2
    4     5        ISSET_ISEMPTY_CV                                 ~4      !0
          6        BOOL_NOT                                         ~5      ~4
          7      > JMPZ                                                     ~5, ->11
    5     8    >   CONCAT                                           ~6      '%28+', !0
          9        CONCAT                                           ~7      ~6, '+%29+'
         10        ASSIGN                                                   !0, ~7
    6    11    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.39 ms | 1394 KiB | 15 Q