3v4l.org

run code in 300+ PHP versions simultaneously
<?php $word = 'WORLD'; $ph = '_____'; $word = str_split($word); $ph = str_split($ph); var_dump($word, $ph, preg_grep($word, 'O'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/q0OvZ
function name:  (null)
number of ops:  20
compiled vars:  !0 = $word, !1 = $ph
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'WORLD'
    4     1        ASSIGN                                                   !1, '_____'
    6     2        INIT_FCALL                                               'str_split'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !0, $4
    7     6        INIT_FCALL                                               'str_split'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                         $6      
          9        ASSIGN                                                   !1, $6
    9    10        INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !0
         12        SEND_VAR                                                 !1
         13        INIT_FCALL                                               'preg_grep'
         14        SEND_VAR                                                 !0
         15        SEND_VAL                                                 'O'
         16        DO_ICALL                                         $8      
         17        SEND_VAR                                                 $8
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.08 ms | 1394 KiB | 19 Q