3v4l.org

run code in 300+ PHP versions simultaneously
<?php $link = mysql_connect('localhost', 'programmer', 'Welcome01$$$'); if (!$link) { die('Could not connect: ' . mysql_error()); } $selected = mysql_select_db("computergeeksrus_ticket_system",$link) ; function clean($str){ return mysql_real_escape_string($str); } $wo_id=$_GET['id']; if($wo_id && ctype_digit($wo_id)){ $wo_id=clean($wo_id); $q1 = mysql_query("SELECT * FROM MYIT_TABLE_WORK_ORDER WHERE WORK_ORDER_ID='$wo_id'"); $data=mysql_fetch_array($q1); $dateo=$data['WORK_ORDER_OPEN_DATE']; $t1=$data['WORK_ORDER_TIME_SPENT']; $s1=$data['WORK_ORDER_STATUS']; $cid=$data['CUSTOMER_ID']; $lastupdated=$data['LAST_ACTIVE']; $p=$data['PRIORITY_ID']; $s2=$data['WORK_ORDER_CURRENT_STATUS']; /* myit_table_customer Full texts CUSTOMER_ID Ascending CUSTOMER_DISPLAY_NAME CUSTOMER_COMPANY CUSTOMER_ADDRESS CUSTOMER_CITY CUSTOMER_STATE CUSTOMER_ZIP CUSTOMER_PHONE CUSTOMER_WORK_PHONE CUSTOMER_MOBILE_PHONE CUSTOMER_EMAIL CUSTOMER_WWW CREDIT_TERMS CUSTOMER_NOTES CUSTOMER_TYPE CUSTOMER_FIRST_NAME CUSTOMER_MIDDLE_NAME CUSTOMER_LAST_NAME CUSTOMER_TITLE CREATE_DATE LAST_ACTIVE DISCOUNT CUSTOMER_REFERRED_BY CUSTOMER_REFERRALS */ ?> <table> <tr> <td>Name</td> <td>Date Opened</td> <td>Time Spent</td> <td>Last Updated</td> <td>Status</td> <td>Priority</td> </tr> <tr> <td></td> <td><?=$dateo?></td> <td>WORK_ORDER_TIME_SPENT</td> <td></td> <td></td> <td></td> </tr> </table> <?php } else { die("invalid parameters"; } ?>

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)
5.4.260.0030.06318.99
5.4.250.0130.04718.99
5.4.240.0000.06019.09
5.4.230.0130.06019.09
5.4.220.0130.07018.94
5.4.210.0130.07318.96
5.4.200.0030.05719.02
5.4.190.0100.05718.98
5.4.180.0130.04318.80
5.4.170.0070.05718.79
5.4.160.0070.05018.93
5.4.150.0100.05018.94
5.4.140.0070.05316.43
5.4.130.0100.04716.56
5.4.120.0030.05016.39
5.4.110.0070.05016.63
5.4.100.0200.05316.55
5.4.90.0070.04716.46
5.4.80.0170.03716.40
5.4.70.0170.05716.48
5.4.60.0030.05016.43
5.4.50.0070.04716.50
5.4.40.0030.05016.43
5.4.30.0070.04716.32
5.4.20.0100.04716.46
5.4.10.0070.05016.59
5.4.00.0070.04715.84
5.3.280.0130.05314.58
5.3.270.0100.05314.44
5.3.260.0130.06714.68
5.3.250.0130.04314.44
5.3.240.0170.05314.77
5.3.230.0130.05714.78
5.3.220.0030.05314.55
5.3.210.0070.05314.55
5.3.200.0000.05314.63
5.3.190.0000.05714.55
5.3.180.0070.05014.65
5.3.170.0130.04714.67
5.3.160.0030.05014.63
5.3.150.0070.05014.66
5.3.140.0030.05014.46
5.3.130.0030.05314.71
5.3.120.0070.05714.70
5.3.110.0070.05314.54
5.3.100.0100.04714.01
5.3.90.0030.05314.04
5.3.80.0030.05014.20
5.3.70.0030.05314.20

preferences:
142.39 ms | 1394 KiB | 7 Q