3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A{ function true(){ return true; } function false(){ return false; } function t(){ assert($this->true() === $this->false()); } } $x = new A; $x->t();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Q8ZUB
function name:  (null)
number of ops:  6
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   NEW                                              $1      'A'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   15     3        INIT_METHOD_CALL                                         !0, 't'
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

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

End of function true

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

End of function false

Function t:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Q8ZUB
function name:  t
number of ops:  11
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   ASSERT_CHECK                                             
          1        INIT_FCALL                                               'assert'
          2        INIT_METHOD_CALL                                         'true'
          3        DO_FCALL                                      0  $0      
          4        INIT_METHOD_CALL                                         'false'
          5        DO_FCALL                                      0  $1      
          6        IS_IDENTICAL                                     ~2      $0, $1
          7        SEND_VAL                                                 ~2
          8        SEND_VAL                                                 'assert%28%24this-%3Etrue%28%29+%3D%3D%3D+%24this-%3Efalse%28%29%29'
          9        DO_ICALL                                                 
   10    10      > RETURN                                                   null

End of function t

End of class A.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.74 ms | 1396 KiB | 15 Q