3v4l.org

run code in 300+ PHP versions simultaneously
<?php $kalimat_dasar = "maaf, saya tiba-tiba harus pulang."; // handle tanda baca = ',','.','!','?' $tanda_baca = '/[,\.]/'; $pemisah = '#$1'; $kalimat_lv1 = preg_replace(tanda_baca , $pemisah , $kalimat_dasar); print_r($kalimat_lv1);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/h6caK
function name:  (null)
number of ops:  14
compiled vars:  !0 = $kalimat_dasar, !1 = $tanda_baca, !2 = $pemisah, !3 = $kalimat_lv1
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'maaf%2C+saya+tiba-tiba+harus+pulang.'
    6     1        ASSIGN                                                   !1, '%2F%5B%2C%5C.%5D%2F'
    7     2        ASSIGN                                                   !2, '%23%241'
    8     3        INIT_FCALL                                               'preg_replace'
          4        FETCH_CONSTANT                                   ~7      'tanda_baca'
          5        SEND_VAL                                                 ~7
          6        SEND_VAR                                                 !2
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $8      
          9        ASSIGN                                                   !3, $8
   11    10        INIT_FCALL                                               'print_r'
         11        SEND_VAR                                                 !3
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.19 ms | 1394 KiB | 17 Q