3v4l.org

run code in 300+ PHP versions simultaneously
<?php function reverseString($string = 'nice') { } function rev($str) { return $str?rev(substr($str,1)).$str[0]:''; } echo rev('Online strlen() function for some newbies who cannot bla bla bla do something haha, nice, i dont have to repeat it Online strlen() function for some newbies who cannot bla bla bla do something haha, nice, i dont have to repeat it');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jERnr
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   INIT_FCALL                                               'rev'
          1        SEND_VAL                                                 'Online+strlen%28%29+function+for+some+newbies+who+cannot+bla+bla+bla+do+something+haha%2C+nice%2C+i+dont+have+to+repeat+it%0AOnline+strlen%28%29+function+for+some+newbies+who+cannot+bla+bla+bla+do+something+haha%2C+nice%2C+i+dont+have+to+repeat+it'
          2        DO_FCALL                                      0  $0      
          3        ECHO                                                     $0
   13     4      > RETURN                                                   1

Function reversestring:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jERnr
function name:  reverseString
number of ops:  2
compiled vars:  !0 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV_INIT                                        !0      'nice'
    5     1      > RETURN                                                   null

End of function reversestring

Function rev:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 2, Position 2 = 13
Branch analysis from position: 2
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jERnr
function name:  rev
number of ops:  16
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
    7     1      > JMPZ                                                     !0, ->13
          2    >   INIT_FCALL_BY_NAME                                       'rev'
          3        INIT_FCALL                                               'substr'
          4        SEND_VAR                                                 !0
          5        SEND_VAL                                                 1
          6        DO_ICALL                                         $1      
          7        SEND_VAR_NO_REF_EX                                       $1
          8        DO_FCALL                                      0  $2      
          9        FETCH_DIM_R                                      ~3      !0, 0
         10        CONCAT                                           ~4      $2, ~3
         11        QM_ASSIGN                                        ~5      ~4
         12      > JMP                                                      ->14
         13    >   QM_ASSIGN                                        ~5      ''
         14    > > RETURN                                                   ~5
    8    15*     > RETURN                                                   null

End of function rev

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.5 ms | 1399 KiB | 16 Q