3v4l.org

run code in 300+ PHP versions simultaneously
<?php class RequestSQL { public $ar=array(); /////////////////////////////////return Other Name Page (Il faut inserer var $url) public function link_pages($pdo,$url){ $dbb=$pdo->prepare('SELECT link FROM other_np WHERE link=:vurl'); $dbb->execute(array('vurl' => $url)); $res=$dbb->fetch(); if($res){return $ar="other";} else{ $dbb=$pdo->prepare('SELECT link FROM art_np WHERE link=:vurl'); $dbb->execute(array('vurl' => $url)); $res=$dbb->fetch(); if($res){return $ar="Article";} else{ return $ar="Error"; } } } public function trends_selectAll($pdo){ $i=0; $dbb=$pdo->query('SELECT * FROM trends LIMIT 0,5'); while($res=$dbb->fetch()) { $ar[]=$res; } return $ar; } public function carrousel_selectNote($pdo){ $i=0; $dbb=$pdo->query('SELECT * FROM art_all left join art_info on art_all.artID=art_info.infoID WHERE info="top"'); while($res=$dbb->fetch()) { $ar[]=$res; } return $ar; } public function new_popular_selectLIMIT($pdo,$pagination){ $i=0; if($pagination>=0){$start=$pagination*5; $end=$start+5;}else{$start=0; $end=5;} $sql='SELECT * FROM art_all LIMIT '.$start.','.$end; $dbb=$pdo->query($sql); while($res=$dbb->fetch()) { $ar[]=$res; } return $ar; } public function category_around_the_word($pdo,$pagination){ $i=0; if($pagination>=0){$start=$pagination*5; $end=$start+5;} $sql='SELECT * FROM art_all LIMIT '.$start.','.$end; $dbb=$pdo->query($sql); while($res=$dbb->fetch()) { $ar[]=$res; } return $ar; } }

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.0070.00718.18
8.3.50.0070.01018.21
8.3.40.0080.00818.62
8.3.30.0070.00718.59
8.3.20.0040.00418.75
8.3.10.0080.00020.81
8.3.00.0030.00519.69
8.2.180.0090.00616.38
8.2.170.0110.00422.96
8.2.160.0140.00320.70
8.2.150.0070.00024.18
8.2.140.0080.00024.66
8.2.130.0050.00319.64
8.2.120.0000.00726.35
8.2.110.0060.00319.29
8.2.100.0060.00917.78
8.2.90.0030.00517.89
8.2.80.0040.00418.53
8.2.70.0060.00317.80
8.2.60.0040.00417.93
8.2.50.0000.00818.10
8.2.40.0040.00419.21
8.2.30.0070.00019.21
8.2.20.0000.00717.95
8.2.10.0000.00817.87
8.2.00.0070.00019.36
8.1.280.0130.00925.92
8.1.270.0080.00023.97
8.1.260.0000.00726.35
8.1.250.0050.00328.09
8.1.240.0040.00423.62
8.1.230.0070.00422.73
8.1.220.0080.00017.74
8.1.210.0050.00318.77
8.1.200.0080.00017.23
8.1.190.0040.00417.10
8.1.180.0000.00818.10
8.1.170.0040.00418.28
8.1.160.0000.00818.85
8.1.150.0050.00318.77
8.1.140.0070.00017.65
8.1.130.0000.00818.85
8.1.120.0040.00417.36
8.1.110.0040.00417.26
8.1.100.0000.00817.24
8.1.90.0040.00417.26
8.1.80.0060.00317.37
8.1.70.0030.00617.35
8.1.60.0030.00617.48
8.1.50.0000.00817.37
8.1.40.0040.00417.39
8.1.30.0040.00417.48
8.1.20.0000.00817.54
8.1.10.0040.00417.27
8.1.00.0050.00317.38
8.0.300.0040.00419.77
8.0.290.0000.00816.58
8.0.280.0000.00718.35
8.0.270.0000.00717.16
8.0.260.0000.00718.92
8.0.250.0030.00316.87
8.0.240.0070.00016.84
8.0.230.0060.00316.79
8.0.220.0030.00316.78
8.0.210.0040.00416.82
8.0.200.0060.00016.88
8.0.190.0030.00516.86
8.0.180.0000.00816.72
8.0.170.0030.00616.85
8.0.160.0050.00216.78
8.0.150.0080.00016.76
8.0.140.0000.00716.77
8.0.130.0000.00513.18
8.0.120.0030.00516.70
8.0.110.0040.00416.68
8.0.100.0050.00316.65
8.0.90.0000.00716.61
8.0.80.0060.01216.78
8.0.70.0000.00816.67
8.0.60.0040.00416.74
8.0.50.0060.00316.84
8.0.30.0140.00416.98
8.0.20.0110.00817.40
8.0.10.0080.00016.76
8.0.00.0120.00716.72
7.4.330.0080.00015.55
7.4.320.0000.00716.39
7.4.300.0030.00316.47
7.4.290.0000.00616.52
7.4.280.0040.00416.39
7.4.270.0030.00316.41
7.4.260.0040.00416.49
7.4.250.0050.00216.39
7.4.240.0000.00716.50
7.4.230.0030.00316.32
7.4.220.0000.00816.31
7.4.210.0070.00916.48
7.4.200.0030.00316.40
7.4.160.0060.00916.38
7.4.140.0090.00917.86
7.4.130.0140.00516.32
7.4.120.0100.01016.34
7.4.110.0040.01216.34
7.4.100.0130.00716.51
7.4.90.0130.00316.54
7.4.80.0040.01819.39
7.4.70.0060.01016.43
7.4.60.0080.00816.41
7.4.50.0030.01316.20
7.4.40.0060.00916.38
7.4.00.0050.01314.74
7.3.330.0000.00613.13
7.3.320.0070.00013.13
7.3.310.0000.00716.16
7.3.300.0030.00316.05
7.3.290.0030.00316.08
7.3.280.0080.01116.19
7.3.260.0100.00816.50
7.3.240.0120.00916.32
7.3.230.0040.01416.35
7.3.210.0070.01116.43
7.3.200.0080.00816.46
7.3.190.0100.00716.31
7.3.180.0100.00616.23
7.3.170.0160.00316.22
7.3.160.0120.00616.40
7.3.120.0070.00714.46
7.3.110.0130.00314.67
7.3.100.0080.00414.36
7.3.90.0090.00914.70
7.3.80.0030.01314.97
7.3.70.0130.00014.79
7.3.60.0030.01214.75
7.3.50.0030.00914.64
7.3.40.0070.00714.38
7.3.30.0040.01114.36
7.3.20.0100.00716.42
7.3.10.0070.00416.60
7.3.00.0060.00616.45
7.2.330.0090.00916.40
7.2.320.0150.00416.59
7.2.310.0080.01216.54
7.2.300.0130.00916.53
7.2.290.0170.00716.46
7.2.250.0060.01314.84
7.2.240.0030.01714.73
7.2.230.0090.00614.83
7.2.220.0070.01114.94
7.2.210.0070.00714.67
7.2.200.0100.00314.81
7.2.190.0100.00714.79
7.2.180.0060.01215.01
7.2.170.0000.01214.73
7.2.60.0960.01014.75
7.2.50.1200.00914.70
7.2.40.1100.00915.43
7.2.30.1120.00915.21
7.2.20.1610.00815.36
7.2.10.1200.01215.22
7.2.00.1080.01015.17
7.1.330.0090.00315.72
7.1.320.0060.01115.65
7.1.310.0090.00615.27
7.1.300.0060.00915.44
7.1.290.0100.00315.62
7.1.280.0030.01315.42
7.1.270.0030.01015.27
7.1.260.0070.00715.63
7.1.200.0030.01015.36
7.1.170.0960.00813.65
7.1.160.1160.01116.54
7.1.150.1060.01116.72
7.1.140.0890.01316.81
7.1.130.1100.01216.73
7.1.120.0960.01116.43
7.1.110.0910.01015.82
7.1.100.1010.01015.78
7.1.90.1150.01115.98
7.1.80.1190.01015.88
7.1.70.1170.01115.05
7.1.60.1210.01233.21
7.1.50.1210.01132.85
7.1.40.1610.01832.50
7.1.30.1550.01532.57
7.1.20.1490.01332.71
7.1.10.0990.00814.68
7.1.00.1220.01414.54

preferences:
60.34 ms | 401 KiB | 5 Q