3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = 'http://www.youtube.com/user/'; echo json_encode(explode('/', $x)); echo json_encode(preg_split('/\//', $x, NULL, PREG_SPLIT_NO_EMPTY));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7K7Z1
function name:  (null)
number of ops:  20
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, 'http%3A%2F%2Fwww.youtube.com%2Fuser%2F'
    5     1        INIT_FCALL                                               'json_encode'
          2        INIT_FCALL                                               'explode'
          3        SEND_VAL                                                 '%2F'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
          6        SEND_VAR                                                 $2
          7        DO_ICALL                                         $3      
          8        ECHO                                                     $3
    6     9        INIT_FCALL                                               'json_encode'
         10        INIT_FCALL                                               'preg_split'
         11        SEND_VAL                                                 '%2F%5C%2F%2F'
         12        SEND_VAR                                                 !0
         13        SEND_VAL                                                 null
         14        SEND_VAL                                                 1
         15        DO_ICALL                                         $4      
         16        SEND_VAR                                                 $4
         17        DO_ICALL                                         $5      
         18        ECHO                                                     $5
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.95 ms | 1395 KiB | 19 Q