3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Bla { function __construct() { $data = array('foo' => 'bläa ,.,. blubb'); var_dump($this->_parseResults($data)); } protected function _parseResults(array $results) { foreach ($results as $key => $result) { $results[$key] = trim(preg_replace('/[^a-zA-Z0-9-_. ]/', '', $result)); } return $results; } } new Bla();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hlkAt
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   22     0  E >   NEW                                              $0      'Bla'
          1        DO_FCALL                                      0          
          2        FREE                                                     $0
          3      > RETURN                                                   1

Class Bla:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hlkAt
function name:  __construct
number of ops:  8
compiled vars:  !0 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   ASSIGN                                                   !0, <array>
    9     1        INIT_FCALL                                               'var_dump'
          2        INIT_METHOD_CALL                                         '_parseResults'
          3        SEND_VAR_EX                                              !0
          4        DO_FCALL                                      0  $2      
          5        SEND_VAR                                                 $2
          6        DO_ICALL                                                 
   10     7      > RETURN                                                   null

End of function __construct

Function _parseresults:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 15
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 15
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/hlkAt
function name:  _parseResults
number of ops:  18
compiled vars:  !0 = $results, !1 = $result, !2 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   RECV                                             !0      
   14     1      > FE_RESET_R                                       $3      !0, ->15
          2    > > FE_FETCH_R                                       ~4      $3, !1, ->15
          3    >   ASSIGN                                                   !2, ~4
   15     4        INIT_FCALL                                               'trim'
          5        INIT_FCALL                                               'preg_replace'
          6        SEND_VAL                                                 '%2F%5B%5Ea-zA-Z0-9-_.+%5D%2F'
          7        SEND_VAL                                                 ''
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                         $7      
         10        SEND_VAR                                                 $7
         11        DO_ICALL                                         $8      
         12        ASSIGN_DIM                                               !0, !2
         13        OP_DATA                                                  $8
   14    14      > JMP                                                      ->2
         15    >   FE_FREE                                                  $3
   18    16      > RETURN                                                   !0
   19    17*     > RETURN                                                   null

End of function _parseresults

End of class Bla.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.41 ms | 1396 KiB | 19 Q