3v4l.org

run code in 300+ PHP versions simultaneously
<?php $old_app_builds = [ '320150624', '320150515', '320150505', '320150408', '320150314', '340', '330', '320' ]; $old_versions = implode("|", $old_app_builds); $user_agent = 'Mozilla/5.0 (iPhone; CPU iPhone OS 9_1 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Mobile/13B143 Fisheries/320150624 (iOS; 9.1; Release)'; $needs_upgrade = preg_match("/Fisheries\/(" . $old_versions . ")\s+/", $user_agent); echo $needs_upgrade;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/A3oaS
function name:  (null)
number of ops:  16
compiled vars:  !0 = $old_app_builds, !1 = $old_versions, !2 = $user_agent, !3 = $needs_upgrade
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   14     1        INIT_FCALL                                               'implode'
          2        SEND_VAL                                                 '%7C'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $5      
          5        ASSIGN                                                   !1, $5
   16     6        ASSIGN                                                   !2, 'Mozilla%2F5.0+%28iPhone%3B+CPU+iPhone+OS+9_1+like+Mac+OS+X%29+AppleWebKit%2F601.1.46+%28KHTML%2C+like+Gecko%29+Mobile%2F13B143+Fisheries%2F320150624+%28iOS%3B+9.1%3B+Release%29'
   18     7        INIT_FCALL                                               'preg_match'
          8        CONCAT                                           ~8      '%2FFisheries%5C%2F%28', !1
          9        CONCAT                                           ~9      ~8, '%29%5Cs%2B%2F'
         10        SEND_VAL                                                 ~9
         11        SEND_VAR                                                 !2
         12        DO_ICALL                                         $10     
         13        ASSIGN                                                   !3, $10
   20    14        ECHO                                                     !3
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.69 ms | 1394 KiB | 17 Q