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.0090.00616.63
8.3.50.0140.00522.11
8.3.40.0110.00418.70
8.3.30.0090.00618.81
8.3.20.0040.00420.38
8.3.10.0040.00423.61
8.3.00.0030.00519.38
8.2.180.0180.00318.16
8.2.170.0040.01122.96
8.2.160.0070.00722.25
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0090.00019.36
8.2.120.0040.00426.35
8.2.110.0060.00320.33
8.2.100.0040.00817.93
8.2.90.0080.00019.35
8.2.80.0080.00017.97
8.2.70.0090.00017.75
8.2.60.0000.00818.16
8.2.50.0040.00418.07
8.2.40.0000.00819.45
8.2.30.0000.00720.56
8.2.20.0030.00617.83
8.2.10.0050.00318.15
8.2.00.0040.00418.13
8.1.280.0040.01125.92
8.1.270.0080.00024.02
8.1.260.0070.00028.09
8.1.250.0090.00028.09
8.1.240.0000.00823.92
8.1.230.0060.00617.77
8.1.220.0060.00317.77
8.1.210.0050.00318.77
8.1.200.0060.00317.35
8.1.190.0050.00317.13
8.1.180.0080.00018.10
8.1.170.0050.00320.50
8.1.160.0040.00422.04
8.1.150.0080.00018.91
8.1.140.0040.00419.64
8.1.130.0000.00717.63
8.1.120.0040.00417.50
8.1.110.0070.00017.48
8.1.100.0030.00517.45
8.1.90.0080.00017.46
8.1.80.0040.00417.40
8.1.70.0030.00317.36
8.1.60.0030.00617.52
8.1.50.0030.00517.47
8.1.40.0000.01217.42
8.1.30.0050.00317.54
8.1.20.0040.00417.54
8.1.10.0060.00317.50
8.1.00.0000.00817.45
8.0.300.0000.00818.77
8.0.290.0040.00416.58
8.0.280.0030.00318.39
8.0.270.0020.00517.29
8.0.260.0030.00517.20
8.0.250.0030.00516.99
8.0.240.0030.00316.99
8.0.230.0040.00416.96
8.0.220.0000.00716.85
8.0.210.0000.00716.86
8.0.200.0070.00016.85
8.0.190.0040.00416.88
8.0.180.0080.00016.96
8.0.170.0040.00416.91
8.0.160.0000.00716.87
8.0.150.0040.00416.93
8.0.140.0040.00416.77
8.0.130.0050.00013.33
8.0.120.0040.00416.78
8.0.110.0000.00716.92
8.0.100.0000.00716.70
8.0.90.0000.00716.91
8.0.80.0030.01216.81
8.0.70.0070.00016.88
8.0.60.0080.00016.81
8.0.50.0000.00716.87
8.0.30.0110.00917.29
8.0.20.0100.01017.40
8.0.10.0000.00816.87
8.0.00.0100.01316.75
7.4.330.0000.00516.85
7.4.320.0000.00616.67
7.4.300.0030.00316.45
7.4.290.0000.00716.61
7.4.280.0000.00816.61
7.4.270.0030.00316.64
7.4.260.0040.00416.48
7.4.250.0030.00316.52
7.4.240.0020.00516.57
7.4.230.0040.00416.33
7.4.220.0150.00416.54
7.4.210.0060.00916.71
7.4.200.0030.00316.53
7.4.160.0050.01016.43
7.4.150.0090.00917.40
7.4.140.0130.01117.86
7.4.130.0040.01316.53
7.4.120.0110.00616.51
7.4.110.0100.00816.48
7.4.100.0070.01516.53
7.4.90.0080.00816.49
7.4.80.0130.00419.39
7.4.70.0000.01616.61
7.4.60.0030.01416.46
7.4.50.0000.01516.64
7.4.40.0070.01016.43
7.4.30.0100.00716.60
7.4.10.0130.00314.96
7.4.00.0080.00714.97
7.3.330.0060.00013.15
7.3.320.0030.00313.25
7.3.310.0070.00016.32
7.3.300.0030.00316.18
7.3.290.0060.00816.29
7.3.280.0080.00716.36
7.3.270.0130.00617.40
7.3.260.0100.00816.43
7.3.250.0110.00816.50
7.3.240.0070.01116.40
7.3.230.0090.00616.53
7.3.210.0110.00716.55
7.3.200.0060.00916.33
7.3.190.0030.01716.41
7.3.180.0040.01216.68
7.3.170.0080.00816.50
7.3.160.0090.00916.65
7.3.130.0040.01414.77
7.3.120.0060.01315.08
7.3.110.0100.00614.76
7.3.100.0120.00314.73
7.3.90.0000.01414.48
7.3.80.0090.00014.79
7.3.70.0070.00714.97
7.3.60.0090.00314.73
7.3.50.0000.01714.80
7.3.40.0080.00414.72
7.3.30.0000.00814.88
7.3.20.0070.00316.65
7.3.10.0070.01016.91
7.3.00.0060.00916.66
7.2.330.0060.01216.76
7.2.320.0030.01616.71
7.2.310.0150.00416.74
7.2.300.0100.00716.61
7.2.290.0050.01416.57
7.2.260.0040.01515.03
7.2.250.0030.01615.05
7.2.240.0070.00715.33
7.2.230.0100.00015.04
7.2.220.0150.00415.10
7.2.210.0060.00915.36
7.2.200.0030.00615.21
7.2.190.0060.00915.04
7.2.180.0100.00715.09
7.2.170.0060.00615.09
7.2.160.0060.00315.13
7.2.150.0060.01316.84
7.2.140.0070.01016.85
7.2.130.0060.00617.13
7.2.120.0000.01116.75
7.2.110.0090.00416.68
7.2.100.0070.00716.95
7.2.90.0060.01017.01
7.2.80.0090.00317.15
7.2.70.0080.00316.86
7.2.60.0080.00316.84
7.2.50.0000.01216.92
7.2.40.0090.00316.80
7.2.30.0060.01216.79
7.2.20.0040.00416.97
7.2.10.0030.01317.16
7.2.00.0050.01118.08
7.1.330.0100.00315.98
7.1.320.0040.01115.74
7.1.310.0060.00915.78
7.1.300.0130.00315.54
7.1.290.0030.01315.78
7.1.280.0030.00715.88
7.1.270.0130.00015.80
7.1.260.0100.00715.46
7.1.250.0040.00715.63
7.1.240.0080.00815.61
7.1.230.0040.00415.82
7.1.220.0030.00615.91
7.1.210.0100.00315.50
7.1.200.0080.00615.74
7.1.190.0050.00515.95
7.1.180.0030.01015.93
7.1.170.0070.00715.98
7.1.160.0030.00915.73
7.1.150.0030.00815.77
7.1.140.0090.00615.63
7.1.130.0080.00615.63
7.1.120.0090.00015.62
7.1.110.0030.01015.95
7.1.100.0080.00617.05
7.1.90.0100.00315.78
7.1.80.0030.00915.89
7.1.70.0020.00916.57
7.1.60.0090.00616.53
7.1.50.0100.00816.46
7.1.40.0070.00315.57
7.1.30.0070.00715.97
7.1.20.0000.01415.78
7.1.10.0000.01615.74
7.1.00.0040.04119.05
7.0.330.0030.00915.43
7.0.320.0060.00615.55
7.0.310.0040.00715.18
7.0.300.0110.00415.52
7.0.290.0040.00715.36
7.0.280.0040.01115.26
7.0.270.0030.01015.38
7.0.260.0030.00715.39
7.0.250.0060.00615.48
7.0.240.0090.00015.10
7.0.230.0040.00815.42
7.0.220.0090.00415.62
7.0.210.0040.00415.57
7.0.200.0040.00616.04
7.0.190.0040.00415.61
7.0.180.0060.00315.11
7.0.170.0060.00315.37
7.0.160.0140.00015.52
7.0.150.0070.00715.30
7.0.140.0030.00815.43
7.0.130.0030.00615.39
7.0.120.0100.00315.49
7.0.110.0030.01015.51
7.0.100.0130.02817.78
7.0.90.0110.04517.58
7.0.80.0130.03717.74
7.0.70.0050.04317.72
7.0.60.0120.02917.76
7.0.50.0080.04317.77
7.0.40.0030.04316.80
7.0.30.0100.04416.77
7.0.20.0050.02716.81
7.0.10.0080.02216.82
7.0.00.0040.04916.88
5.6.400.0100.00714.36
5.6.390.0030.01014.18
5.6.380.0110.00014.04
5.6.370.0090.00614.42
5.6.360.0030.00914.32
5.6.350.0090.00614.65
5.6.340.0040.01114.55
5.6.330.0060.00914.54
5.6.320.0030.00714.66
5.6.310.0060.00314.39
5.6.300.0030.01014.71
5.6.290.0030.01214.66
5.6.280.0000.03117.82
5.6.270.0030.01014.50
5.6.260.0070.00414.27
5.6.250.0150.02717.39
5.6.240.0070.04317.45
5.6.230.0090.04217.55
5.6.220.0100.04017.53
5.6.210.0050.02517.52
5.6.200.0070.02317.69
5.6.190.0080.04317.62
5.6.180.0070.04717.78
5.6.170.0100.04217.75
5.6.160.0060.04517.70
5.6.150.0100.03717.55
5.6.140.0060.02617.68
5.6.130.0070.04717.61
5.6.120.0080.04317.65
5.6.110.0080.04317.71
5.6.100.0080.02317.68
5.6.90.0120.02517.64
5.6.80.0090.03217.44
5.6.70.0070.04517.41
5.6.60.0050.04317.29
5.6.50.0080.03717.37
5.6.40.0050.03417.33
5.6.30.0080.02317.26
5.6.20.0030.03117.56
5.6.10.0100.04317.37
5.6.00.0100.04017.42
5.5.380.0120.03717.39
5.5.370.0100.04717.44
5.5.360.0090.04017.16
5.5.350.0050.04217.45
5.5.340.0050.02517.52
5.5.330.0030.03217.85
5.5.320.0080.03817.50
5.5.310.0030.03017.52
5.5.300.0090.03917.55
5.5.290.0080.04017.53
5.5.280.0070.03817.65
5.5.270.0090.04017.53
5.5.260.0100.02717.65
5.5.250.0030.05117.55
5.5.240.0070.04217.29
5.5.230.0070.04517.19
5.5.220.0120.02017.22
5.5.210.0050.02517.29
5.5.200.0050.02517.13
5.5.190.0110.04217.36
5.5.180.0060.02317.30
5.5.170.0100.00714.35
5.5.160.0080.02517.29
5.5.150.0030.04217.21
5.5.140.0110.04317.21
5.5.130.0080.02817.02
5.5.120.0070.02117.23
5.5.110.0050.04417.23
5.5.100.0000.04417.03
5.5.90.0070.04017.10
5.5.80.0030.04017.20
5.5.70.0030.02317.15
5.5.60.0100.03817.24
5.5.50.0110.03417.09
5.5.40.0150.02517.17
5.5.30.0060.03417.15
5.5.20.0100.03817.38
5.5.10.0020.03917.22
5.5.00.0070.04017.20

preferences:
47.67 ms | 401 KiB | 5 Q