3v4l.org

run code in 300+ PHP versions simultaneously
<?php $chemin ='tmp/export_xlsx/'; if (substr($chemin, strlen($chemin) - 1, 1) == '/') { $chemin = substr($chemin, 0, $chemin - 1); } echo $chemin;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 17
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
filename:       /in/LpM9M
function name:  (null)
number of ops:  19
compiled vars:  !0 = $chemin
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'tmp%2Fexport_xlsx%2F'
    5     1        INIT_FCALL                                               'substr'
          2        SEND_VAR                                                 !0
          3        STRLEN                                           ~2      !0
          4        SUB                                              ~3      ~2, 1
          5        SEND_VAL                                                 ~3
          6        SEND_VAL                                                 1
          7        DO_ICALL                                         $4      
          8        IS_EQUAL                                                 $4, '%2F'
          9      > JMPZ                                                     ~5, ->17
    6    10    >   INIT_FCALL                                               'substr'
         11        SEND_VAR                                                 !0
         12        SEND_VAL                                                 0
         13        SUB                                              ~6      !0, 1
         14        SEND_VAL                                                 ~6
         15        DO_ICALL                                         $7      
         16        ASSIGN                                                   !0, $7
    9    17    >   ECHO                                                     !0
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
178.88 ms | 1395 KiB | 15 Q