3v4l.org

run code in 300+ PHP versions simultaneously
<?php function dotest($s) { list($x,$y) = explode( ' ', $s . ' ', 2); echo "> $x , $y \n"; } 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/6qLUq
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/6qLUq
function name:  dotest
number of ops:  19
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        CONCAT                                           ~3      !0, '+'
          4        SEND_VAL                                                 ~3
          5        SEND_VAL                                                 2
          6        DO_ICALL                                         $4      
          7        FETCH_LIST_R                                     $5      $4, 0
          8        ASSIGN                                                   !1, $5
          9        FETCH_LIST_R                                     $7      $4, 1
         10        ASSIGN                                                   !2, $7
         11        FREE                                                     $4
    5    12        ROPE_INIT                                     5  ~10     '%3E+'
         13        ROPE_ADD                                      1  ~10     ~10, !1
         14        ROPE_ADD                                      2  ~10     ~10, '+%2C+'
         15        ROPE_ADD                                      3  ~10     ~10, !2
         16        ROPE_END                                      4  ~9      ~10, '+%0A'
         17        ECHO                                                     ~9
    6    18      > RETURN                                                   null

End of function dotest

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.26 ms | 1398 KiB | 18 Q