3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump((int)"1e1", (int)"10", (float)"1e1", (float)"10"); var_dump((int)"1e1" == "10"); var_dump("1e1" == "10"); var_dump("str" == "0"); var_dump("str" == 0); var_dump(sprintf("%F", 0.1));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FvkMf
function name:  (null)
number of ops:  32
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'var_dump'
          1        CAST                                          4  ~0      '1e1'
          2        SEND_VAL                                                 ~0
          3        CAST                                          4  ~1      '10'
          4        SEND_VAL                                                 ~1
          5        CAST                                          5  ~2      '1e1'
          6        SEND_VAL                                                 ~2
          7        CAST                                          5  ~3      '10'
          8        SEND_VAL                                                 ~3
          9        DO_ICALL                                                 
    4    10        INIT_FCALL                                               'var_dump'
         11        CAST                                          4  ~5      '1e1'
         12        IS_EQUAL                                         ~6      ~5, '10'
         13        SEND_VAL                                                 ~6
         14        DO_ICALL                                                 
    5    15        INIT_FCALL                                               'var_dump'
         16        SEND_VAL                                                 <true>
         17        DO_ICALL                                                 
    6    18        INIT_FCALL                                               'var_dump'
         19        SEND_VAL                                                 <false>
         20        DO_ICALL                                                 
    7    21        INIT_FCALL                                               'var_dump'
         22        SEND_VAL                                                 <false>
         23        DO_ICALL                                                 
    9    24        INIT_FCALL                                               'var_dump'
         25        INIT_FCALL                                               'sprintf'
         26        SEND_VAL                                                 '%25F'
         27        SEND_VAL                                                 0.1
         28        DO_ICALL                                         $11     
         29        SEND_VAR                                                 $11
         30        DO_ICALL                                                 
         31      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.56 ms | 1395 KiB | 17 Q