3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = json_encode(array('phone_number' => '+123123'), JSON_PRETTY_PRINT); var_dump($json); $json = json_encode(array('phone_number' => '-123123'), JSON_NUMERIC_CHECK); var_dump($json); $json = json_encode(array('phone_number' => '1.2e3'), JSON_NUMERIC_CHECK); var_dump($json); $json = json_encode(array('phone_number' => '0.00001'), JSON_NUMERIC_CHECK); var_dump($json); $json = json_encode(array('phone_number' => '+a33123456789'), JSON_NUMERIC_CHECK); var_dump($json); $json = json_encode(array('phone_number' => 'a123'), JSON_NUMERIC_CHECK); var_dump($json); $json = json_encode(array('phone_number' => '0123'), JSON_NUMERIC_CHECK); var_dump($json);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aPtSl
function name:  (null)
number of ops:  57
compiled vars:  !0 = $json
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'json_encode'
          1        SEND_VAL                                                 <array>
          2        SEND_VAL                                                 128
          3        DO_ICALL                                         $1      
          4        ASSIGN                                                   !0, $1
    3     5        INIT_FCALL                                               'var_dump'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                                 
    5     8        INIT_FCALL                                               'json_encode'
          9        SEND_VAL                                                 <array>
         10        SEND_VAL                                                 32
         11        DO_ICALL                                         $4      
         12        ASSIGN                                                   !0, $4
    6    13        INIT_FCALL                                               'var_dump'
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                                 
    8    16        INIT_FCALL                                               'json_encode'
         17        SEND_VAL                                                 <array>
         18        SEND_VAL                                                 32
         19        DO_ICALL                                         $7      
         20        ASSIGN                                                   !0, $7
    9    21        INIT_FCALL                                               'var_dump'
         22        SEND_VAR                                                 !0
         23        DO_ICALL                                                 
   11    24        INIT_FCALL                                               'json_encode'
         25        SEND_VAL                                                 <array>
         26        SEND_VAL                                                 32
         27        DO_ICALL                                         $10     
         28        ASSIGN                                                   !0, $10
   12    29        INIT_FCALL                                               'var_dump'
         30        SEND_VAR                                                 !0
         31        DO_ICALL                                                 
   14    32        INIT_FCALL                                               'json_encode'
         33        SEND_VAL                                                 <array>
         34        SEND_VAL                                                 32
         35        DO_ICALL                                         $13     
         36        ASSIGN                                                   !0, $13
   15    37        INIT_FCALL                                               'var_dump'
         38        SEND_VAR                                                 !0
         39        DO_ICALL                                                 
   17    40        INIT_FCALL                                               'json_encode'
         41        SEND_VAL                                                 <array>
         42        SEND_VAL                                                 32
         43        DO_ICALL                                         $16     
         44        ASSIGN                                                   !0, $16
   18    45        INIT_FCALL                                               'var_dump'
         46        SEND_VAR                                                 !0
         47        DO_ICALL                                                 
   21    48        INIT_FCALL                                               'json_encode'
         49        SEND_VAL                                                 <array>
         50        SEND_VAL                                                 32
         51        DO_ICALL                                         $19     
         52        ASSIGN                                                   !0, $19
   22    53        INIT_FCALL                                               'var_dump'
         54        SEND_VAR                                                 !0
         55        DO_ICALL                                                 
         56      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.26 ms | 1405 KiB | 17 Q