3v4l.org

run code in 500+ PHP versions simultaneously
<?php $str = 'https://testy-dlya-medsester.ru/nmo/2892-nastavnichestvo-kak-metod-adaptatsii-molodykh-spetsialistov-v-sestrinskoj-deelnosti/Question-2892-3ecd193a222eb56c35ec4cb7895ee08a'; $result = explode('/Question-', $str, 2)[0] ?? ''; echo ($result);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7PE7q
function name:  (null)
number of ops:  12
compiled vars:  !0 = $str, !1 = $result
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                       !0, 'https%3A%2F%2Ftesty-dlya-medsester.ru%2Fnmo%2F2892-nastavnichestvo-kak-metod-adaptatsii-molodykh-spetsialistov-v-sestrinskoj-deelnosti%2FQuestion-2892-3ecd193a222eb56c35ec4cb7895ee08a'
    4     1        INIT_FCALL                                                   'explode'
          2        SEND_VAL                                                     '%2FQuestion-'
          3        SEND_VAR                                                     !0
          4        SEND_VAL                                                     2
          5        DO_ICALL                                             $3      
          6        FETCH_DIM_IS                                         ~4      $3, 0
          7        COALESCE                                             ~5      ~4
          8        QM_ASSIGN                                            ~5      ''
          9        ASSIGN                                                       !1, ~5
    6    10        ECHO                                                         !1
         11      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
156.53 ms | 1597 KiB | 14 Q