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 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 -> $atr1</td> <td>$tab -> $atr1</td> <td>$tab -> $atr3</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.0080.00816.50
8.3.50.0160.00621.91
8.3.40.0070.00718.96
8.3.30.0130.00318.79
8.3.20.0160.00320.29
8.3.10.0030.00521.82
8.3.00.0080.00019.25
8.2.180.0120.00618.13
8.2.170.0070.00722.96
8.2.160.0070.01020.39
8.2.150.0030.00524.18
8.2.140.0080.00024.66
8.2.130.0030.00719.36
8.2.120.0000.00926.35
8.2.110.0110.00921.04
8.2.100.0090.00317.84
8.2.90.0030.00617.63
8.2.80.0090.00019.36
8.2.70.0040.00418.05
8.2.60.0040.00418.03
8.2.50.0080.00018.10
8.2.40.0080.00020.59
8.2.30.0000.00820.65
8.2.20.0070.00417.65
8.2.10.0040.00418.14
8.2.00.0050.00218.14
8.1.280.0060.00925.92
8.1.270.0040.00423.82
8.1.260.0050.00228.09
8.1.250.0000.00828.09
8.1.240.0050.00522.06
8.1.230.0090.00319.16
8.1.220.0030.00517.74
8.1.210.0060.00318.77
8.1.200.0030.00617.35
8.1.190.0060.00617.23
8.1.180.0040.00418.10
8.1.170.0080.00018.71
8.1.160.0040.00422.02
8.1.150.0040.00418.79
8.1.140.0030.00619.49
8.1.130.0000.00717.77
8.1.120.0040.00417.40
8.1.110.0040.00417.39
8.1.100.0040.00417.38
8.1.90.0020.00517.37
8.1.80.0000.00717.52
8.1.70.0030.00317.41
8.1.60.0030.00517.53
8.1.50.0000.00817.43
8.1.40.0070.00317.57
8.1.30.0000.00817.65
8.1.20.0040.00417.61
8.1.10.0040.00417.58
8.1.00.0000.00717.54
8.0.300.0000.00819.60
8.0.290.0030.00616.75
8.0.280.0030.00318.38
8.0.270.0050.00217.32
8.0.260.0000.00717.30
8.0.250.0030.00316.92
8.0.240.0030.00316.93
8.0.230.0030.00516.86
8.0.220.0020.00516.93
8.0.210.0030.00616.80
8.0.200.0050.00216.83
8.0.190.0040.00416.92
8.0.180.0060.00316.85
8.0.170.0060.00316.96
8.0.160.0030.00316.94
8.0.150.0030.00316.88
8.0.140.0020.00516.88
8.0.130.0000.00613.40
8.0.120.0080.00016.75
8.0.110.0000.00716.87
8.0.100.0040.00416.80
8.0.90.0030.00516.92
8.0.80.0110.00916.95
8.0.70.0000.00716.87
8.0.60.0070.00016.79
8.0.50.0050.00216.73
8.0.30.0130.00716.93
8.0.20.0100.01017.40
8.0.10.0000.00716.91
8.0.00.0080.00916.85
7.4.330.0050.00016.83
7.4.320.0000.00616.62
7.4.300.0000.00616.51
7.4.290.0070.00016.57
7.4.280.0040.00716.47
7.4.270.0020.00516.61
7.4.260.0040.00416.61
7.4.250.0030.00516.51
7.4.240.0020.00516.55
7.4.230.0070.00016.71
7.4.220.0080.01216.38
7.4.210.0090.00916.52
7.4.200.0030.00316.61
7.4.160.0070.01016.35
7.4.150.0150.00317.40
7.4.140.0110.01617.86
7.4.130.0090.00916.51
7.4.120.0090.00816.57
7.4.110.0160.00316.60
7.4.100.0060.01216.64
7.4.90.0100.00716.52
7.4.80.0100.00719.39
7.4.70.0080.00916.48
7.4.60.0130.00816.52
7.4.50.0120.00316.53
7.4.40.0130.00416.57
7.4.30.0000.01716.46
7.4.00.0060.00914.72
7.3.330.0020.00213.27
7.3.320.0050.00013.11
7.3.310.0070.00016.18
7.3.300.0030.00316.37
7.3.290.0060.00816.36
7.3.280.0110.00816.30
7.3.270.0090.00917.40
7.3.260.0170.00316.58
7.3.240.0150.00516.40
7.3.230.0110.00516.42
7.3.210.0140.00316.60
7.3.200.0090.00616.34
7.3.190.0100.00716.43
7.3.180.0180.00416.71
7.3.170.0120.00916.57
7.3.160.0090.01216.42
7.3.10.0100.00316.24
7.3.00.0100.00816.51
7.2.330.0040.01516.79
7.2.320.0140.00516.66
7.2.310.0130.00416.70
7.2.300.0090.00916.61
7.2.290.0090.00916.79
7.2.130.0070.01116.66
7.2.120.0070.01016.72
7.2.110.0160.01016.71
7.2.100.0100.00716.71
7.2.90.0240.00316.78
7.2.80.0060.01016.59
7.2.70.0160.00916.77
7.2.60.0120.00816.74
7.2.50.0080.00816.72
7.2.40.0130.00816.87
7.2.30.0060.01016.73
7.2.20.0040.01216.71
7.2.10.0180.00216.75
7.2.00.0100.00817.76
7.1.250.0050.01215.38
7.1.200.0070.00715.76
7.1.100.0000.01218.16
7.1.70.0000.01017.13
7.1.60.0120.00919.48
7.1.50.0100.01316.64
7.1.00.0070.07322.30
7.0.200.0260.00314.68
7.0.60.0030.07719.97
7.0.50.0030.08717.87
7.0.40.0030.09320.23
7.0.30.0400.07720.30
7.0.20.0170.04720.06
7.0.10.0030.04720.10
7.0.00.0030.06320.25
5.6.280.0030.06321.09
5.6.210.0170.06320.50
5.6.200.0070.04718.29
5.6.190.0100.07720.60
5.6.180.0200.04320.39
5.6.170.0300.04720.66
5.6.160.0030.04720.50
5.6.150.0030.08718.15
5.6.140.0030.08018.19
5.6.130.0030.04318.14
5.6.120.0070.05321.02
5.6.110.0030.08021.13
5.6.100.0070.05020.97
5.6.90.0070.08721.09
5.6.80.0030.04320.51
5.5.350.4300.04320.31
5.5.340.0100.06318.07
5.5.330.0030.08720.47
5.5.320.0030.05020.31
5.5.310.0170.04720.14
5.5.300.0070.08017.95
5.5.290.0030.05018.10
5.5.280.0030.04020.88
5.5.270.0070.03720.87
5.5.260.0130.06720.80
5.5.250.0030.07720.50
5.5.240.0300.07020.18

preferences:
49.65 ms | 401 KiB | 5 Q