3v4l.org

run code in 500+ PHP versions simultaneously
<?php $inputext = "Engineering school, Medical school"; $rule ="/\w+(?= school)/"; $replacetext = "Educational"; $outputext = preg_replace($rule, $replacetext, $inputext); echo $outputext;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/btX8j
function name:  (null)
number of ops:  8
compiled vars:  !0 = $inputext, !1 = $rule, !2 = $replacetext, !3 = $outputext
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                       !0, 'Engineering+school%2C+Medical+school'
    3     1        ASSIGN                                                       !1, '%2F%5Cw%2B%28%3F%3D+school%29%2F'
    4     2        ASSIGN                                                       !2, 'Educational'
    5     3        FRAMELESS_ICALL_3                preg_replace        ~7      !1, !2
          4        OP_DATA                                                      !0
          5        ASSIGN                                                       !3, ~7
    6     6        ECHO                                                         !3
    7     7      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
167.81 ms | 2200 KiB | 13 Q