3v4l.org

run code in 300+ PHP versions simultaneously
<?php $users = ['Dan','Lisa','Eric']; $hello = function ($name) use ($users) { echo "My name is: " . $name . "\n"; echo "Other people here include: " . implode(" ", $users); }; $hello("John");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OcR3U
function name:  (null)
number of ops:  8
compiled vars:  !0 = $users, !1 = $hello
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FOcR3U%3A4%240'
          2        BIND_LEXICAL                                             ~3, !0
          3        ASSIGN                                                   !1, ~3
    9     4        INIT_DYNAMIC_CALL                                        !1
          5        SEND_VAL_EX                                              'John'
          6        DO_FCALL                                      0          
          7      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FOcR3U%3A4%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OcR3U
function name:  {closure}
number of ops:  12
compiled vars:  !0 = $name, !1 = $users
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
          1        BIND_STATIC                                              !1
    5     2        CONCAT                                           ~2      'My+name+is%3A+', !0
          3        CONCAT                                           ~3      ~2, '%0A'
          4        ECHO                                                     ~3
    6     5        INIT_FCALL                                               'implode'
          6        SEND_VAL                                                 '+'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                         $4      
          9        CONCAT                                           ~5      'Other+people+here+include%3A+', $4
         10        ECHO                                                     ~5
    7    11      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FOcR3U%3A4%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.13 ms | 1395 KiB | 15 Q