3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = pi(); $a = strval($str); $b = (string)$str; $c = "$str"; var_dump($a); var_dump($b); var_dump($c); $p = pi(); echo gettype($p);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/C1Sac
function name:  (null)
number of ops:  24
compiled vars:  !0 = $str, !1 = $a, !2 = $b, !3 = $c, !4 = $p
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'pi'
          1        DO_ICALL                                         $5      
          2        ASSIGN                                                   !0, $5
    5     3        CAST                                          6  ~7      !0
          4        ASSIGN                                                   !1, ~7
    6     5        CAST                                          6  ~9      !0
          6        ASSIGN                                                   !2, ~9
    7     7        CAST                                          6  ~11     !0
          8        ASSIGN                                                   !3, ~11
    9     9        INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                                 
   10    12        INIT_FCALL                                               'var_dump'
         13        SEND_VAR                                                 !2
         14        DO_ICALL                                                 
   11    15        INIT_FCALL                                               'var_dump'
         16        SEND_VAR                                                 !3
         17        DO_ICALL                                                 
   13    18        INIT_FCALL                                               'pi'
         19        DO_ICALL                                         $16     
         20        ASSIGN                                                   !4, $16
   14    21        GET_TYPE                                         ~18     !4
         22        ECHO                                                     ~18
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.75 ms | 1395 KiB | 17 Q