3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MyClass { public function A($string) { return str_replace('"', ' ', (string)$string); } } $myc = new MyClass(); echo "Hello World {$myc->A('W"OW')} Go...";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8taoo
function name:  (null)
number of ops:  11
compiled vars:  !0 = $myc
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   NEW                                              $1      'MyClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   11     3        ROPE_INIT                                     3  ~6      'Hello+World+'
          4        INIT_METHOD_CALL                                         !0, 'A'
          5        SEND_VAL_EX                                              'W%22OW'
          6        DO_FCALL                                      0  $4      
          7        ROPE_ADD                                      1  ~6      ~6, $4
          8        ROPE_END                                      2  ~5      ~6, '+Go...'
          9        ECHO                                                     ~5
         10      > RETURN                                                   1

Class MyClass:
Function a:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8taoo
function name:  A
number of ops:  9
compiled vars:  !0 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
    5     1        INIT_FCALL                                               'str_replace'
          2        SEND_VAL                                                 '%22'
          3        SEND_VAL                                                 '+'
          4        CAST                                          6  ~1      !0
          5        SEND_VAL                                                 ~1
          6        DO_ICALL                                         $2      
          7      > RETURN                                                   $2
    6     8*     > RETURN                                                   null

End of function a

End of class MyClass.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.66 ms | 1395 KiB | 15 Q