3v4l.org

run code in 300+ PHP versions simultaneously
<?php function dotest($s) { list($x,$y) = explode( ' ', $s, 2); echo "> $x , $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/9ZLng
function name:  (null)
number of ops:  10
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'dotest'
          1        SEND_VAL                                                 'test'
          2        DO_FCALL                                      0          
    9     3        INIT_FCALL                                               'dotest'
          4        SEND_VAL                                                 'test+and'
          5        DO_FCALL                                      0          
   10     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/9ZLng
function name:  dotest
number of ops:  17
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        ROPE_INIT                                     4  ~9      '%3E+'
         12        ROPE_ADD                                      1  ~9      ~9, !1
         13        ROPE_ADD                                      2  ~9      ~9, '+%2C+'
         14        ROPE_END                                      3  ~8      ~9, !2
         15        ECHO                                                     ~8
    6    16      > RETURN                                                   null

End of function dotest

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.61 ms | 1398 KiB | 18 Q