3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (strnatcmp(phpversion(),'5.4.7') >= 0) { $host="127.0.0.1" ; $port=9876; $timeout=30; $sk=fsockopen($host,$port,$errnum,$errstr,$timeout) ; if (!is_resource($sk)) { exit("connection fail: ".$errnum." ".$errstr) ; } else { echo "Connected"; } } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 28
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 22, Position 2 = 27
Branch analysis from position: 22
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 28
filename:       /in/lujmQ
function name:  (null)
number of ops:  29
compiled vars:  !0 = $host, !1 = $port, !2 = $timeout, !3 = $sk, !4 = $errnum, !5 = $errstr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'strnatcmp'
          1        INIT_FCALL                                               'phpversion'
          2        DO_ICALL                                         $6      
          3        SEND_VAR                                                 $6
          4        SEND_VAL                                                 '5.4.7'
          5        DO_ICALL                                         $7      
          6        IS_SMALLER_OR_EQUAL                                      0, $7
          7      > JMPZ                                                     ~8, ->28
    4     8    >   ASSIGN                                                   !0, '127.0.0.1'
    5     9        ASSIGN                                                   !1, 9876
    6    10        ASSIGN                                                   !2, 30
    7    11        INIT_FCALL                                               'fsockopen'
         12        SEND_VAR                                                 !0
         13        SEND_VAR                                                 !1
         14        SEND_REF                                                 !4
         15        SEND_REF                                                 !5
         16        SEND_VAR                                                 !2
         17        DO_ICALL                                         $12     
         18        ASSIGN                                                   !3, $12
    8    19        TYPE_CHECK                                  512  ~14     !3
         20        BOOL_NOT                                         ~15     ~14
         21      > JMPZ                                                     ~15, ->27
    9    22    >   CONCAT                                           ~16     'connection+fail%3A+', !4
         23        CONCAT                                           ~17     ~16, '+'
         24        CONCAT                                           ~18     ~17, !5
         25      > EXIT                                                     ~18
         26*       JMP                                                      ->28
   12    27    >   ECHO                                                     'Connected'
   15    28    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.11 ms | 1396 KiB | 19 Q