3v4l.org

run code in 300+ PHP versions simultaneously
<?php $single_chart = [ '128', '129', '120', '130', '140', '123', '124', '125', '126', '127', '137', '138', '139', '149', '159', '150', '160', '134', '135', '136', '146', '147', '148', '158', '168', '169', '179', '170', '180', '145', '236', '156', '157', '167', '230', '178', '250', '189', '234', '190', '245', '237', '238', '239', '249', '240', '269', '260', '270', '235', '290', '246', '247', '248', '258', '259', '278', '279', '289', '280', '380', '345', '256', '257', '267', '268', '340', '350', '360', '370', '470', '390', '346', '347', '348', '358', '359', '369', '379', '389', '489', '480', '490', '356', '357', '349', '368', '378', '450', '460', '579', '570', '580', '590', '456', '367', '458', '459', '469', '479', '560', '589', '670', '680', '690', '457', '467', '468', '478', '569', '678', '679', '689', '789', '780', '790', '890', '567', '568', '578']; $double_chart = [ '100', '110', '166', '112', '113', '114', '115', '116', '117', '118', '119', '200', '229', '220', '122', '277', '133', '224', '144', '226', '155', '228', '300', '266', '177', '330', '188', '233', '199', '244', '227', '255', '337', '338', '339', '448', '223', '288', '225', '299', '335', '336', '355', '400', '366', '466', '377', '440', '388', '334', '344', '499', '445', '446', '447', '556', '449', '477', '559', '488', '399', '660', '599', '455', '500', '600', '557', '558', '577', '550', '588', '688', '779', '699', '799', '880', '566', '800', '667', '668', '669', '778', '788', '770', '889', '899', '700', '990', '900', '677']; $digits = '235046'; $single_chart_filtered = []; foreach($single_chart as $chart_value){ if(preg_match("/^[$digits]+$/",$chart_value) === 1){ $single_chart_filtered[] = $chart_value; } } print_r($single_chart_filtered); $double_chart_filtered = []; foreach($double_chart as $chart_value){ if(preg_match("/^[$digits]+$/",$chart_value) === 1){ $double_chart_filtered[] = $chart_value; } } print_r($double_chart_filtered);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 5, Position 2 = 18
Branch analysis from position: 5
2 jumps found. (Code = 78) Position 1 = 6, Position 2 = 18
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 17
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
Branch analysis from position: 17
Branch analysis from position: 18
2 jumps found. (Code = 77) Position 1 = 24, Position 2 = 37
Branch analysis from position: 24
2 jumps found. (Code = 78) Position 1 = 25, Position 2 = 37
Branch analysis from position: 25
2 jumps found. (Code = 43) Position 1 = 34, Position 2 = 36
Branch analysis from position: 34
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
Branch analysis from position: 36
Branch analysis from position: 37
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 37
Branch analysis from position: 18
filename:       /in/jChvm
function name:  (null)
number of ops:  42
compiled vars:  !0 = $single_chart, !1 = $double_chart, !2 = $digits, !3 = $single_chart_filtered, !4 = $chart_value, !5 = $double_chart_filtered
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ASSIGN                                                   !0, <array>
   19     1        ASSIGN                                                   !1, <array>
   30     2        ASSIGN                                                   !2, '235046'
   32     3        ASSIGN                                                   !3, <array>
   34     4      > FE_RESET_R                                       $10     !0, ->18
          5    > > FE_FETCH_R                                               $10, !4, ->18
   35     6    >   INIT_FCALL                                               'preg_match'
          7        ROPE_INIT                                     3  ~12     '%2F%5E%5B'
          8        ROPE_ADD                                      1  ~12     ~12, !2
          9        ROPE_END                                      2  ~11     ~12, '%5D%2B%24%2F'
         10        SEND_VAL                                                 ~11
         11        SEND_VAR                                                 !4
         12        DO_ICALL                                         $14     
         13        IS_IDENTICAL                                             $14, 1
         14      > JMPZ                                                     ~15, ->17
   36    15    >   ASSIGN_DIM                                               !3
         16        OP_DATA                                                  !4
   34    17    > > JMP                                                      ->5
         18    >   FE_FREE                                                  $10
   40    19        INIT_FCALL                                               'print_r'
         20        SEND_VAR                                                 !3
         21        DO_ICALL                                                 
   42    22        ASSIGN                                                   !5, <array>
   44    23      > FE_RESET_R                                       $19     !1, ->37
         24    > > FE_FETCH_R                                               $19, !4, ->37
   45    25    >   INIT_FCALL                                               'preg_match'
         26        ROPE_INIT                                     3  ~21     '%2F%5E%5B'
         27        ROPE_ADD                                      1  ~21     ~21, !2
         28        ROPE_END                                      2  ~20     ~21, '%5D%2B%24%2F'
         29        SEND_VAL                                                 ~20
         30        SEND_VAR                                                 !4
         31        DO_ICALL                                         $23     
         32        IS_IDENTICAL                                             $23, 1
         33      > JMPZ                                                     ~24, ->36
   46    34    >   ASSIGN_DIM                                               !5
         35        OP_DATA                                                  !4
   44    36    > > JMP                                                      ->24
         37    >   FE_FREE                                                  $19
   50    38        INIT_FCALL                                               'print_r'
         39        SEND_VAR                                                 !5
         40        DO_ICALL                                                 
         41      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
211.34 ms | 1400 KiB | 17 Q