3v4l.org

run code in 300+ PHP versions simultaneously
<?php $rentalArray = array(); $rentalArray[] = array('id' => '', 'text' => ''); $rentalArray[] = array('id' => 'MobilityScooter', 'text' => 'Mobility Scooter'); $rentalArray[] = array('id' => 'PoweredWheelchair', 'text' => 'Powered Wheelchair'); $rentalArray[] = array('id' => 'ManualWheelchair', 'text' => 'Manual Wheelchair'); $rentalArray[] = array('id' => 'FoldingRamp', 'text' => 'Folding Ramp'); $rentalArray[] = array('id' => 'HospitalBed', 'text' => 'Hospital Bed'); $rentalArray[] = array('id' => 'OverbedTable', 'text' => 'Overbed Table'); $rentalArray[] = array('id' => 'PatientLifter', 'text' => 'Patient Lifter'); $rentalArray[] = array('id' => 'Trapeze', 'text' => 'Trapeze'); $rentalArray[] = array('id' => 'HipChair', 'text' => 'Hip Chair'); $rentalArray[] = array('id' => 'KneeWalker', 'text' => 'Knee Walker'); $rentalArray[] = array('id' => 'ShowerCommodeChair', 'text' => 'Rehab Shower Commode Chair'); $rentalArray[] = array('id' => 'Others', 'text' => 'Other Products'); $rentalArray[] = array('id' => 'Undecided', 'text' => 'Undecided / Unknown'); $rentalScooterArray = array(); $rentalScooterArray[] = array('id' => 'Undecided', 'text' => 'Undecided / Unknown'); $rentalScooterArray[] = array('id' => '3WheelScooter', 'text' => '3-Wheel Scooter'); $rentalScooterArray[] = array('id' => '4WheelScooter', 'text' => '4-Wheel Scooter'); $rentalScooterArray[] = array('id' => 'BariatricScooter', 'text' => 'Bariatric Scooter'); $rentalPowerWCArray = array(); $rentalPowerWCArray[] = array('id' => 'Undecided', 'text' => 'Undecided / Unknown'); $rentalPowerWCArray[] = array('id' => 'TravelPowerchair', 'text' => 'Travel Powered Wheelchair'); $rentalPowerWCArray[] = array('id' => 'StandardPowerchair', 'text' => 'Standard Powered Wheelchair'); $rentalPowerWCArray[] = array('id' => 'BariatricPowerchair', 'text' => 'Bariatric Powered Wheelchair'); $rentalManualWCArray = array(); $rentalManualWCArray[] = array('id' => 'Undecided', 'text' => 'Undecided / Unknown'); $rentalManualWCArray[] = array('id' => 'TransportWheelchair', 'text' => 'Transport Wheelchair'); $rentalManualWCArray[] = array('id' => 'StandardWheelhcair', 'text' => 'Standard Wheelhcair'); $rentalManualWCArray[] = array('id' => 'LightweightWheelchair', 'text' => 'Lightweight Wheelchair'); $rentalManualWCArray[] = array('id' => 'RecliningBackWheelchair', 'text' => 'Reclining Back Wheelchair'); $rentalManualWCArray[] = array('id' => 'BariatricWheelchair', 'text' => 'Bariatric Wheelchair'); $rentalManualWCArray[] = array('id' => 'ExtraWideBariatricWheelchair', 'text' => 'Extra Wide Bariatric Wheelchair'); $rentalRampsArray = array(); $rentalRampsArray[] = array('id' => 'Undecided', 'text' => 'Undecided / Unknown'); $rentalRampsArray[] = array('id' => '3FtRamp', 'text' => '3-Foot Folding Ramp'); $rentalRampsArray[] = array('id' => '6FtRamp', 'text' => '6-Foot Folding Ramp'); $rentalRampsArray[] = array('id' => '10FtRamp', 'text' => '10-Foot Folding Ramp'); $rentalHospitalBedArray = array(); $rentalHospitalBedArray[] = array('id' => 'Undecided', 'text' => 'Undecided / Unknown'); $rentalHospitalBedArray[] = array('id' => 'SemiElectricBed', 'text' => 'Semi-Electric Bed'); $rentalHospitalBedArray[] = array('id' => 'FullElectricBed', 'text' => 'Full-Electric Bed'); $rentalHospitalBedArray[] = array('id' => 'FullElectricBariatricBed', 'text' => 'Full-Electric Bariatric Bed'); $rentalLifterArray = array(); $rentalLifterArray[] = array('id' => 'Undecided', 'text' => 'Undecided / Unknown'); $rentalLifterArray[] = array('id' => 'ManualLifter', 'text' => 'Manual Patient Lifter'); $rentalLifterArray[] = array('id' => 'PoweredLifter', 'text' => 'Powered Patient Lifter'); $rentalDelivery = array(); $rentalDelivery[] = array('id' => '', 'text' => ''); $rentalDelivery[] = array('id' => 'Pickup', 'text' => 'Pickup at Homepro (Brooklyn, NY)'); $rentalDelivery[] = array('id' => 'Deliver', 'text' => 'Deliver to your home/hotel'); $rentalDeliveryState = array(); $rentalDeliveryState[] = array('id' => 'NY', 'text' => 'New York'); $rentalDeliveryState[] = array('id' => 'NJ', 'text' => 'New Jersey'); $rentalDeliveryState[] = array('id' => 'CT', 'text' => 'Connecticut'); ?> <div class="centerColumn" id="rentalReservationDefault"> <h1 id="rentalReservationDefaultHeading"><?php echo HEADING_TITLE; ?></h1> <?php if ($messageStack->size('rental_reservation') > 0) echo $messageStack->output('rental_reservation'); ?> <?php if (isset($_GET['action']) && ($_GET['action'] == 'success')) { ?> <div class="mainContent success"><?php echo TEXT_SUCCESS; ?></div> <div class="buttonRow"><?php echo zen_back_link() . zen_image_button(BUTTON_IMAGE_BACK, BUTTON_BACK_ALT) . '</a>'; ?></div> <?php } else { ?> <?php echo zen_draw_form('rental_reservation', zen_href_link(FILENAME_RENTAL_RESERVATION, 'action=send')); ?> <div id="rentalReservationContent" class="content"> <p>This is a testing message.</p> <fieldset id="rentalReservation-Contacts"> <legend>Rental Reservation Form</legend> <div class="alert forward"><?php echo FORM_REQUIRED_INFORMATION; ?></div> <br class="clearBoth" /> <label class="inputLabel" for="contact_firstname">First Name:</label> <?php echo zen_draw_input_field('contact_firstname', zen_output_string_protected($contact_firstname), ' size="30" id="contact_firstname"') . '<span class="alert">' . ENTRY_REQUIRED_SYMBOL . '</span>'; ?> <br class="clearBoth" /> <label class="inputLabel" for="contact_lastname">Last Name:</label> <?php echo zen_draw_input_field('contact_lastname', zen_output_string_protected($contact_lastname), ' size="30" id="contact_lastname"') . '<span class="alert">' . ENTRY_REQUIRED_SYMBOL . '</span>'; ?> <br class="clearBoth" /> <label class="inputLabel" for="contact_phone">Phone Number:</label> <?php echo zen_draw_input_field('contact_phone', zen_output_string_protected($contact_phone), ' size="30" id="contact_phone"') . '<span class="alert">' . ENTRY_REQUIRED_SYMBOL . '</span>'; ?> <br class="clearBoth" /> <label class="inputLabel" for="contact_email">Email:</label> <?php echo zen_draw_input_field('contact_email', zen_output_string_protected($contact_email), ' size="30" id="contact_email"') . '<span class="alert">' . ENTRY_REQUIRED_SYMBOL . '</span>'; ?> <br class="clearBoth" /> <label class="inputLabel" for="rental_renttype">Rental Category:</label> <?php echo zen_draw_pull_down_menu('rental_renttype', $rentalArray) . '<span class="alert">' . ENTRY_REQUIRED_SYMBOL . '</span>'; ?> <br class="clearBoth" /> <label class="inputLabel" id="inputLabelScooter" for="rental_rentsubtype">Rental Sub-Category:</label> <?php echo zen_draw_pull_down_menu('rental_rentsubtype', $rentalScooterArray) . '<span class="alertRS_S">' . ENTRY_REQUIRED_SYMBOL . '</span>'; ?> <br class="clearBoth" /> <label class="inputLabel" id="inputLabelPWC" for="rental_rentsubtype">Rental Sub-Category:</label> <?php echo zen_draw_pull_down_menu('rental_rentsubtype', $rentalPowerWCArray) . '<span class="alertRS_PWC">' . ENTRY_REQUIRED_SYMBOL . '</span>'; ?> <br class="clearBoth" /> <label class="inputLabel" id="inputLabelMWC" for="rental_rentsubtype">Rental Sub-Category:</label> <?php echo zen_draw_pull_down_menu('rental_rentsubtype', $rentalManualWCArray) . '<span class="alertRS_MWC">' . ENTRY_REQUIRED_SYMBOL . '</span>'; ?> <br class="clearBoth" /> <label class="inputLabel" id="inputLabelRamp" for="rental_rentsubtype">Rental Sub-Category:</label> <?php echo zen_draw_pull_down_menu('rental_rentsubtype', $rentalRampsArray) . '<span class="alertRS_R">' . ENTRY_REQUIRED_SYMBOL . '</span>'; ?> <br class="clearBoth" /> <label class="inputLabel" id="inputLabelHBed" for="rental_rentsubtype">Rental Sub-Category:</label> <?php echo zen_draw_pull_down_menu('rental_rentsubtype', $rentalHospitalBedArray) . '<span class="alertRS_HB">' . ENTRY_REQUIRED_SYMBOL . '</span>'; ?> <br class="clearBoth" /> <label class="inputLabel" id="inputLabelLifter" for="rental_rentsubtype">Rental Sub-Category:</label> <?php echo zen_draw_pull_down_menu('rental_rentsubtype', $rentalLifterArray) . '<span class="alertRS_L">' . ENTRY_REQUIRED_SYMBOL . '</span>'; ?> <br class="clearBoth" /> <label class="inputLabel" for="rental_startdate">Start Date:</label> <?php //echo zen_draw_input_field('rental_startdate', zen_output_string_protected($rental_startdate), ' size="30" id="rental_startdate"'); ?> <input type="text" id="rental_startdate" name="rental_startdate" /> <br class="clearBoth" /> <label class="inputLabel" for="rental_enddate">End Date:</label> <?php //echo zen_draw_input_field('rental_enddate', zen_output_string_protected($contact_email), ' size="30" id="rental_enddate"'); ?> <input type="text" id="rental_enddate" name="rental_enddate" /> <br class="clearBoth" /> <label class="inputLabel" for="rental_delivery">Delivery/Pickup:</label> <?php echo zen_draw_pull_down_menu('rental_delivery', $rentalDelivery, '', 'id="rental_delivery"') . '<span class="alert">' . ENTRY_REQUIRED_SYMBOL . '</span>'; ?> <br class="clearBoth" /> <label class="inputLabel" id="inputLabelDA1" for="contact_deliver_address">Delivery Address:</label> <?php echo zen_draw_input_field('contact_deliver_address', zen_output_string_protected($contact_deliver_address), ' size="50" id="contact_deliver_address1"');?> <br class="clearBoth" /> <label class="inputLabel" id="inputLabelDA2" for="contact_deliver_address">Delivery Address:</label> <?php echo zen_draw_input_field('contact_deliver_address', zen_output_string_protected($contact_deliver_address), ' size="50" id="contact_deliver_address2"');?> <br class="clearBoth" /> <label class="inputLabel" id="inputLabelDC" for="contact_deliver_city">Delivery City:</label> <?php echo zen_draw_input_field('contact_deliver_city', zen_output_string_protected($contact_deliver_city), ' size="30" id="contact_deliver_city"');?> <br class="clearBoth" /> <label class="inputLabel" id="inputLabelDS" for="contact_deliver_state">Delivery State:</label> <?php echo zen_draw_pull_down_menu('rental_renttype', $rentalDeliveryState); ?> <br class="clearBoth" /> <label class="inputLabelDZ" id="inputLabelDZ" for="contact_deliver_zip">Delivery ZIP Code:</label> <?php echo zen_draw_input_field('contact_deliver_zip', zen_output_string_protected($contact_deliver_zip), ' size="5" id="contact_deliver_zip"') . '<span class="alertDZ">' . ENTRY_REQUIRED_SYMBOL . '</span>'; ?> <br class="clearBoth" /> <label for="comments">Comments:</label> <?php echo zen_draw_textarea_field('comments', 30, 4, zen_output_string_protected($comments), 'id="comments"'); ?> <br class="clearBoth" /> </fieldset> <div class="buttonRow back"><?php echo zen_back_link() . zen_image_button(BUTTON_IMAGE_BACK, BUTTON_BACK_ALT) . '</a>'; ?></div> <div class="buttonRow forward"><?php echo zen_image_submit(BUTTON_IMAGE_SEND, BUTTON_SEND_ALT); ?></div> <br class="clearBoth" /> </div> </form> <?php } ?> </div>

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.60.0000.01418.81
8.3.50.0150.00822.11
8.3.40.0030.01318.86
8.3.30.0140.00019.17
8.3.20.0050.00320.41
8.3.10.0040.00420.48
8.3.00.0040.00419.50
8.2.180.0130.01018.07
8.2.170.0150.00322.96
8.2.160.0100.00320.47
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0050.00226.16
8.2.120.0060.00322.25
8.2.110.0070.00319.52
8.2.100.0080.00418.13
8.2.90.0040.00419.47
8.2.80.0090.00017.97
8.2.70.0080.00017.88
8.2.60.0060.00318.18
8.2.50.0000.00818.07
8.2.40.0050.00318.47
8.2.30.0070.00019.51
8.2.20.0030.00617.90
8.2.10.0000.00718.30
8.2.00.0000.00817.94
8.1.280.0090.00925.92
8.1.270.0000.00722.31
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0060.00321.00
8.1.230.0110.00017.70
8.1.220.0080.00017.80
8.1.210.0050.00318.77
8.1.200.0120.00617.22
8.1.190.0060.00317.48
8.1.180.0030.00618.10
8.1.170.0000.00818.67
8.1.160.0040.00422.08
8.1.150.0030.00519.04
8.1.140.0030.00517.66
8.1.130.0070.00017.91
8.1.120.0000.00817.62
8.1.110.0000.00817.64
8.1.100.0050.00217.61
8.1.90.0020.00517.44
8.1.80.0050.00317.55
8.1.70.0050.00217.50
8.1.60.0060.00317.68
8.1.50.0000.00917.57
8.1.40.0000.00717.65
8.1.30.0040.00417.71
8.1.20.0050.00317.69
8.1.10.0050.00317.63
8.1.00.0030.00617.57
8.0.300.0000.00818.77
8.0.290.0050.00316.88
8.0.280.0030.00518.52
8.0.270.0000.00717.45
8.0.260.0040.00417.43
8.0.250.0000.00717.08
8.0.240.0030.00717.20
8.0.230.0000.00717.16
8.0.220.0070.00017.10
8.0.210.0030.00317.02
8.0.200.0070.00517.14
8.0.190.0040.00417.06
8.0.180.0000.00817.13
8.0.170.0080.00017.11
8.0.160.0050.00316.98
8.0.150.0000.00817.04
8.0.140.0060.00617.07
8.0.130.0030.00313.60
8.0.120.0050.00316.98
8.0.110.0080.00016.98
8.0.100.0040.00417.00
8.0.90.0040.00416.98
8.0.80.0130.00317.04
8.0.70.0040.00417.13
8.0.60.0030.00617.10
8.0.50.0000.00717.00
8.0.30.0070.01517.25
8.0.20.0090.01717.47
8.0.10.0070.00017.34
8.0.00.0130.00817.04
7.4.330.0000.00515.01
7.4.320.0060.00016.71
7.4.300.0030.00316.64
7.4.290.0100.00016.62
7.4.280.0030.00616.74
7.4.270.0000.00816.70
7.4.260.0040.00316.57
7.4.250.0050.00316.65
7.4.240.0010.00616.60
7.4.230.0070.00016.45
7.4.220.0040.01616.69
7.4.210.0090.00616.66
7.4.200.0040.00416.84
7.4.160.0080.00816.64
7.4.150.0090.00917.40
7.4.140.0050.01417.86
7.4.130.0140.00616.61
7.4.120.0070.01016.78
7.4.110.0160.00616.81
7.4.100.0120.00616.94
7.4.90.0150.00316.53
7.4.80.0090.00919.37
7.4.70.0070.01016.56
7.4.60.0070.01016.50
7.4.50.0000.00916.70
7.4.40.0130.00316.69
7.4.30.0070.01016.87
7.4.00.0000.01715.34
7.3.330.0030.00313.14
7.3.320.0050.00013.15
7.3.310.0000.00716.42
7.3.300.0030.00316.41
7.3.290.0030.01216.45
7.3.280.0090.00816.35
7.3.270.0060.01217.40
7.3.260.0210.00316.80
7.3.250.0120.00716.67
7.3.240.0070.01316.46
7.3.230.0150.00316.63
7.3.210.0140.00716.43
7.3.200.0110.00819.39
7.3.190.0090.01116.64
7.3.180.0050.01116.51
7.3.170.0060.01016.47
7.3.160.0150.00316.60
7.2.330.0060.01116.68
7.2.320.0110.01116.86
7.2.310.0120.00616.54
7.2.300.0110.00716.65
7.2.290.0090.01516.87
7.2.60.0180.00416.61
7.2.00.0030.00919.44
7.1.200.0000.01615.60
7.1.100.0030.01017.78
7.1.70.0090.00617.18
7.1.60.0090.01519.32
7.1.50.0110.01416.57
7.1.00.0070.07022.54
7.0.200.0030.00616.45
7.0.140.0030.07322.07
7.0.100.0070.05320.08
7.0.90.0000.08020.00
7.0.80.0170.06020.00
7.0.70.0070.08020.14
7.0.60.0070.04020.00
7.0.50.0100.07320.48
7.0.40.0070.06320.15
7.0.30.0270.06720.04
7.0.20.0100.07720.03
7.0.10.0130.07320.03
7.0.00.0100.08320.07
5.6.280.0130.06721.09
5.6.250.0100.05320.71
5.6.240.0070.07320.71
5.6.230.0070.08020.64
5.6.220.0100.08020.56
5.6.210.0100.04020.56
5.6.200.0030.08721.11
5.6.190.0100.08721.11
5.6.180.0130.07321.16
5.6.170.0100.08321.15
5.6.160.0130.07721.11
5.6.150.0000.05021.17
5.6.140.0170.06721.10
5.6.130.0070.06721.20
5.6.120.0200.07321.17
5.6.110.0100.04721.00
5.6.100.0070.08021.13
5.6.90.0100.08321.03
5.6.80.0100.07320.42
5.6.70.0100.07320.38
5.6.60.0030.06320.48
5.6.50.0070.08020.57
5.6.40.0130.04320.47
5.6.30.0070.05320.35
5.6.20.0100.07320.55
5.6.10.0000.08020.43
5.6.00.0170.06320.36
5.5.380.0030.08320.52
5.5.370.0200.06320.43
5.5.360.0070.08320.40
5.5.350.0130.07320.44
5.5.340.0070.06721.00
5.5.330.0230.06320.72
5.5.320.0170.07320.98
5.5.310.0070.04720.93
5.5.300.0030.08020.93
5.5.290.0100.08020.96
5.5.280.0070.07720.96
5.5.270.0130.07020.89
5.5.260.0100.07020.82
5.5.250.0070.05320.80
5.5.240.0070.07720.23
5.5.230.0100.07020.33
5.5.220.0070.06320.18
5.5.210.0030.08020.34
5.5.200.0130.07320.30
5.5.190.0070.07720.18
5.5.180.0100.08020.31
5.5.160.0070.08020.32
5.5.150.0100.07320.21
5.5.140.0170.07020.30
5.5.130.0130.06720.32
5.5.120.0070.08320.34
5.5.110.0100.07320.35
5.5.100.0100.08020.06
5.5.90.0070.08020.20
5.5.80.0030.05020.11
5.5.70.0100.07720.16
5.5.60.0070.05320.13
5.5.50.0000.08720.19
5.5.40.0170.06320.15
5.5.30.0130.06720.13
5.5.20.0030.08020.13
5.5.10.0130.08320.15
5.5.00.0030.08720.03
5.4.450.0100.07719.43
5.4.440.0030.09019.41
5.4.430.0030.07019.45
5.4.420.0070.05319.48
5.4.410.0100.04719.33
5.4.400.0070.04018.84
5.4.390.0100.05319.13
5.4.380.0100.03719.05
5.4.370.0130.07019.13
5.4.360.0100.04019.08
5.4.350.0100.05019.16
5.4.340.0100.07319.12
5.4.320.0070.07719.10
5.4.310.0030.08018.80
5.4.300.0170.07019.04
5.4.290.0100.05019.23
5.4.280.0100.07019.12
5.4.270.0070.06719.02
5.4.260.0100.07019.04
5.4.250.0130.10018.95
5.4.240.0100.07019.12
5.4.230.0170.07018.93
5.4.220.0030.08019.09
5.4.210.0000.08718.95
5.4.200.0070.04719.07
5.4.190.0070.04719.11
5.4.180.0070.07318.82
5.4.170.0000.05019.05
5.4.160.0130.07718.76
5.4.150.0030.05719.24
5.4.140.0070.07716.45
5.4.130.0130.07016.39
5.4.120.0000.08316.38
5.4.110.0030.06016.48
5.4.100.0130.07316.38
5.4.90.0130.05016.27
5.4.80.0030.07716.25
5.4.70.0130.07016.42
5.4.60.0030.07716.30
5.4.50.0070.07716.27
5.4.40.0130.06316.46
5.4.30.0130.06716.35
5.4.20.0230.06016.38
5.4.10.0030.05316.43
5.4.00.0070.06715.81

preferences:
46.72 ms | 401 KiB | 5 Q