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 -> $atr2.'</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.0120.00316.63
8.3.50.0120.00918.18
8.3.40.0070.00718.92
8.3.30.0130.00318.78
8.3.20.0040.00420.30
8.3.10.0060.00323.52
8.3.00.0000.00819.38
8.2.180.0060.01216.88
8.2.170.0070.00722.96
8.2.160.0090.00620.46
8.2.150.0040.00424.18
8.2.140.0050.00224.66
8.2.130.0030.00717.63
8.2.120.0070.00026.35
8.2.110.0000.00920.41
8.2.100.0060.00617.91
8.2.90.0030.00519.30
8.2.80.0000.00817.97
8.2.70.0030.00617.63
8.2.60.0080.00017.68
8.2.50.0000.00818.07
8.2.40.0000.00719.41
8.2.30.0000.00720.62
8.2.20.0070.00317.71
8.2.10.0000.00718.11
8.2.00.0040.00418.15
8.1.280.0160.00025.92
8.1.270.0040.00423.88
8.1.260.0030.00628.09
8.1.250.0040.00428.09
8.1.240.0030.00522.14
8.1.230.0070.00417.79
8.1.220.0040.00417.79
8.1.210.0030.00518.77
8.1.200.0060.00317.35
8.1.190.0040.00417.25
8.1.180.0040.00418.10
8.1.170.0000.00818.71
8.1.160.0000.00721.95
8.1.150.0040.00418.92
8.1.140.0030.00519.58
8.1.130.0030.00317.72
8.1.120.0030.00517.53
8.1.110.0030.00517.50
8.1.100.0000.00817.48
8.1.90.0050.00317.43
8.1.80.0030.00617.51
8.1.70.0030.00517.40
8.1.60.0040.00417.52
8.1.50.0050.00317.58
8.1.40.0060.00317.43
8.1.30.0030.00517.61
8.1.20.0040.00417.65
8.1.10.0000.00817.48
8.1.00.0000.00817.50
8.0.300.0050.00318.77
8.0.290.0070.00016.63
8.0.280.0030.00318.40
8.0.270.0070.00017.16
8.0.260.0000.00717.28
8.0.250.0070.00016.98
8.0.240.0030.00316.93
8.0.230.0020.00517.08
8.0.220.0000.00716.87
8.0.210.0070.00016.94
8.0.200.0030.00317.01
8.0.190.0050.00316.92
8.0.180.0000.00917.00
8.0.170.0030.00516.98
8.0.160.0070.00016.91
8.0.150.0070.00016.94
8.0.140.0030.00316.91
8.0.130.0000.00713.39
8.0.120.0050.00316.91
8.0.110.0030.00516.87
8.0.100.0030.00516.97
8.0.90.0040.00417.00
8.0.80.0000.01716.97
8.0.70.0000.00716.90
8.0.60.0040.00416.87
8.0.50.0050.00217.04
8.0.30.0090.01117.30
8.0.20.0110.00717.40
8.0.10.0070.00017.06
8.0.00.0110.00916.99
7.4.330.0020.00216.85
7.4.320.0030.00316.62
7.4.300.0040.00416.62
7.4.290.0000.00716.52
7.4.280.0030.00616.43
7.4.270.0030.00316.54
7.4.260.0000.00716.51
7.4.250.0040.00416.51
7.4.240.0040.00416.59
7.4.230.0000.00716.56
7.4.220.0070.01116.65
7.4.210.0070.00716.47
7.4.200.0030.00316.71
7.4.160.0130.00316.63
7.4.150.0120.01317.40
7.4.140.0050.01717.86
7.4.130.0130.00616.57
7.4.120.0040.01316.48
7.4.110.0150.00416.70
7.4.100.0150.00716.38
7.4.90.0130.00416.65
7.4.80.0090.00919.39
7.4.70.0100.01316.52
7.4.60.0130.00316.58
7.4.50.0050.00816.61
7.4.40.0030.01316.53
7.4.30.0090.00916.67
7.4.10.0070.01014.82
7.4.00.0080.00814.88
7.3.330.0000.00513.32
7.3.320.0030.00313.22
7.3.310.0020.00516.58
7.3.300.0000.00616.45
7.3.290.0130.00416.43
7.3.280.0080.00816.44
7.3.270.0170.00017.40
7.3.260.0110.00716.50
7.3.240.0100.00916.50
7.3.230.0130.00716.40
7.3.210.0070.01816.43
7.3.200.0060.01116.39
7.3.190.0030.01316.31
7.3.180.0100.00716.50
7.3.170.0140.00716.59
7.3.160.0160.00016.55
7.3.130.0130.00614.75
7.3.120.0060.01014.97
7.3.110.0070.01014.96
7.3.100.0080.00914.91
7.3.90.0080.00514.82
7.3.80.0040.00714.81
7.3.70.0040.01014.85
7.3.60.0050.01014.71
7.3.50.0080.00814.82
7.3.40.0050.00914.81
7.3.30.0030.00914.81
7.3.20.0060.00516.64
7.3.10.0020.01316.67
7.3.00.0050.00916.64
7.2.330.0150.00316.70
7.2.320.0100.01316.81
7.2.310.0130.00616.70
7.2.300.0110.00816.84
7.2.290.0140.00316.56
7.2.260.0100.01015.15
7.2.250.0090.00915.06
7.2.240.0080.00715.08
7.2.230.0080.00814.90
7.2.220.0060.00715.00
7.2.210.0060.00615.13
7.2.200.0040.00815.14
7.2.190.0030.01015.06
7.2.180.0090.00615.04
7.2.170.0080.00815.04
7.2.160.0060.01015.06
7.2.150.0040.00916.83
7.2.140.0070.00816.96
7.2.130.0040.00817.00
7.2.120.0030.00816.93
7.2.110.0100.00316.88
7.2.100.0070.01016.96
7.2.90.0050.00716.97
7.2.80.0070.00816.79
7.2.70.0030.01216.89
7.2.60.0050.00816.95
7.2.50.0060.00516.92
7.2.40.0060.01016.99
7.2.30.0040.00916.94
7.2.20.0090.00516.98
7.2.10.0070.00516.95
7.2.00.0070.00617.42
7.1.330.0050.01115.80
7.1.320.0080.00615.81
7.1.310.0060.00715.81
7.1.300.0040.01015.71
7.1.290.0050.01015.72
7.1.280.0060.00815.79
7.1.270.0060.00715.83
7.1.260.0030.01115.80
7.1.250.0080.00515.75
7.1.240.0070.00515.88
7.1.230.0050.01015.57
7.1.220.0060.00815.70
7.1.210.0050.00715.74
7.1.200.0050.00815.76
7.1.190.0060.00815.72
7.1.180.0030.00615.70
7.1.170.0040.00815.77
7.1.160.0080.00615.61
7.1.150.0020.01115.72
7.1.140.0050.00915.79
7.1.130.0080.00415.71
7.1.120.0030.01015.80
7.1.110.0070.00715.76
7.1.100.0060.00816.49
7.1.90.0050.00915.81
7.1.80.0050.00915.79
7.1.70.0050.00516.13
7.1.60.0040.01116.64
7.1.50.0060.00716.08
7.1.40.0080.00815.86
7.1.30.0040.00715.78
7.1.20.0030.01115.62
7.1.10.0060.00615.66
7.1.00.0050.02517.39
7.0.330.0050.00815.51
7.0.320.0050.00915.23
7.0.310.0070.00515.48
7.0.300.0050.00715.49
7.0.290.0060.00615.38
7.0.280.0050.00615.39
7.0.270.0050.00515.41
7.0.260.0060.00515.45
7.0.250.0060.01015.47
7.0.240.0070.00615.46
7.0.230.0050.00715.49
7.0.220.0070.00415.54
7.0.210.0030.01015.33
7.0.200.0090.00815.17
7.0.190.0070.00715.56
7.0.180.0060.00515.46
7.0.170.0030.00715.49
7.0.160.0040.00815.41
7.0.150.0060.00515.44
7.0.140.0030.00915.51
7.0.130.0040.00815.49
7.0.120.0030.00815.46
7.0.110.0060.00915.43
7.0.100.0080.01816.58
7.0.90.0050.02716.54
7.0.80.0040.02716.57
7.0.70.0050.02716.49
7.0.60.0050.01516.39
7.0.50.0080.02316.75
7.0.40.0070.02315.09
7.0.30.0050.02615.19
7.0.20.0030.03115.09
7.0.10.0070.02015.22
7.0.00.0060.02615.07
5.6.400.0050.00714.23
5.6.390.0060.00714.20
5.6.380.0090.00414.43
5.6.370.0050.00614.48
5.6.360.0040.00614.54
5.6.350.0050.00614.40
5.6.340.0080.00614.44
5.6.330.0070.00714.49
5.6.320.0060.00714.50
5.6.310.0040.00914.33
5.6.300.0030.00914.43
5.6.290.0050.00614.37
5.6.280.0020.01616.01
5.6.270.0060.00614.42
5.6.260.0020.01114.46
5.6.250.0070.01915.84
5.6.240.0070.02016.02
5.6.230.0060.02615.89
5.6.220.0070.02615.96
5.6.210.0060.01815.94
5.6.200.0090.02416.14
5.6.190.0060.02316.10
5.6.180.0100.01416.13
5.6.170.0040.02416.18
5.6.160.0060.02616.01
5.6.150.0060.02716.07
5.6.140.0050.02816.07
5.6.130.0060.02715.94
5.6.120.0090.01615.96
5.6.110.0070.02616.08
5.6.100.0050.02716.06
5.6.90.0060.01616.11
5.6.80.0080.01915.91
5.6.70.0060.02115.89
5.6.60.0020.02615.90
5.6.50.0070.02315.90
5.6.40.0030.02915.77
5.6.30.0090.02015.76
5.6.20.0060.02415.86
5.6.10.0060.02715.90
5.6.00.0100.02115.73
5.5.380.0090.02315.76
5.5.370.0080.02515.77
5.5.360.0080.02215.89
5.5.350.0040.02715.83
5.5.340.0070.01815.96
5.5.330.0080.02716.05
5.5.320.0060.02715.78
5.5.310.0060.02416.02
5.5.300.0050.02415.92
5.5.290.0070.02615.96
5.5.280.0080.02415.93
5.5.270.0050.02915.87
5.5.260.0110.02415.93
5.5.250.0070.02415.87
5.5.240.0070.02315.69
5.5.230.0050.01915.71
5.5.220.0070.02415.67
5.5.210.0080.02315.64
5.5.200.0030.02715.78
5.5.190.0100.02115.78
5.5.180.0050.01815.55
5.5.170.0060.00914.23
5.5.160.0060.02315.83
5.5.150.0090.02415.64
5.5.140.0030.02215.69
5.5.130.0090.02015.63
5.5.120.0080.02415.67
5.5.110.0070.02215.91
5.5.100.0030.02615.70
5.5.90.0080.02215.70
5.5.80.0060.02315.72
5.5.70.0080.02315.70
5.5.60.0060.02615.67
5.5.50.0070.02215.62
5.5.40.0070.01715.51
5.5.30.0070.01515.74
5.5.20.0070.02315.75
5.5.10.0050.02715.68
5.5.00.0020.02215.67

preferences:
57.06 ms | 400 KiB | 5 Q