3v4l.org

run code in 300+ PHP versions simultaneously
<!-- <div id="right-col" class ='form' style="overflow:auto; width:210px; height:300px;"> </div> --> <?php $baseUrl = Yii::app()->baseUrl; $cs = Yii::app()->getClientScript(); $cs->registerCssFile($baseUrl.'/css/booking.css'); $cs->registerCssFile($baseUrl.'/css/navigation.css'); ?> <html> <head> <script type='text/javascript'> var myWindow; function openWindow(url) { //var windowFeatures = "width=600,height=500,status,resizable=no,scrollbars=0"; // myWindow = window.open(url, "welcome", windowFeatures); myWindow = window.open(url, "welcome"); } </script> </head> <div id="right-col" class ='form' style="overflow:auto; width:200px; height:480px;" /> <div id="navContainer"> <h3 class="headerbar">Vehicles Available</h3> </div> <table align='center'> <thead align='center'> <tr> <td><b><FONT COLOR='1452f3'>Area</td><td><b><FONT COLOR='1452f3'>Vehicle</td></tr> </thead> <?php echo "<tbody align='center'>"; $sql1="SELECT IMEI,substr(lat,1,9)/100 AS latitude,substr(longt,1,9)/100 AS longitude FROM mdt_data GROUP BY IMEI "; $connection=Yii::app()->db; $command=$connection->createCommand($sql1); $rows1=$command->queryAll(); foreach ($rows1 as $value) { flush(); $lat=$value['latitude']; $lng = $value['longitude']; $IMEI = $value['IMEI']; $endpoint="http://maps.googleapis.com/maps/api/geocode/json?latlng=".trim($lat).",".trim($lng)."&sensor=false"; $raw=@file_get_contents($endpoint); $json_data=json_decode($raw); if ($json_data->status=="OK") { //this is human readable address --> getting province name echo "<tr><td>"; echo ($json_data->results[0]->address_components[0]->long_name); //dumping result // echo" <a class='download_now'><img src='gpsforms/jscripts/map.png'></a>"; // echo "<div id='kk'>"; // echo "<img src='http://maps.googleapis.com/maps/api/staticmap?center=$lat,$lng&zoom=14&size=180x180&maptype=roadmap&markers=color:blue%7Clabel:U%7C$lat,$lng&sensor=false' />"; // echo "</div>"; // echo "<br>"; } else { //if no result found, status would be ZERO_RESULTS $json_data->status; } } ?> </table> <a href="#"><img src="images/map.jpg" height='50' width='40' onclick=openWindow('index.php?r=bookingDetails/map') /></a> </div> <div class="form"> <?php $form=$this->beginWidget('CActiveForm', array( 'id'=>'myform', 'enableAjaxValidation'=>false, )); ?> <p class="note">Fields with <span class="required">*</span> are required.</p> <?php $blackListNumber = Yii::app()->db->createCommand("SELECT * FROM {{customer_details}} where customer_phno='$model->phno' AND black_list=1 OR alt_phno ='$model->phno' AND black_list=1 AND alt_phno != 0")->queryScalar(); if($blackListNumber){ echo'<script language="javascript">'; echo "alert('This is not a genuine person')"; echo "</script>"; } ?> <table id="table"> <caption>Booking</caption> <tbody> <tr> <td class="cls1"><?php echo $form->labelEx($model,'Search By PhoneNumber'); ?> </td> <td class="cls2"><?php echo $form->textField($model1,'customer_phno',array('class'=>'searchBox')); ?> <?php echo $form->error($model1,'customer_phno'); ?></td> </tr> <tr class="cls3"> <td class="cls1" colspan="3"><input type="submit" name="login_submit" id="login_submit" value="Submit" onclick="formvalidation(myform)"></td> </tr> </tbody> </table> </table> <?php $this->endWidget(); ?> </div><!-- form --> <div class="form"> <?php $form=$this->beginWidget('CActiveForm', array( 'id'=>'dispatcher-details-model-form', 'enableAjaxValidation'=>false, )); ?> <table id="table" > <caption>Booking Details</caption> <tbody> <tr> <td class="cls1"><?php echo $form->labelEx($model,'contact_name'); ?></td> <td class="cls2"><?php echo $form->textField($model,'contact_name',array('class'=>'cls4')); ?> <?php echo $form->error($model,'contact_name'); ?> </td> </tr> <tr> <td class="cls1"><?php echo $form->labelEx($model,'phno'); ?></td> <td class="cls2"><?php echo $form->textField($model,'phno',array('class'=>'cls4')); ?> <?php echo $form->error($model,'phno'); ?> </td> </tr> <tr> <td class="cls1"><?php echo $form->labelEx($model,'alt_phno'); ?></td> <td class="cls2"><?php echo $form->textField($model,'alt_phno',array('class'=>'cls4')); ?> <?php echo $form->error($model,'alt_phno'); ?> </td> </tr> <tr> <td class="cls1"><?php echo $form->labelEx($model,'email'); ?></td> <td class="cls2"><?php echo $form->textField($model,'email',array('class'=>'cls4')); ?> <?php echo $form->error($model,'email'); ?> </td> </tr> <tr> <td class="cls1"><?php echo $form->labelEx($model,'vehicle'); ?></td> <td class="cls2"><?php $vehicleBrandArray = CHtml::listData(VehicleCategoryModel::model()->findAll(),'vehicle_cat_model','vehicle_cat_model'); echo $form->dropDownList($model,'vehicle',$vehicleBrandArray, array( 'class'=>'cls4', 'prompt'=>'Select Vehicle', 'onChange'=>CHtml::ajax(array('type'=>'POST', 'url'=>array("BookingDetails/getPackageDetails"), 'update'=>'#'.CHtml::activeId($model,'package')))) ); ?> <?php echo $form->error($model,'vehicle'); ?> </td> </tr> <tr> <td class="cls1"><?php echo $form->labelEx($model,'package'); ?></td> <td class="cls2"><?php echo $form->dropDownList($model,'package',array('prompt'=>'Select Package'),array('class'=>'cls4')); ?> <?php echo $form->error($model,'package'); ?> </td> </tr> <tr> <td class="cls1"><?php echo $form->labelEx($model,'reqdate'); ?></td> <td class="cls2"><?php $this->widget('zii.widgets.jui.CJuiDatePicker', array( 'model'=>$model, 'attribute'=>'reqdate', 'themeUrl' => Yii::app()->baseUrl.'/css/jquery-ui-themes-1.8/themes', 'theme'=>'base', 'cssFile'=>array('jquery-ui.css'), // additional javascript options for the date picker plugin 'options'=>array( 'buttonImage'=>Yii::app()->baseUrl.'/images/cal.jpg', 'showOn'=>'both', 'dateFormat'=>'yy-m-d', 'changeYear'=>true, 'changeMonth'=>true, ), 'htmlOptions'=>array( 'class'=>'cls4', 'value'=>date('Y-m-d'), ), )); ?> <?php echo $form->error($model,'reqdate'); ?> </td> </tr> <tr> <td class="cls1"><?php echo $form->labelEx($model,'time'); ?></td> <td class="cls2"> <?php $this->widget('application.extensions.jui_timepicker.JTimePicker', array( 'model'=>$model, 'attribute'=>'time', 'options'=>array( 'showPeriod'=>false, ), 'htmlOptions'=>array( 'class'=>'cls4', 'size'=>8,'maxlength'=>8 ), )); ?> <?php echo $form->error($model,'time',array('inputID' => 'time')); ?> </td> </tr> <tr> <td class="cls1"><?php echo $form->labelEx($model,'passengers'); ?></td> <td class="cls2"><?php echo $form->textField($model,'passengers',array('class'=>'cls4')); ?> <?php echo $form->error($model,'passengers'); ?> </td> </tr> <tr> <td class="cls1"><?php echo $form->labelEx($model,'pickup_addr'); ?></td> <td class="cls2"><?php echo $form->textField($model,'pickup_addr',array('class'=>'cls4')); ?> <?php echo $form->error($model,'pickup_addr'); ?> </td> </tr> <tr> <td class="cls1"><?php echo $form->labelEx($model,'landmark'); ?></td> <td class="cls2"><?php echo $form->textField($model,'landmark',array('class'=>'cls4')); ?> <?php echo $form->error($model,'landmark'); ?> </td> </tr> <tr> <td class="cls1"><?php echo $form->labelEx($model,'drop_addr'); ?></td> <td class="cls2"><?php echo $form->textField($model,'drop_addr',array('class'=>'cls4')); ?> <?php echo $form->error($model,'drop_addr'); ?> </td> </tr> <tr> <td class="cls1"><?php echo $form->labelEx($model,'circle_name'); ?></td> <td class="cls2"><?php $models=AreaMasterModel::model()->findAll(); $data = array(); foreach ($models as $rows1) $data[$rows1->postal_code] = $rows1->area_name.' '.$rows1->postal_code; echo $form->dropDownList($model,'circle_name',$data,array('class'=>'cls4','size'=>4)); ?> <?php echo $form->error($model,'circle_name'); ?> </td> </tr> <tr> <td class="cls1"><?php echo $form->labelEx($model,'remarks'); ?></td> <td class="cls2"><?php echo $form->textArea($model,'remarks',array('class'=>'cls4')); ?> <?php echo $form->error($model,'remarks'); ?> </td> </tr> <tr class="cls3"> <td class="cls1" colspan="3"><input type="submit" name="submit" id="login_submit" value="Submit"></td> </tr> </tbody> </table> <?php $this->endWidget(); ?> </div><!-- form -->

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.0110.00716.88
8.3.50.0080.00722.06
8.3.40.0090.00619.04
8.3.30.0140.00019.35
8.3.20.0080.00020.34
8.3.10.0080.00023.61
8.3.00.0060.00319.38
8.2.180.0120.00616.88
8.2.170.0040.01122.96
8.2.160.0140.00020.65
8.2.150.0040.00424.18
8.2.140.0040.01124.66
8.2.130.0030.01326.16
8.2.120.0040.00422.08
8.2.110.0060.00322.12
8.2.100.0060.00617.97
8.2.90.0040.00419.21
8.2.80.0050.00317.97
8.2.70.0080.00017.61
8.2.60.0030.00617.93
8.2.50.0110.00018.10
8.2.40.0060.00318.34
8.2.30.0040.00418.08
8.2.20.0090.00017.71
8.2.10.0030.00618.19
8.2.00.0080.00017.89
8.1.280.0110.00725.92
8.1.270.0040.00423.79
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0030.00622.48
8.1.230.0040.00817.76
8.1.220.0050.00317.79
8.1.210.0000.00818.77
8.1.200.0060.00317.23
8.1.190.0050.00317.35
8.1.180.0040.00418.10
8.1.170.0060.00618.60
8.1.160.0070.00021.98
8.1.150.0000.00818.58
8.1.140.0050.00217.49
8.1.130.0030.00317.88
8.1.120.0040.00417.39
8.1.110.0020.00517.44
8.1.100.0040.00417.48
8.1.90.0070.00017.41
8.1.80.0000.00717.49
8.1.70.0000.00817.50
8.1.60.0060.00317.58
8.1.50.0000.00817.54
8.1.40.0060.00317.48
8.1.30.0050.00517.70
8.1.20.0060.00317.79
8.1.10.0050.00317.62
8.1.00.0030.00517.65
8.0.300.0060.00318.77
8.0.290.0080.00016.86
8.0.280.0050.00218.60
8.0.270.0070.00017.41
8.0.260.0070.00016.95
8.0.250.0000.00817.14
8.0.240.0070.00017.00
8.0.230.0070.00017.04
8.0.220.0030.00317.02
8.0.210.0000.00717.03
8.0.200.0030.00517.13
8.0.190.0030.00617.12
8.0.180.0040.00416.96
8.0.170.0000.00817.00
8.0.160.0040.00417.05
8.0.150.0000.00717.12
8.0.140.0090.00017.05
8.0.130.0000.00613.41
8.0.120.0030.00616.93
8.0.110.0040.00416.93
8.0.100.0050.00317.07
8.0.90.0040.00416.88
8.0.80.0030.01317.09
8.0.70.0040.00417.02
8.0.60.0030.00516.95
8.0.50.0040.00416.89
8.0.30.0070.01517.23
8.0.20.0130.00617.40
8.0.10.0000.01017.05
8.0.00.0050.01416.95
7.4.330.0000.00615.00
7.4.320.0060.00016.66
7.4.300.0050.00316.64
7.4.290.0040.00416.61
7.4.280.0030.00316.61
7.4.270.0070.00016.64
7.4.260.0060.00316.58
7.4.250.0050.00316.70
7.4.240.0060.00116.64
7.4.230.0000.00716.68
7.4.220.0090.00916.63
7.4.210.0080.00916.61
7.4.200.0050.00316.41
7.4.190.0040.00416.50
7.4.160.0090.00616.64
7.4.150.0120.01017.40
7.4.140.0110.01117.86
7.4.130.0060.01016.64
7.4.120.0150.00416.69
7.4.110.0090.00916.66
7.4.100.0150.01016.64
7.4.90.0130.00316.69
7.4.80.0130.01019.39
7.4.70.0110.00616.59
7.4.60.0140.00316.71
7.4.50.0030.00616.40
7.4.40.0030.01322.77
7.4.30.0070.00916.74
7.4.00.0030.01315.12
7.3.330.0050.00013.25
7.3.320.0060.00013.13
7.3.310.0020.00516.28
7.3.300.0030.00316.43
7.3.290.0090.00616.43
7.3.280.0090.00816.40
7.3.270.0070.01017.40
7.3.260.0150.00916.51
7.3.250.0090.01116.57
7.3.240.0030.01516.66
7.3.230.0100.00716.46
7.3.210.0040.01516.57
7.3.200.0090.00919.39
7.3.190.0120.00916.58
7.3.180.0040.01316.46
7.3.170.0130.00316.64
7.3.160.0090.00616.51
7.3.120.0050.01114.90
7.3.110.0060.01115.06
7.3.100.0050.01115.02
7.3.90.0070.00814.84
7.3.80.0090.00714.81
7.3.70.0060.01014.87
7.3.60.0040.00914.91
7.3.50.0100.00415.05
7.3.40.0050.01114.89
7.3.30.0070.00815.00
7.3.20.0000.01316.65
7.3.10.0050.00816.38
7.3.00.0060.00716.44
7.2.330.0090.00916.75
7.2.320.0060.01016.74
7.2.310.0100.00716.87
7.2.300.0090.00916.75
7.2.290.0090.01016.82
7.2.250.0050.01614.96
7.2.240.0080.01115.10
7.2.230.0070.00715.07
7.2.220.0050.01015.13
7.2.210.0100.00614.85
7.2.200.0050.00415.05
7.2.190.0080.00814.96
7.2.180.0050.01215.07
7.2.170.0070.00714.92
7.2.160.0060.01114.78
7.2.150.0100.00616.47
7.2.140.0030.01016.91
7.2.130.0030.01316.68
7.2.120.0120.00016.88
7.2.110.0070.00716.63
7.2.100.0060.00916.88
7.2.90.0030.00716.64
7.2.80.0060.01016.73
7.2.70.0120.00016.64
7.2.60.0060.00516.80
7.2.50.0040.00716.49
7.2.40.0050.00516.89
7.2.30.0040.00716.64
7.2.20.0000.01016.86
7.2.10.0040.00816.66
7.2.00.0070.00817.99
7.1.330.0040.00815.48
7.1.320.0040.01115.65
7.1.310.0030.01215.72
7.1.300.0060.00915.58
7.1.290.0020.01315.67
7.1.280.0050.01115.66
7.1.270.0050.00915.68
7.1.260.0090.00315.51
7.1.250.0070.00715.77
7.1.240.0000.01215.46
7.1.230.0030.01415.56
7.1.220.0060.00315.64
7.1.210.0000.00915.45
7.1.200.0110.00315.67
7.1.190.0030.01015.40
7.1.180.0060.00615.61
7.1.170.0030.01015.57
7.1.160.0000.01015.65
7.1.150.0060.00915.36
7.1.140.0000.00815.75
7.1.130.0060.00915.77
7.1.120.0000.01415.65
7.1.110.0030.00715.76
7.1.100.0040.01216.65
7.1.90.0110.00415.66
7.1.80.0000.01015.68
7.1.70.0040.00616.34
7.1.60.0080.01117.40
7.1.50.0040.01416.20
7.1.40.0080.00015.81
7.1.30.0040.00815.73
7.1.20.0030.01015.55
7.1.10.0080.00415.57
7.1.00.0020.04819.03
7.0.330.0000.01515.04
7.0.320.0000.01415.37
7.0.310.0060.00915.05
7.0.300.0030.01015.24
7.0.290.0040.01115.46
7.0.280.0060.00615.35
7.0.270.0090.00315.37
7.0.260.0100.00315.33
7.0.250.0000.01315.17
7.0.240.0060.00615.51
7.0.230.0060.00615.50
7.0.220.0070.00415.30
7.0.210.0050.00515.17
7.0.200.0060.00616.04
7.0.190.0040.00715.48
7.0.180.0030.01015.47
7.0.170.0030.01015.09
7.0.160.0030.01015.40
7.0.150.0000.01415.51
7.0.140.0050.03918.83
7.0.130.0030.01115.02
7.0.120.0090.00315.21
7.0.110.0040.00415.48
7.0.100.0070.00315.16
7.0.90.0150.03317.70
7.0.80.0070.03717.49
7.0.70.0110.03517.52
7.0.60.0080.04217.58
7.0.50.0120.03218.02
7.0.40.0080.02016.71
7.0.30.0020.02616.72
7.0.20.0100.03716.87
7.0.10.0020.02316.78
7.0.00.0080.04216.67
5.6.400.0030.01214.57
5.6.390.0000.01314.32
5.6.380.0030.00614.34
5.6.370.0030.01014.38
5.6.360.0060.00614.50
5.6.350.0040.00714.63
5.6.340.0040.01114.26
5.6.330.0000.01613.92
5.6.320.0090.00714.51
5.6.310.0070.00714.37
5.6.300.0030.00914.48
5.6.290.0070.00314.07
5.6.280.0030.04317.51
5.6.270.0090.00314.18
5.6.260.0060.00614.39
5.6.250.0030.01014.35
5.6.240.0080.03017.49
5.6.230.0080.04317.39
5.6.220.0080.01717.42
5.6.210.0060.03017.60
5.6.200.0080.04017.54
5.6.190.0030.02717.67
5.6.180.0020.03217.61
5.6.170.0030.03017.71
5.6.160.0110.01517.64
5.6.150.0060.01817.74
5.6.140.0030.02417.78
5.6.130.0020.03617.72
5.6.120.0020.03017.61
5.6.110.0090.02117.69
5.6.100.0180.01217.65
5.6.90.0070.02117.70
5.6.80.0100.02317.42
5.6.70.0030.02117.26
5.6.60.0050.01817.30
5.6.50.0080.01617.46
5.6.40.0050.02117.33
5.6.30.0020.02217.27
5.6.20.0050.02017.39
5.6.10.0050.01817.27
5.6.00.0090.01717.35
5.5.380.0080.03317.28
5.5.370.0050.02117.18
5.5.360.0050.02317.32
5.5.350.0120.03917.22
5.5.340.0000.02917.40
5.5.330.0100.02317.49
5.5.320.0070.03217.38
5.5.310.0070.02017.50
5.5.300.0050.03217.50
5.5.290.0050.03517.55
5.5.280.0100.01817.45
5.5.270.0050.02517.42
5.5.260.0070.02117.47
5.5.250.0030.02117.38
5.5.240.0010.02317.21
5.5.230.0070.02017.04
5.5.220.0020.02117.18
5.5.210.0070.02017.09
5.5.200.0030.02417.34
5.5.190.0030.02517.06
5.5.180.0070.02217.24
5.5.170.0030.00613.88
5.5.160.0030.02217.24
5.5.150.0050.02117.09
5.5.140.0020.02317.31
5.5.130.0050.02017.25
5.5.120.0050.02117.01
5.5.110.0060.01817.14
5.5.100.0050.02017.18
5.5.90.0060.02117.16
5.5.80.0110.01317.25
5.5.70.0060.02117.25
5.5.60.0060.01917.14
5.5.50.0060.02117.05
5.5.40.0060.02117.00
5.5.30.0070.01817.07
5.5.20.0070.01817.05
5.5.10.0020.02517.13
5.5.00.0020.02416.97
5.4.450.0000.02515.63
5.4.440.0070.02015.77
5.4.430.0070.02215.76
5.4.420.0030.02215.79
5.4.410.0030.01815.66
5.4.400.0080.01615.47
5.4.390.0040.01715.63
5.4.380.0030.01815.63
5.4.370.0050.02015.64
5.4.360.0030.02215.59
5.4.350.0030.01815.59
5.4.340.0030.01815.60
5.4.330.0110.00012.16
5.4.320.0030.02115.48
5.4.310.0010.02415.47
5.4.300.0070.01415.54
5.4.290.0060.01515.47
5.4.280.0020.01815.64
5.4.270.0010.02115.59
5.4.260.0030.02015.60
5.4.250.0050.02015.62
5.4.240.0050.01915.56
5.4.230.0050.01715.52
5.4.220.0050.01715.54
5.4.210.0000.02015.60
5.4.200.0050.02115.55
5.4.190.0000.02515.63
5.4.180.0040.01815.64
5.4.170.0020.02115.55
5.4.160.0050.02415.54
5.4.150.0020.02215.61
5.4.140.0020.04514.22
5.4.130.0050.02814.22
5.4.120.0070.01514.24
5.4.110.0050.02414.21
5.4.100.0100.01314.30
5.4.90.0060.02714.21
5.4.80.0050.02214.29
5.4.70.0060.01914.29
5.4.60.0050.02214.27
5.4.50.0080.01714.21
5.4.40.0020.03114.30
5.4.30.0030.02214.22
5.4.20.0020.02714.21
5.4.10.0020.02714.22
5.4.00.0030.03113.99
5.3.290.0050.02113.40
5.3.280.0060.01913.41
5.3.270.0040.01913.38
5.3.260.0030.02013.37
5.3.250.0030.01813.37
5.3.240.0030.02613.41
5.3.230.0000.02413.32
5.3.220.0000.02413.30
5.3.210.0020.02313.38
5.3.200.0060.01813.32
5.3.190.0020.02413.31
5.3.180.0050.01913.32
5.3.170.0020.03713.36
5.3.160.0060.02113.38
5.3.150.0030.02213.35
5.3.140.0040.02113.39
5.3.130.0080.03313.38
5.3.120.0030.02913.38
5.3.110.0050.03513.29
5.3.100.0020.02113.08
5.3.90.0020.02013.05
5.3.80.0070.01813.09
5.3.70.0050.03113.00
5.3.60.0090.02513.10
5.3.50.0050.02012.98
5.3.40.0040.02113.01
5.3.30.0070.03712.99
5.3.20.0030.02012.95
5.3.10.0050.02612.93
5.3.00.0050.02412.87

preferences:
48.58 ms | 401 KiB | 5 Q