3v4l.org

run code in 300+ PHP versions simultaneously
<?php if(PHP_VERSION === '7.0.6') echo random_int(0, 1) ? "Go to bed" : "Have a coffee";;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 1, Position 2 = 10
Branch analysis from position: 1
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 8
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
filename:       /in/KllqT
function name:  (null)
number of ops:  11
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E > > JMPZ                                                     <false>, ->10
          1    >   INIT_FCALL                                               'random_int'
          2        SEND_VAL                                                 0
          3        SEND_VAL                                                 1
          4        DO_ICALL                                         $0      
          5      > JMPZ                                                     $0, ->8
          6    >   QM_ASSIGN                                        ~1      'Go+to+bed'
          7      > JMP                                                      ->9
          8    >   QM_ASSIGN                                        ~1      'Have+a+coffee'
          9    >   ECHO                                                     ~1
         10    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.82 ms | 1066 KiB | 14 Q