3v4l.org

run code in 300+ PHP versions simultaneously
<?php $first = "Pass"; $second = "Jacks Inventory"; $third = "First Second Third etc"; $string = $first . " " . $second . " " . $third; echo preg_replace("/s\b/", "n", $string);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JHvG2
function name:  (null)
number of ops:  15
compiled vars:  !0 = $first, !1 = $second, !2 = $third, !3 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Pass'
    4     1        ASSIGN                                                   !1, 'Jacks+Inventory'
    5     2        ASSIGN                                                   !2, 'First+Second+Third+etc'
    7     3        CONCAT                                           ~7      !0, '+'
          4        CONCAT                                           ~8      ~7, !1
          5        CONCAT                                           ~9      ~8, '+'
          6        CONCAT                                           ~10     ~9, !2
          7        ASSIGN                                                   !3, ~10
    9     8        INIT_FCALL                                               'preg_replace'
          9        SEND_VAL                                                 '%2Fs%5Cb%2F'
         10        SEND_VAL                                                 'n'
         11        SEND_VAR                                                 !3
         12        DO_ICALL                                         $12     
         13        ECHO                                                     $12
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
177.28 ms | 1394 KiB | 15 Q