3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
177.53 ms | 1005 KiB | 15 Q