3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tempStyleArray = preg_split( "/[:;]+/", "width: 569px; height: 26.456692913px; margin: 0px; border: 2px solid black;" ); var_dump(tempStyleArray); $key = array_search('height', $tempStyleArray); echo $key;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/J6Uo1
function name:  (null)
number of ops:  16
compiled vars:  !0 = $tempStyleArray, !1 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'preg_split'
          1        SEND_VAL                                                 '%2F%5B%3A%3B%5D%2B%2F'
          2        SEND_VAL                                                 'width%3A+569px%3B+height%3A+26.456692913px%3B+margin%3A+0px%3B+border%3A+2px+solid+black%3B'
          3        DO_ICALL                                         $2      
          4        ASSIGN                                                   !0, $2
    4     5        INIT_FCALL                                               'var_dump'
          6        FETCH_CONSTANT                                   ~4      'tempStyleArray'
          7        SEND_VAL                                                 ~4
          8        DO_ICALL                                                 
    5     9        INIT_FCALL                                               'array_search'
         10        SEND_VAL                                                 'height'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                         $6      
         13        ASSIGN                                                   !1, $6
    6    14        ECHO                                                     !1
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.98 ms | 1398 KiB | 19 Q