3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.34 ms | 940 KiB | 16 Q