3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** * ZCE material * @category str_repalce($a, $b, $c): thay $a bằng $b trong $c * @author me@vuongnguyen.net * @copyright 2018 Vuong */ namespace vidu; class helloworld{ public function __construct(){ echo strpos(str_replace("\\", "/", __CLASS__), "/"); } } $a = new helloworld;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7q996
function name:  (null)
number of ops:  4
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   21     0  E >   NEW                                              $1      'vidu%5Chelloworld'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   22     3      > RETURN                                                   1

Class vidu\helloworld:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7q996
function name:  __construct
number of ops:  11
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   INIT_NS_FCALL_BY_NAME                                    'vidu%5Cstrpos'
          1        INIT_NS_FCALL_BY_NAME                                    'vidu%5Cstr_replace'
          2        SEND_VAL_EX                                              '%5C'
          3        SEND_VAL_EX                                              '%2F'
          4        SEND_VAL_EX                                              'vidu%5Chelloworld'
          5        DO_FCALL                                      0  $0      
          6        SEND_VAR_NO_REF_EX                                       $0
          7        SEND_VAL_EX                                              '%2F'
          8        DO_FCALL                                      0  $1      
          9        ECHO                                                     $1
   17    10      > RETURN                                                   null

End of function __construct

End of class vidu\helloworld.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
183.35 ms | 1395 KiB | 17 Q