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 = 9, Position 2 = 16
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/pJDoV
function name:  (null)
number of ops:  18
compiled vars:  !0 = $chemin
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'tmp%2Fexport_xlsx'
    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      > JMPZ                                                     $4, ->16
    6     9    >   INIT_FCALL                                               'substr'
         10        SEND_VAR                                                 !0
         11        SEND_VAL                                                 0
         12        SUB                                              ~5      !0, 1
         13        SEND_VAL                                                 ~5
         14        DO_ICALL                                         $6      
         15        ASSIGN                                                   !0, $6
    9    16    >   ECHO                                                     !0
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.59 ms | 1394 KiB | 15 Q