3v4l.org

run code in 300+ PHP versions simultaneously
<?php class C { public function getValue() { return 4; } } $c = new C(); var_dump(is_null($c->getValue())); var_dump(is_numeric($c->getValue()));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WR6dG
function name:  (null)
number of ops:  18
compiled vars:  !0 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   NEW                                              $1      'C'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
    8     3        INIT_FCALL                                               'var_dump'
          4        INIT_METHOD_CALL                                         !0, 'getValue'
          5        DO_FCALL                                      0  $4      
          6        TYPE_CHECK                                    2  ~5      $4
          7        SEND_VAL                                                 ~5
          8        DO_ICALL                                                 
    9     9        INIT_FCALL                                               'var_dump'
         10        INIT_FCALL                                               'is_numeric'
         11        INIT_METHOD_CALL                                         !0, 'getValue'
         12        DO_FCALL                                      0  $7      
         13        SEND_VAR                                                 $7
         14        DO_ICALL                                         $8      
         15        SEND_VAR                                                 $8
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Class C:
Function getvalue:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WR6dG
function name:  getValue
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E > > RETURN                                                   4
          1*     > RETURN                                                   null

End of function getvalue

End of class C.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.02 ms | 1395 KiB | 17 Q