3v4l.org

run code in 300+ PHP versions simultaneously
<?php ($f = function($x = null) use (&$f) { return $x ?: $f; })()()()('var_dump')(9);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VfYjo
function name:  (null)
number of ops:  16
compiled vars:  !0 = $f
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FVfYjo%3A3%240'
          1        BIND_LEXICAL                                             ~1, !0
          2        ASSIGN                                           ~2      !0, ~1
          3        INIT_DYNAMIC_CALL                                        ~2
          4        DO_FCALL                                      0  $3      
          5        INIT_DYNAMIC_CALL                                        $3
          6        DO_FCALL                                      0  $4      
          7        INIT_DYNAMIC_CALL                                        $4
          8        DO_FCALL                                      0  $5      
          9        INIT_DYNAMIC_CALL                                        $5
    5    10        SEND_VAL_EX                                              'var_dump'
         11        DO_FCALL                                      0  $6      
         12        INIT_DYNAMIC_CALL                                        $6
         13        SEND_VAL_EX                                              9
         14        DO_FCALL                                      0          
         15      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FVfYjo%3A3%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VfYjo
function name:  {closure}
number of ops:  6
compiled vars:  !0 = $x, !1 = $f
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV_INIT                                        !0      null
          1        BIND_STATIC                                              !1
    4     2        JMP_SET                                          ~2      !0, ->4
          3        QM_ASSIGN                                        ~2      !1
          4      > RETURN                                                   ~2
    5     5*     > RETURN                                                   null

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
209.54 ms | 1394 KiB | 13 Q