3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = "1+hello/world"; $e = explode("/", $s); $f = strpos($s, "af+"); $pattern = '/hello/'; $r = preg_split($pattern, $s); var_dump($r);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/geQhr
function name:  (null)
number of ops:  21
compiled vars:  !0 = $s, !1 = $e, !2 = $f, !3 = $pattern, !4 = $r
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '1%2Bhello%2Fworld'
    4     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '%2F'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $6      
          5        ASSIGN                                                   !1, $6
    5     6        INIT_FCALL                                               'strpos'
          7        SEND_VAR                                                 !0
          8        SEND_VAL                                                 'af%2B'
          9        DO_ICALL                                         $8      
         10        ASSIGN                                                   !2, $8
    7    11        ASSIGN                                                   !3, '%2Fhello%2F'
    8    12        INIT_FCALL                                               'preg_split'
         13        SEND_VAR                                                 !3
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                         $11     
         16        ASSIGN                                                   !4, $11
    9    17        INIT_FCALL                                               'var_dump'
         18        SEND_VAR                                                 !4
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.12 ms | 1395 KiB | 21 Q