3v4l.org

run code in 300+ PHP versions simultaneously
<?php $valid_numbers = '639164481688, 63-9164481688,639-164481688,6391-64481688,63916-4481688, 639164-481688,6391644-81688,63916448-1688,639164481-688, 6391644816-88,63916448168-8,639164481688,639164481688,+63-9164481688,+639-164481688,+6391-64481688,+63916-4481688, +639164-481688,+6391644-81688,+63916448-1688,+639164481-688, +6391644816-88,+63916448168-8,+639164481688, +639164481688,0-9164481688,09-164481688,091-64481688,0916-4481688, 09164-481688,091644-81688,0916448-1688,09164481-688, 091644816-88,0916448168-8,09164481688'; $valid_numbers = array_map(function($val) { return trim($val); }, explode(',', $valid_numbers)); $mobile = '639164481688'; if (in_array($mobile, $valid_numbers)) { // valid mobile number echo $mobile; } else { echo "ERROR!"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 19
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/s1qNR
function name:  (null)
number of ops:  21
compiled vars:  !0 = $valid_numbers, !1 = $mobile
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '639164481688%2C+63-9164481688%2C639-164481688%2C6391-64481688%2C63916-4481688%2C+639164-481688%2C6391644-81688%2C63916448-1688%2C639164481-688%2C+6391644816-88%2C63916448168-8%2C639164481688%2C639164481688%2C%2B63-9164481688%2C%2B639-164481688%2C%2B6391-64481688%2C%2B63916-4481688%2C+%2B639164-481688%2C%2B6391644-81688%2C%2B63916448-1688%2C%2B639164481-688%2C+%2B6391644816-88%2C%2B63916448168-8%2C%2B639164481688%2C+%2B639164481688%2C0-9164481688%2C09-164481688%2C091-64481688%2C0916-4481688%2C+09164-481688%2C091644-81688%2C0916448-1688%2C09164481-688%2C+091644816-88%2C0916448168-8%2C09164481688'
    5     1        INIT_FCALL                                               'array_map'
          2        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2Fs1qNR%3A5%240'
    7     3        SEND_VAL                                                 ~3
          4        INIT_FCALL                                               'explode'
          5        SEND_VAL                                                 '%2C'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $4      
          8        SEND_VAR                                                 $4
          9        DO_ICALL                                         $5      
    5    10        ASSIGN                                                   !0, $5
    9    11        ASSIGN                                                   !1, '639164481688'
   11    12        INIT_FCALL                                               'in_array'
         13        SEND_VAR                                                 !1
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                         $8      
         16      > JMPZ                                                     $8, ->19
   13    17    >   ECHO                                                     !1
         18      > JMP                                                      ->20
   15    19    >   ECHO                                                     'ERROR%21'
   16    20    > > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2Fs1qNR%3A5%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/s1qNR
function name:  {closure}
number of ops:  6
compiled vars:  !0 = $val
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    6     1        INIT_FCALL                                               'trim'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $1      
          4      > RETURN                                                   $1
    7     5*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2Fs1qNR%3A5%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.12 ms | 1396 KiB | 21 Q