3v4l.org

run code in 300+ PHP versions simultaneously
<?php function isTrue($bool) { return $bool ? 'Ja' : 'Nee'; } $true1 = 1 == true; $false1 = 1 == false; $true0 = 0 == true; $false0 = 0 == false; echo " 1 is gelijk aan true? ".isTrue($true1)."\r\n 1 is gelijk aan false? ".isTrue($false1)."\r\n 0 is gelijk aan true? ".isTrue($true0)."\r\n 0 is gelijk aan false? ".isTrue($false0)." ";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KaOnj
function name:  (null)
number of ops:  26
compiled vars:  !0 = $true1, !1 = $false1, !2 = $true0, !3 = $false0
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   ASSIGN                                                   !0, <true>
    8     1        ASSIGN                                                   !1, <false>
   10     2        ASSIGN                                                   !2, <false>
   11     3        ASSIGN                                                   !3, <true>
   14     4        INIT_FCALL                                               'istrue'
          5        SEND_VAR                                                 !0
          6        DO_FCALL                                      0  $8      
          7        CONCAT                                           ~9      '%0A1+is+gelijk+aan+true%3F+', $8
          8        CONCAT                                           ~10     ~9, '%0D%0A%0A1+is+gelijk+aan+false%3F+'
   15     9        INIT_FCALL                                               'istrue'
         10        SEND_VAR                                                 !1
         11        DO_FCALL                                      0  $11     
         12        CONCAT                                           ~12     ~10, $11
         13        CONCAT                                           ~13     ~12, '%0D%0A%0A%0A0+is+gelijk+aan+true%3F+'
   17    14        INIT_FCALL                                               'istrue'
         15        SEND_VAR                                                 !2
         16        DO_FCALL                                      0  $14     
         17        CONCAT                                           ~15     ~13, $14
         18        CONCAT                                           ~16     ~15, '%0D%0A%0A0+is+gelijk+aan+false%3F+'
   18    19        INIT_FCALL                                               'istrue'
         20        SEND_VAR                                                 !3
         21        DO_FCALL                                      0  $17     
         22        CONCAT                                           ~18     ~16, $17
         23        CONCAT                                           ~19     ~18, '%0A'
         24        ECHO                                                     ~19
   19    25      > RETURN                                                   1

Function istrue:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 2, Position 2 = 4
Branch analysis from position: 2
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KaOnj
function name:  isTrue
number of ops:  7
compiled vars:  !0 = $bool
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    4     1      > JMPZ                                                     !0, ->4
          2    >   QM_ASSIGN                                        ~1      'Ja'
          3      > JMP                                                      ->5
          4    >   QM_ASSIGN                                        ~1      'Nee'
          5    > > RETURN                                                   ~1
    5     6*     > RETURN                                                   null

End of function istrue

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.61 ms | 1398 KiB | 17 Q