3v4l.org

run code in 300+ PHP versions simultaneously
<?php class myProcess { function __construct($sameArray){ $mySentence = json_encode($sameArray); $mySentence = preg_replace('/o/','t',$mySentence); $otherArray = json_decode($mySentence); print($otherArray); //this is line 45 //print($mySentence); //$placements = array ("John" => "Jose", "Smith" => "Tobar"); // preg_replace("/:(\w+)/e", $placements[$1], $mySentence); } } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8tBCI
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E > > RETURN                                                   1

Class myProcess:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8tBCI
function name:  __construct
number of ops:  17
compiled vars:  !0 = $sameArray, !1 = $mySentence, !2 = $otherArray
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        INIT_FCALL                                               'json_encode'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !1, $3
    5     5        INIT_FCALL                                               'preg_replace'
          6        SEND_VAL                                                 '%2Fo%2F'
          7        SEND_VAL                                                 't'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                         $5      
         10        ASSIGN                                                   !1, $5
    6    11        INIT_FCALL                                               'json_decode'
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                         $7      
         14        ASSIGN                                                   !2, $7
    7    15        ECHO                                                     !2
   11    16      > RETURN                                                   null

End of function __construct

End of class myProcess.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.36 ms | 1395 KiB | 19 Q