3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = deg2rad(90); $b =cos($a); var_export($a); echo "\n"; var_export($b); echo "\n".sprintf('%F', $a)."\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/v8lKO
function name:  (null)
number of ops:  23
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'deg2rad'
          1        SEND_VAL                                                 90
          2        DO_ICALL                                         $2      
          3        ASSIGN                                                   !0, $2
    3     4        INIT_FCALL                                               'cos'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $4      
          7        ASSIGN                                                   !1, $4
    4     8        INIT_FCALL                                               'var_export'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                                 
         11        ECHO                                                     '%0A'
    5    12        INIT_FCALL                                               'var_export'
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                                 
    6    15        INIT_FCALL                                               'sprintf'
         16        SEND_VAL                                                 '%25F'
         17        SEND_VAR                                                 !0
         18        DO_ICALL                                         $8      
         19        CONCAT                                           ~9      '%0A', $8
         20        CONCAT                                           ~10     ~9, '%0A'
         21        ECHO                                                     ~10
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.72 ms | 1395 KiB | 21 Q