3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'Premium Deck Series: Fire and Lightning'; if(($splAt = strpos($str,':'))!==false){ $s['set'] = trim(substr($str,$splAt+1)); } echo $s['set'];
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 18
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
filename:       /in/DLqsX
function name:  (null)
number of ops:  21
compiled vars:  !0 = $str, !1 = $splAt, !2 = $s
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'Premium+Deck+Series%3A+Fire+and+Lightning'
    3     1        INIT_FCALL                                               'strpos'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 '%3A'
          4        DO_ICALL                                         $4      
          5        ASSIGN                                           ~5      !1, $4
          6        TYPE_CHECK                                  1018          ~5
          7      > JMPZ                                                     ~6, ->18
    4     8    >   INIT_FCALL                                               'trim'
          9        INIT_FCALL                                               'substr'
         10        SEND_VAR                                                 !0
         11        ADD                                              ~8      !1, 1
         12        SEND_VAL                                                 ~8
         13        DO_ICALL                                         $9      
         14        SEND_VAR                                                 $9
         15        DO_ICALL                                         $10     
         16        ASSIGN_DIM                                               !2, 'set'
         17        OP_DATA                                                  $10
    6    18    >   FETCH_DIM_R                                      ~11     !2, 'set'
         19        ECHO                                                     ~11
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.59 ms | 1395 KiB | 19 Q