3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Car { public $atr1; public $atr2; public $atr3; function _construct($atr1,$atr2,$atr3) { $this->atr1=$atr1; $this->atr2=$atr2; $this->atr3=$atr3; } function getatr1() { return $this->atr1; } function getatr2() { return $this->atr2; } function getatr3() { return $this->atr3; } } function napln() { $obj1 = new Car('renault','modra','nieco'); $obj2 = new Car('skoda','zelena','neviem'); $obj3 = new Car('opel','cervena','cojaviem'); $pole = array($obj1, $obj2, $obj3); return $pole; } function tabulka() { $table_str='<table>'; $table=napln(); foreach($table as $tab) { $table_str.= '<tr>'; $table_str.='<td>'.$tab -> getatr1().'</td><td>'.$tab -> getatr2().'</td><td>'.$tab -> getatr3().'</td>'; $table_str.='</tr>'; } $table_str.='</table>'; return $table_str; } ?> <html> <head> <title>Page Title</title> </head> <body> <?php echo tabulka(); ?> </body> </html>

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.0100.01016.75
8.3.50.0120.00921.27
8.3.40.0070.00719.01
8.3.30.0060.00918.80
8.3.20.0050.00220.34
8.3.10.0040.00423.65
8.3.00.0080.00019.38
8.2.180.0070.01116.50
8.2.170.0120.00922.96
8.2.160.0030.01020.39
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0060.00317.50
8.2.120.0030.00526.35
8.2.110.0030.00721.08
8.2.100.0100.00017.84
8.2.90.0080.00017.75
8.2.80.0000.00817.97
8.2.70.0030.00618.05
8.2.60.0050.00318.05
8.2.50.0040.00418.10
8.2.40.0060.00320.57
8.2.30.0000.00720.63
8.2.20.0030.00617.76
8.2.10.0000.00918.21
8.2.00.0040.00418.25
8.1.280.0160.00025.92
8.1.270.0030.00623.72
8.1.260.0000.00728.09
8.1.250.0040.00428.09
8.1.240.0060.00322.02
8.1.230.0110.00020.79
8.1.220.0090.00017.79
8.1.210.0000.00818.77
8.1.200.0000.00917.35
8.1.190.0000.00817.23
8.1.180.0040.00418.10
8.1.170.0040.00418.52
8.1.160.0000.00721.95
8.1.150.0000.00718.75
8.1.140.0080.00019.65
8.1.130.0050.00217.63
8.1.120.0040.00417.52
8.1.110.0000.00717.38
8.1.100.0040.00417.32
8.1.90.0050.00217.38
8.1.80.0040.00417.48
8.1.70.0040.00417.40
8.1.60.0040.00417.60
8.1.50.0060.00317.43
8.1.40.0040.00717.41
8.1.30.0040.00417.63
8.1.20.0070.00017.51
8.1.10.0040.00417.62
8.1.00.0070.00017.45
8.0.300.0000.00919.60
8.0.290.0060.00316.63
8.0.280.0030.00318.34
8.0.270.0070.00017.27
8.0.260.0070.00017.36
8.0.250.0070.00016.86
8.0.240.0000.00716.94
8.0.230.0000.00816.93
8.0.220.0040.00416.92
8.0.210.0020.00516.82
8.0.200.0070.00016.94
8.0.190.0040.00416.96
8.0.180.0040.00416.99
8.0.170.0000.00816.96
8.0.160.0040.00316.90
8.0.150.0030.00316.81
8.0.140.0080.00016.73
8.0.130.0000.00513.32
8.0.120.0000.00816.90
8.0.110.0020.00516.93
8.0.100.0020.00516.78
8.0.90.0000.00716.94
8.0.80.0130.00316.91
8.0.70.0000.00816.82
8.0.60.0040.00416.75
8.0.50.0050.00317.00
8.0.30.0080.01017.16
8.0.20.0220.00917.40
8.0.10.0070.00016.86
8.0.00.0060.01116.76
7.4.330.0050.00016.79
7.4.320.0000.00616.52
7.4.300.0000.00616.59
7.4.290.0030.00316.52
7.4.280.0030.00516.53
7.4.270.0040.00416.64
7.4.260.0040.00416.53
7.4.250.0040.00416.57
7.4.240.0020.00516.54
7.4.230.0070.00016.45
7.4.220.0220.00616.56
7.4.210.0080.00916.59
7.4.200.0000.00716.63
7.4.160.0090.00616.60
7.4.150.0070.01017.40
7.4.140.0110.00917.86
7.4.130.0070.01316.55
7.4.120.0130.00516.66
7.4.110.0060.01816.34
7.4.100.0100.00716.56
7.4.90.0060.01316.54
7.4.80.0070.01019.39
7.4.70.0130.00616.52
7.4.60.0120.00316.55
7.4.50.0030.01016.18
7.4.40.0120.00416.39
7.4.30.0100.01016.70
7.4.00.0060.01014.88
7.3.330.0000.00513.32
7.3.320.0030.00313.37
7.3.310.0030.00316.14
7.3.300.0030.00316.16
7.3.290.0030.00316.34
7.3.280.0090.00916.34
7.3.270.0070.01017.40
7.3.260.0160.00016.61
7.3.250.0080.00916.39
7.3.240.0080.01116.48
7.3.230.0130.01016.45
7.3.210.0060.01216.55
7.3.200.0120.00416.68
7.3.190.0030.01316.70
7.3.180.0080.01216.38
7.3.170.0120.00916.59
7.3.160.0060.01016.68
7.2.330.0110.00716.88
7.2.320.0150.00716.53
7.2.310.0120.00616.81
7.2.300.0130.00316.58
7.2.290.0140.00616.69
7.2.00.0070.00719.16
7.1.100.0040.01117.91
7.1.70.0050.00517.33
7.1.60.0100.01419.48
7.1.50.0090.01516.95
7.1.00.0030.07322.44
7.0.200.0030.00914.93
7.0.60.0200.06319.93
7.0.50.0030.08317.93
7.0.40.0100.05320.10
7.0.30.0270.07720.30
7.0.20.0270.05720.15
7.0.10.0030.04320.24
7.0.00.0030.04320.12
5.6.280.0000.05321.06
5.6.210.0070.08020.64
5.6.200.0030.08318.22
5.6.190.0100.08320.60
5.6.180.0230.04320.42
5.6.170.0300.06720.47
5.6.160.0070.08320.46
5.6.150.0000.04018.18
5.6.140.0100.07718.29
5.6.130.0130.08018.23
5.6.120.0100.04321.14
5.6.110.0130.08020.91
5.6.100.0070.08321.16
5.6.90.0170.07721.09
5.6.80.0070.06320.40
5.5.350.4270.03720.48
5.5.340.0100.05017.97
5.5.330.0100.08320.38
5.5.320.0100.08020.36
5.5.310.0200.03720.24
5.5.300.0070.08017.97
5.5.290.0130.06717.92
5.5.280.0070.04720.89
5.5.270.0170.07020.95
5.5.260.0030.09020.98
5.5.250.0100.07320.60
5.5.240.0100.05320.21

preferences:
38.3 ms | 401 KiB | 5 Q