3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array1 = ['今日', '天気', '晴れ', '雨']; $array2 = ['の', 'は', 'のち', 'です']; $a = array_combine($array1, $array2); $b = serialize($a); $c = preg_replace('|[:print:]|', '', $b); var_dump($c,$b, $a);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gXX5G
function name:  (null)
number of ops:  23
compiled vars:  !0 = $array1, !1 = $array2, !2 = $a, !3 = $b, !4 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, <array>
    5     2        INIT_FCALL                                               'array_combine'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                         $7      
          6        ASSIGN                                                   !2, $7
    6     7        INIT_FCALL                                               'serialize'
          8        SEND_VAR                                                 !2
          9        DO_ICALL                                         $9      
         10        ASSIGN                                                   !3, $9
    7    11        INIT_FCALL                                               'preg_replace'
         12        SEND_VAL                                                 '%7C%5B%3Aprint%3A%5D%7C'
         13        SEND_VAL                                                 ''
         14        SEND_VAR                                                 !3
         15        DO_ICALL                                         $11     
         16        ASSIGN                                                   !4, $11
    8    17        INIT_FCALL                                               'var_dump'
         18        SEND_VAR                                                 !4
         19        SEND_VAR                                                 !3
         20        SEND_VAR                                                 !2
         21        DO_ICALL                                                 
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.97 ms | 1395 KiB | 21 Q