3v4l.org

run code in 300+ PHP versions simultaneously
<?php function cmp($v) { $r = version_compare( $v, '3.8', '<' ); echo $v . ' < 3.8 :' . (int)$r; } cmp('3.8.0');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0qKJI
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'cmp'
          1        SEND_VAL                                                 '3.8.0'
          2        DO_FCALL                                      0          
          3      > RETURN                                                   1

Function cmp:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0qKJI
function name:  cmp
number of ops:  12
compiled vars:  !0 = $v, !1 = $r
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        INIT_FCALL                                               'version_compare'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 '3.8'
          4        SEND_VAL                                                 '%3C'
          5        DO_ICALL                                         $2      
          6        ASSIGN                                                   !1, $2
    5     7        CONCAT                                           ~4      !0, '+%3C+3.8+%3A'
          8        CAST                                          4  ~5      !1
          9        CONCAT                                           ~6      ~4, ~5
         10        ECHO                                                     ~6
    6    11      > RETURN                                                   null

End of function cmp

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158 ms | 1389 KiB | 16 Q