3v4l.org

run code in 300+ PHP versions simultaneously
<?php $intAsString = "0005"; echo $intAsString * 5; echo "\n" . intval($intAsString); echo "\n" . int($intAsString);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/O7mAa
function name:  (null)
number of ops:  12
compiled vars:  !0 = $intAsString
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '0005'
    5     1        MUL                                              ~2      !0, 5
          2        ECHO                                                     ~2
    6     3        CAST                                          4  ~3      !0
          4        CONCAT                                           ~4      '%0A', ~3
          5        ECHO                                                     ~4
    7     6        INIT_FCALL_BY_NAME                                       'int'
          7        SEND_VAR_EX                                              !0
          8        DO_FCALL                                      0  $5      
          9        CONCAT                                           ~6      '%0A', $5
         10        ECHO                                                     ~6
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.7 ms | 1392 KiB | 13 Q