3v4l.org

run code in 300+ PHP versions simultaneously
<?php $standardPrice = 77.88; $specialPrices = json_decode('{"54.44":"20130515163000-20130515170000","4.88":"20130515170000-20130515190000","5.00":"20130515200000-20130515200045"}'); $currentPrice = function($standardPrice, $specialPrices) { if (empty($specialPrices)) { return $standardPrice; } $now = strftime('%Y%m%d%H%M%S'); return $standardPrice; }; echo $currentPrice($standardPrice, $specialPrices);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/H0Gk9
function name:  (null)
number of ops:  13
compiled vars:  !0 = $standardPrice, !1 = $specialPrices, !2 = $currentPrice
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 77.88
    5     1        INIT_FCALL                                               'json_decode'
          2        SEND_VAL                                                 '%7B%2254.44%22%3A%2220130515163000-20130515170000%22%2C%224.88%22%3A%2220130515170000-20130515190000%22%2C%225.00%22%3A%2220130515200000-20130515200045%22%7D'
          3        DO_ICALL                                         $4      
          4        ASSIGN                                                   !1, $4
    8     5        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FH0Gk9%3A8%240'
          6        ASSIGN                                                   !2, ~6
   27     7        INIT_DYNAMIC_CALL                                        !2
          8        SEND_VAR_EX                                              !0
          9        SEND_VAR_EX                                              !1
         10        DO_FCALL                                      0  $8      
         11        ECHO                                                     $8
         12      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FH0Gk9%3A8%240:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 5
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/H0Gk9
function name:  {closure}
number of ops:  11
compiled vars:  !0 = $standardPrice, !1 = $specialPrices, !2 = $now
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   10     2        ISSET_ISEMPTY_CV                                         !1
          3      > JMPZ                                                     ~3, ->5
   12     4    > > RETURN                                                   !0
   16     5    >   INIT_FCALL                                               'strftime'
          6        SEND_VAL                                                 '%25Y%25m%25d%25H%25M%25S'
          7        DO_ICALL                                         $4      
          8        ASSIGN                                                   !2, $4
   23     9      > RETURN                                                   !0
   25    10*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FH0Gk9%3A8%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.43 ms | 1388 KiB | 17 Q