3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(0); class Test { static $_variable ="a";// ['something']; static public function runHtmlEntities() { return htmlentities(self::$_variable); } } echo Test::runHtmlEntities();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BXPVN
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 0
          2        DO_ICALL                                                 
   12     3        INIT_STATIC_METHOD_CALL                                  'Test', 'runHtmlEntities'
          4        DO_FCALL                                      0  $1      
          5        ECHO                                                     $1
          6      > RETURN                                                   1

Class Test:
Function runhtmlentities:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BXPVN
function name:  runHtmlEntities
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'htmlentities'
          1        FETCH_STATIC_PROP_R          global lock         ~0      '_variable'
          2        SEND_VAL                                                 ~0
          3        DO_ICALL                                         $1      
          4      > RETURN                                                   $1
    9     5*     > RETURN                                                   null

End of function runhtmlentities

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.28 ms | 1394 KiB | 17 Q