3v4l.org

run code in 500+ PHP versions simultaneously
<?php $var = '1,2,3,4,5,6,7,8,9,10,0);DROP table users'; $var = explode(',', $var); array_walk($var, function(&$value){ $value = (int) $value; }); print_r($var);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AGRqL
function name:  (null)
number of ops:  15
compiled vars:  !0 = $var
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, '1%2C2%2C3%2C4%2C5%2C6%2C7%2C8%2C9%2C10%2C0%29%3BDROP+table+users'
    5     1        INIT_FCALL                                                   'explode'
          2        SEND_VAL                                                     '%2C'
          3        SEND_VAR                                                     !0
          4        DO_ICALL                                             $2      
          5        ASSIGN                                                       !0, $2
    7     6        INIT_FCALL                                                   'array_walk'
          7        SEND_REF                                                     !0
          8        DECLARE_LAMBDA_FUNCTION                              ~4      [0]
    9     9        SEND_VAL                                                     ~4
    7    10        DO_ICALL                                                     
   11    11        INIT_FCALL                                                   'print_r'
         12        SEND_VAR                                                     !0
         13        DO_ICALL                                                     
         14      > RETURN                                                       1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AGRqL
function name:  {closure:/in/AGRqL:7}
number of ops:  4
compiled vars:  !0 = $value
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    7     0  E >   RECV                                                 !0      
    8     1        CAST                                              4  ~1      !0
          2        ASSIGN                                                       !0, ~1
    9     3      > RETURN                                                       null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
161.32 ms | 2631 KiB | 16 Q