3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "Strings representing numbers automatically turned into numbers \n"; $numbers = array('+123123', '-123123', '1.2e3', '0.00001'); var_dump( $numbers, json_encode($numbers, JSON_NUMERIC_CHECK) ); echo"percobaan kedua \n"; $data=array('coba','coba1','coba2'); var_dump( $number, json_encode($number,json_numeric_check) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GfefX
function name:  (null)
number of ops:  22
compiled vars:  !0 = $numbers, !1 = $data, !2 = $number
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ECHO                                                     'Strings+representing+numbers+automatically+turned+into+numbers+%0A'
    3     1        ASSIGN                                                   !0, <array>
    4     2        INIT_FCALL                                               'var_dump'
    5     3        SEND_VAR                                                 !0
    6     4        INIT_FCALL                                               'json_encode'
          5        SEND_VAR                                                 !0
          6        SEND_VAL                                                 32
          7        DO_ICALL                                         $4      
          8        SEND_VAR                                                 $4
          9        DO_ICALL                                                 
    9    10        ECHO                                                     'percobaan+kedua+%0A'
   10    11        ASSIGN                                                   !1, <array>
   11    12        INIT_FCALL                                               'var_dump'
   12    13        SEND_VAR                                                 !2
   13    14        INIT_FCALL                                               'json_encode'
         15        SEND_VAR                                                 !2
         16        FETCH_CONSTANT                                   ~7      'json_numeric_check'
         17        SEND_VAL                                                 ~7
         18        DO_ICALL                                         $8      
         19        SEND_VAR                                                 $8
         20        DO_ICALL                                                 
   14    21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.83 ms | 1395 KiB | 17 Q