3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "This string has no dash"; list($a, $b) = explode('-', $str, 2);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BqsbK
function name:  (null)
number of ops:  12
compiled vars:  !0 = $str, !1 = $a, !2 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'This+string+has+no+dash'
    4     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '-'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 2
          5        DO_ICALL                                         $4      
          6        FETCH_LIST_R                                     $5      $4, 0
          7        ASSIGN                                                   !1, $5
          8        FETCH_LIST_R                                     $7      $4, 1
          9        ASSIGN                                                   !2, $7
         10        FREE                                                     $4
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
247.84 ms | 1008 KiB | 14 Q