3v4l.org

run code in 300+ PHP versions simultaneously
<?php $mypi = 3.1415926535897932384626433832795028841971; $pi = pi(); printf("pi: %.24f, %.24f, %.24f\n", $pi, $mypi, M_PI);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/i0kA4
function name:  (null)
number of ops:  12
compiled vars:  !0 = $mypi, !1 = $pi
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 3.14159
    3     1        INIT_FCALL                                               'pi'
          2        DO_ICALL                                         $3      
          3        ASSIGN                                                   !1, $3
    4     4        INIT_FCALL                                               'printf'
          5        SEND_VAL                                                 'pi%3A+%25.24f%2C+%25.24f%2C+%25.24f%0A'
          6        SEND_VAR                                                 !1
          7        SEND_VAR                                                 !0
          8        FETCH_CONSTANT                                   ~5      '%C2%A0M_PI'
          9        SEND_VAL                                                 ~5
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.76 ms | 1394 KiB | 17 Q