3v4l.org

run code in 300+ PHP versions simultaneously
<?php $classPath = 'stdclass'; $a = new (str_replace('/', '\\', $classPath))(); var_dump($a);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/oJFop
function name:  (null)
number of ops:  14
compiled vars:  !0 = $classPath, !1 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'stdclass'
    3     1        INIT_FCALL                                               'str_replace'
          2        SEND_VAL                                                 '%2F'
          3        SEND_VAL                                                 '%5C'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $3      
          6        FETCH_CLASS                                   0  $4      $3
          7        NEW                                              $5      $4
          8        DO_FCALL                                      0          
          9        ASSIGN                                                   !1, $5
    4    10        INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.39 ms | 1394 KiB | 17 Q