3v4l.org

run code in 300+ PHP versions simultaneously
<?php $inputs = [ '[code-html]', '[code-css]', '[code-js]', ]; var_export( preg_replace('~\[code-(html|css|js)]~', '<pre><code class="language-$1">', $inputs) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WR7v0
function name:  (null)
number of ops:  10
compiled vars:  !0 = $inputs
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    9     1        INIT_FCALL                                               'var_export'
   10     2        INIT_FCALL                                               'preg_replace'
          3        SEND_VAL                                                 '%7E%5C%5Bcode-%28html%7Ccss%7Cjs%29%5D%7E'
          4        SEND_VAL                                                 '%3Cpre%3E%3Ccode+class%3D%22language-%241%22%3E'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $2      
          7        SEND_VAR                                                 $2
    9     8        DO_ICALL                                                 
   11     9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.07 ms | 1004 KiB | 15 Q