3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = "I need you"; $exploded = explode('you', $a); if(!empty(end($exploded))){ echo "Found text after you"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 13
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/UHNcS
function name:  (null)
number of ops:  14
compiled vars:  !0 = $a, !1 = $exploded
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'I+need+you'
    5     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 'you'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $3      
          5        ASSIGN                                                   !1, $3
    6     6        INIT_FCALL                                               'end'
          7        SEND_REF                                                 !1
          8        DO_ICALL                                         $5      
          9        BOOL_NOT                                         ~6      $5
         10        BOOL_NOT                                         ~7      ~6
         11      > JMPZ                                                     ~7, ->13
    7    12    >   ECHO                                                     'Found+text+after+you'
    8    13    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.89 ms | 1394 KiB | 17 Q