3v4l.org

run code in 500+ PHP versions simultaneously
<?php $GLOBALS['wp_version'] = '5.9-alpha-53344-src'; $current_version = substr( $GLOBALS['wp_version'], 0, 3 ); var_dump( $current_version ); $current_version = number_format( (float) $current_version - 0.1, 1 ); var_dump( $current_version ); $latest_stable = sprintf( '%s.x', $current_version ); var_dump( $latest_stable );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/M7Cb2
function name:  (null)
number of ops:  26
compiled vars:  !0 = $current_version, !1 = $latest_stable
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   FETCH_W                          global              $2      'wp_version'
          1        ASSIGN                                                       $2, '5.9-alpha-53344-src'
    4     2        FETCH_R                          global              ~4      'wp_version'
          3        FRAMELESS_ICALL_3                substr              ~5      ~4, 0
          4        OP_DATA                                                      3
          5        ASSIGN                                                       !0, ~5
    5     6        INIT_FCALL                                                   'var_dump'
          7        SEND_VAR                                                     !0
          8        DO_ICALL                                                     
    6     9        INIT_FCALL                                                   'number_format'
         10        CAST                                              5  ~8      !0
         11        SUB                                                  ~9      ~8, 0.1
         12        SEND_VAL                                                     ~9
         13        SEND_VAL                                                     1
         14        DO_ICALL                                             $10     
         15        ASSIGN                                                       !0, $10
    7    16        INIT_FCALL                                                   'var_dump'
         17        SEND_VAR                                                     !0
         18        DO_ICALL                                                     
    8    19        NOP                                                          
         20        FAST_CONCAT                                          ~13     !0, '.x'
         21        ASSIGN                                                       !1, ~13
    9    22        INIT_FCALL                                                   'var_dump'
         23        SEND_VAR                                                     !1
         24        DO_ICALL                                                     
         25      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
170.38 ms | 1861 KiB | 15 Q