3v4l.org

run code in 300+ PHP versions simultaneously
<?php $l = ' return isset($this->actions[0]) && class_exists( $this->actions[0] . "Controller" ) ? true : false;'; preg_replace('/class_exists\((.*)\)/', 'class_exists(\\Mastershop\\Core\\getNamespace($1)', $l); echo $l; echo uuid();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jSlb3
function name:  (null)
number of ops:  11
compiled vars:  !0 = $l
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '+return+isset%28%24this-%3Eactions%5B0%5D%29+%26%26+class_exists%28+%24this-%3Eactions%5B0%5D+.+%22Controller%22+%29+%3F+true+%3A+false%3B'
    3     1        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%2Fclass_exists%5C%28%28.%2A%29%5C%29%2F'
          3        SEND_VAL                                                 'class_exists%28%5CMastershop%5CCore%5CgetNamespace%28%241%29'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                                 
    5     6        ECHO                                                     !0
    6     7        INIT_FCALL_BY_NAME                                       'uuid'
          8        DO_FCALL                                      0  $3      
          9        ECHO                                                     $3
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.31 ms | 1394 KiB | 15 Q