3v4l.org

run code in 300+ PHP versions simultaneously
<?php function _div($params = array(), $content=null) { $value = preg_replace("/(\d+)-(\d+)-(\d+)\s(\d+):(\d+):(\d+)/", "$1.$2.$3 $4:$5", $value); if(count($params) > 0) { $createParams = array_map(create_function('$key, $value', 'return $key."=\'".$value."\'";'), array_keys($params), array_values($params)); $paramsText = implode(" ",$createParams); } return "<div ".$paramsText.">".$content."</div>"; } print _div(array('field' => 'teszt'), 'faszom');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pUjsp
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   INIT_FCALL                                               '_div'
          1        SEND_VAL                                                 <array>
          2        SEND_VAL                                                 'faszom'
          3        DO_FCALL                                      0  $0      
          4        ECHO                                                     $0
          5      > RETURN                                                   1

Function _div:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 32
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 32
filename:       /in/pUjsp
function name:  _div
number of ops:  38
compiled vars:  !0 = $params, !1 = $content, !2 = $value, !3 = $createParams, !4 = $paramsText
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV_INIT                                        !0      <array>
          1        RECV_INIT                                        !1      null
    3     2        INIT_FCALL                                               'preg_replace'
          3        SEND_VAL                                                 '%2F%28%5Cd%2B%29-%28%5Cd%2B%29-%28%5Cd%2B%29%5Cs%28%5Cd%2B%29%3A%28%5Cd%2B%29%3A%28%5Cd%2B%29%2F'
          4        SEND_VAL                                                 '%241.%242.%243+%244%3A%245'
          5        SEND_VAR                                                 !2
          6        DO_ICALL                                         $5      
          7        ASSIGN                                                   !2, $5
    4     8        COUNT                                            ~7      !0
          9        IS_SMALLER                                               0, ~7
         10      > JMPZ                                                     ~8, ->32
    5    11    >   INIT_FCALL                                               'array_map'
         12        INIT_FCALL_BY_NAME                                       'create_function'
         13        SEND_VAL_EX                                              '%24key%2C+%24value'
         14        SEND_VAL_EX                                              'return+%24key.%22%3D%27%22.%24value.%22%27%22%3B'
         15        DO_FCALL                                      0  $9      
         16        SEND_VAR                                                 $9
         17        INIT_FCALL                                               'array_keys'
         18        SEND_VAR                                                 !0
         19        DO_ICALL                                         $10     
         20        SEND_VAR                                                 $10
         21        INIT_FCALL                                               'array_values'
         22        SEND_VAR                                                 !0
         23        DO_ICALL                                         $11     
         24        SEND_VAR                                                 $11
         25        DO_ICALL                                         $12     
         26        ASSIGN                                                   !3, $12
    6    27        INIT_FCALL                                               'implode'
         28        SEND_VAL                                                 '+'
         29        SEND_VAR                                                 !3
         30        DO_ICALL                                         $14     
         31        ASSIGN                                                   !4, $14
    8    32    >   CONCAT                                           ~16     '%3Cdiv+', !4
         33        CONCAT                                           ~17     ~16, '%3E'
         34        CONCAT                                           ~18     ~17, !1
         35        CONCAT                                           ~19     ~18, '%3C%2Fdiv%3E'
         36      > RETURN                                                   ~19
    9    37*     > RETURN                                                   null

End of function _div

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.1 ms | 1403 KiB | 27 Q