3v4l.org

run code in 300+ PHP versions simultaneously
<?php $asdf = array("temp_derp" => "15", "temp_derpier" => "30", "temp_youdick"=>"50"); echo preg_replace_callback("/temp_[a-z0-9_]*/i", function($match) {return $GLOBALS["asdf"][$match];},"temp_derp+temp_derpier+temp_youdick");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kTcKO
function name:  (null)
number of ops:  9
compiled vars:  !0 = $asdf
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        INIT_FCALL                                               'preg_replace_callback'
          2        SEND_VAL                                                 '%2Ftemp_%5Ba-z0-9_%5D%2A%2Fi'
          3        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FkTcKO%3A3%240'
          4        SEND_VAL                                                 ~2
          5        SEND_VAL                                                 'temp_derp%2Btemp_derpier%2Btemp_youdick'
          6        DO_ICALL                                         $3      
          7        ECHO                                                     $3
          8      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FkTcKO%3A3%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kTcKO
function name:  {closure}
number of ops:  6
compiled vars:  !0 = $match
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
          0  E >   RECV                                             !0      
          1        FETCH_R                      global              ~1      'GLOBALS'
          2        FETCH_DIM_R                                      ~2      ~1, 'asdf'
          3        FETCH_DIM_R                                      ~3      ~2, !0
          4      > RETURN                                                   ~3
          5*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FkTcKO%3A3%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
187.41 ms | 1395 KiB | 15 Q