3v4l.org

run code in 300+ PHP versions simultaneously
<?php $shift = 1.30; $bh = explode('.',$shift); $a = intval($bh[0]); $b = intval($bh[1]); echo $a."---"; echo $b;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BL5L6
function name:  (null)
number of ops:  16
compiled vars:  !0 = $shift, !1 = $bh, !2 = $a, !3 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 1.3
    3     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '.'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $5      
          5        ASSIGN                                                   !1, $5
    4     6        FETCH_DIM_R                                      ~7      !1, 0
          7        CAST                                          4  ~8      ~7
          8        ASSIGN                                                   !2, ~8
    5     9        FETCH_DIM_R                                      ~10     !1, 1
         10        CAST                                          4  ~11     ~10
         11        ASSIGN                                                   !3, ~11
    7    12        CONCAT                                           ~13     !2, '---'
         13        ECHO                                                     ~13
    8    14        ECHO                                                     !3
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.55 ms | 1394 KiB | 15 Q