3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = <<<TK "test1@test1.com" <test1@test1.com>, "test2@test2.com" <test2@test2.com>, "test3@test3.com", "test4@test4.com" <test4@test4.com> TK; $result = array_map( function($a){ return trim($a, ' "'); }, explode(',', strip_tags($string)) ); var_dump($result);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kD2rp
function name:  (null)
number of ops:  18
compiled vars:  !0 = $string, !1 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%22test1%40test1.com%22+%3Ctest1%40test1.com%3E%2C+%22test2%40test2.com%22+%3Ctest2%40test2.com%3E%2C+%22test3%40test3.com%22%2C+%22test4%40test4.com%22+%3Ctest4%40test4.com%3E'
    5     1        INIT_FCALL                                               'array_map'
    6     2        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FkD2rp%3A6%240'
    8     3        SEND_VAL                                                 ~3
    9     4        INIT_FCALL                                               'explode'
          5        SEND_VAL                                                 '%2C'
          6        INIT_FCALL                                               'strip_tags'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $4      
          9        SEND_VAR                                                 $4
         10        DO_ICALL                                         $5      
         11        SEND_VAR                                                 $5
         12        DO_ICALL                                         $6      
    5    13        ASSIGN                                                   !1, $6
   11    14        INIT_FCALL                                               'var_dump'
         15        SEND_VAR                                                 !1
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FkD2rp%3A6%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kD2rp
function name:  {closure}
number of ops:  7
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
    7     1        INIT_FCALL                                               'trim'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 '+%22'
          4        DO_ICALL                                         $1      
          5      > RETURN                                                   $1
    8     6*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FkD2rp%3A6%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.48 ms | 1396 KiB | 23 Q