3v4l.org

run code in 300+ PHP versions simultaneously
<?php assert(preg_replace("/ fox$/", "", "The quick brown fox") == "The quick brown");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/l8jU0
function name:  (null)
number of ops:  12
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSERT_CHECK                                             
          1        INIT_FCALL                                               'assert'
          2        INIT_FCALL                                               'preg_replace'
          3        SEND_VAL                                                 '%2F+fox%24%2F'
          4        SEND_VAL                                                 ''
          5        SEND_VAL                                                 'The+quick+brown+fox'
          6        DO_ICALL                                         $0      
          7        IS_EQUAL                                         ~1      $0, 'The+quick+brown'
          8        SEND_VAL                                                 ~1
          9        SEND_VAL                                                 'assert%28preg_replace%28%27%2F+fox%24%2F%27%2C+%27%27%2C+%27The+quick+brown+fox%27%29+%3D%3D+%27The+quick+brown%27%29'
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.92 ms | 1389 KiB | 18 Q