3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); class Pont { public static function validerTaille(float $taille): bool { if ($taille < 50) { trigger_error( 'La longueur est trop courte. (min 50m)', E_USER_ERROR ); } return true; } } var_dump(Pont::validerTaille(150)); var_dump(Pont::validerTaille(20));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fp3XU
function name:  (null)
number of ops:  13
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   20     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_STATIC_METHOD_CALL                                  'Pont', 'validerTaille'
          2        SEND_VAL                                                 150
          3        DO_FCALL                                      0  $0      
          4        SEND_VAR                                                 $0
          5        DO_ICALL                                                 
   21     6        INIT_FCALL                                               'var_dump'
          7        INIT_STATIC_METHOD_CALL                                  'Pont', 'validerTaille'
          8        SEND_VAL                                                 20
          9        DO_FCALL                                      0  $2      
         10        SEND_VAR                                                 $2
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Class Pont:
Function validertaille:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 7
Branch analysis from position: 3
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
filename:       /in/fp3XU
function name:  validerTaille
number of ops:  10
compiled vars:  !0 = $taille
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
    9     1        IS_SMALLER                                               !0, 50
          2      > JMPZ                                                     ~1, ->7
   10     3    >   INIT_FCALL                                               'trigger_error'
   11     4        SEND_VAL                                                 'La+longueur+est+trop+courte.+%28min+50m%29'
   12     5        SEND_VAL                                                 256
   10     6        DO_ICALL                                                 
   16     7    > > RETURN                                                   <true>
   17     8*       VERIFY_RETURN_TYPE                                       
          9*     > RETURN                                                   null

End of function validertaille

End of class Pont.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
139.36 ms | 1460 KiB | 15 Q