3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = array("hello", "what", "sorry", "Technology"); echo "=============================== hello"; echo "\n\n"; var_dump($str); echo "\n\n=============================== "; echo "=============================== ".print($str[0])."\n"; echo "\n\n123"; print_r($str); // print_r(count(null)); $str = null; echo htmlspecialchars($str, ENT_COMPAT); // 只转换双引号
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6FYvF
function name:  (null)
number of ops:  22
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ECHO                                                     '%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D+hello'
    5     2        ECHO                                                     '%0A%0A'
    6     3        INIT_FCALL                                               'var_dump'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                                 
    7     6        ECHO                                                     '%0A%0A%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D+'
    8     7        FETCH_DIM_R                                      ~3      !0, 0
          8        CONCAT                                           ~4      ~3, '%0A'
          9        ECHO                                                     ~4
         10        ECHO                                                     '%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D+1'
    9    11        ECHO                                                     '%0A%0A123'
   10    12        INIT_FCALL                                               'print_r'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                                 
   14    15        ASSIGN                                                   !0, null
   15    16        INIT_FCALL                                               'htmlspecialchars'
         17        SEND_VAR                                                 !0
         18        SEND_VAL                                                 2
         19        DO_ICALL                                         $7      
         20        ECHO                                                     $7
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
20.97 ms | 407 KiB | 7 Q