3v4l.org

run code in 300+ PHP versions simultaneously
<?php $vc = 1 === version_compare('5.4', PHP_VERSION); $foo = version_compare(PHP_VERSION, '5.4.0', '>='); var_dump($vc, $foo);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ScN6n
function name:  (null)
number of ops:  17
compiled vars:  !0 = $vc, !1 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'version_compare'
          1        SEND_VAL                                                 '5.4'
          2        SEND_VAL                                                 '8.0.0'
          3        DO_ICALL                                         $2      
          4        IS_IDENTICAL                                     ~3      $2, 1
          5        ASSIGN                                                   !0, ~3
    4     6        INIT_FCALL                                               'version_compare'
          7        SEND_VAL                                                 '8.0.0'
          8        SEND_VAL                                                 '5.4.0'
          9        SEND_VAL                                                 '%3E%3D'
         10        DO_ICALL                                         $5      
         11        ASSIGN                                                   !1, $5
    6    12        INIT_FCALL                                               'var_dump'
         13        SEND_VAR                                                 !0
         14        SEND_VAR                                                 !1
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.49 ms | 1394 KiB | 17 Q