3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Str{ private static $test = 'tst'; static function quicksort($str){ $rtnString = ""; //return $rtnString; return self::$test; } } $string = "873694512"; $strObj = new Str(); echo($strObj->quicksort($string));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bZn43
function name:  (null)
number of ops:  9
compiled vars:  !0 = $string, !1 = $strObj
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   ASSIGN                                                   !0, '873694512'
   15     1        NEW                                              $3      'Str'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !1, $3
   16     4        INIT_METHOD_CALL                                         !1, 'quicksort'
          5        SEND_VAR_EX                                              !0
          6        DO_FCALL                                      0  $6      
          7        ECHO                                                     $6
          8      > RETURN                                                   1

Class Str:
Function quicksort:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bZn43
function name:  quicksort
number of ops:  5
compiled vars:  !0 = $str, !1 = $rtnString
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    6     1        ASSIGN                                                   !1, ''
   10     2        FETCH_STATIC_PROP_R          unknown             ~3      'test'
          3      > RETURN                                                   ~3
   11     4*     > RETURN                                                   null

End of function quicksort

End of class Str.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.31 ms | 1393 KiB | 13 Q