3v4l.org

run code in 300+ PHP versions simultaneously
<?php function dotest($s) { list($x,$y) = explode( ' ', $s, 2); var_dump($x); var_dump($y); } dotest('test'); dotest('test and'); dotest('test and last');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/a2597
function name:  (null)
number of ops:  10
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   INIT_FCALL                                               'dotest'
          1        SEND_VAL                                                 'test'
          2        DO_FCALL                                      0          
   10     3        INIT_FCALL                                               'dotest'
          4        SEND_VAL                                                 'test+and'
          5        DO_FCALL                                      0          
   11     6        INIT_FCALL                                               'dotest'
          7        SEND_VAL                                                 'test+and+last'
          8        DO_FCALL                                      0          
          9      > RETURN                                                   1

Function dotest:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/a2597
function name:  dotest
number of ops:  18
compiled vars:  !0 = $s, !1 = $x, !2 = $y
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '+'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 2
          5        DO_ICALL                                         $3      
          6        FETCH_LIST_R                                     $4      $3, 0
          7        ASSIGN                                                   !1, $4
          8        FETCH_LIST_R                                     $6      $3, 1
          9        ASSIGN                                                   !2, $6
         10        FREE                                                     $3
    5    11        INIT_FCALL                                               'var_dump'
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                                 
    6    14        INIT_FCALL                                               'var_dump'
         15        SEND_VAR                                                 !2
         16        DO_ICALL                                                 
    7    17      > RETURN                                                   null

End of function dotest

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.59 ms | 1390 KiB | 20 Q