3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'Leggings Or Skinny Jeans'; // positive limit print_r(explode('or', $str, 2)); // negative limit (since PHP 5.1) print_r(explode('or', $str, -1)); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/slSlr
function name:  (null)
number of ops:  18
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'Leggings+Or+Skinny+Jeans'
    5     1        INIT_FCALL                                               'print_r'
          2        INIT_FCALL                                               'explode'
          3        SEND_VAL                                                 'or'
          4        SEND_VAR                                                 !0
          5        SEND_VAL                                                 2
          6        DO_ICALL                                         $2      
          7        SEND_VAR                                                 $2
          8        DO_ICALL                                                 
    8     9        INIT_FCALL                                               'print_r'
         10        INIT_FCALL                                               'explode'
         11        SEND_VAL                                                 'or'
         12        SEND_VAR                                                 !0
         13        SEND_VAL                                                 -1
         14        DO_ICALL                                         $4      
         15        SEND_VAR                                                 $4
         16        DO_ICALL                                                 
    9    17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.6 ms | 1394 KiB | 17 Q