3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Pippo { protected $nome; public function getNome() { return $this->nome; } public function __construct($nome) { $this->nome = $nome; } } $pippo = new Pippo('Pippo Baudo'); $propName = 'getNome'; print($pippo->{ $propName }()); $test = explode('|', 'value'); print($test[0]); print($test.length);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FlUmU
function name:  (null)
number of ops:  19
compiled vars:  !0 = $pippo, !1 = $propName, !2 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   NEW                                              $3      'Pippo'
          1        SEND_VAL_EX                                              'Pippo+Baudo'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $3
   15     4        ASSIGN                                                   !1, 'getNome'
   17     5        INIT_METHOD_CALL                                         !0, !1
          6        DO_FCALL                                      0  $7      
          7        ECHO                                                     $7
   19     8        INIT_FCALL                                               'explode'
          9        SEND_VAL                                                 '%7C'
         10        SEND_VAL                                                 'value'
         11        DO_ICALL                                         $8      
         12        ASSIGN                                                   !2, $8
   21    13        FETCH_DIM_R                                      ~10     !2, 0
         14        ECHO                                                     ~10
   22    15        FETCH_CONSTANT                                   ~11     'length'
         16        CONCAT                                           ~12     !2, ~11
         17        ECHO                                                     ~12
         18      > RETURN                                                   1

Class Pippo:
Function getnome:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FlUmU
function name:  getNome
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   FETCH_OBJ_R                                      ~0      'nome'
          1      > RETURN                                                   ~0
          2*     > RETURN                                                   null

End of function getnome

Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FlUmU
function name:  __construct
number of ops:  4
compiled vars:  !0 = $nome
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV                                             !0      
   10     1        ASSIGN_OBJ                                               'nome'
          2        OP_DATA                                                  !0
   11     3      > RETURN                                                   null

End of function __construct

End of class Pippo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.66 ms | 1396 KiB | 15 Q