3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Math { const pi = 3.14; } class CircleMath extends Math { public static function calculateArea($radio) { return Math::pi * pow($radio, 2); } } $radio = 5; echo sprintf('El área del circulo con radio de longitud %s es: %s', $radio, CircleMath::calculateArea($radio)); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fU6Ys
function name:  (null)
number of ops:  11
compiled vars:  !0 = $radio
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   ASSIGN                                                   !0, 5
   15     1        INIT_FCALL                                               'sprintf'
          2        SEND_VAL                                                 'El+%C3%A1rea+del+circulo+con+radio+de+longitud+%25s+es%3A+%25s'
          3        SEND_VAR                                                 !0
          4        INIT_STATIC_METHOD_CALL                                  'CircleMath', 'calculateArea'
          5        SEND_VAR                                                 !0
          6        DO_FCALL                                      0  $2      
          7        SEND_VAR                                                 $2
          8        DO_ICALL                                         $3      
          9        ECHO                                                     $3
   17    10      > RETURN                                                   1

Class Math: [no user functions]
Class CircleMath:
Function calculatearea:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fU6Ys
function name:  calculateArea
number of ops:  8
compiled vars:  !0 = $radio
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV                                             !0      
    9     1        INIT_FCALL                                               'pow'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 2
          4        DO_ICALL                                         $1      
          5        MUL                                              ~2      $1, 3.14
          6      > RETURN                                                   ~2
   10     7*     > RETURN                                                   null

End of function calculatearea

End of class CircleMath.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.03 ms | 1386 KiB | 17 Q