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

End of function _div

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.12 ms | 947 KiB | 23 Q