3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Pessoa { protected $nome; public function setName($name) { $this->nome = $name; } } for ($i=0; $i < 500; $i++) { $teste = new Pessoa(); $teste->setNome('Luis'); }

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.01316.75
8.3.50.0150.00722.11
8.3.40.0100.00318.73
8.3.30.0070.00718.67
8.3.20.0000.00820.33
8.3.10.0040.00423.66
8.3.00.0040.00419.38
8.2.180.0130.01016.50
8.2.170.0120.00422.96
8.2.160.0100.00320.28
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0090.00019.13
8.2.120.0030.00526.35
8.2.110.0000.00920.52
8.2.100.0040.00817.92
8.2.90.0000.00819.17
8.2.80.0040.00417.97
8.2.70.0060.00317.63
8.2.60.0130.00317.80
8.2.50.0040.00418.07
8.2.40.0070.00019.34
8.2.30.0040.00420.68
8.2.20.0000.00817.67
8.2.10.0030.00618.04
8.2.00.0000.00817.95
8.1.280.0080.00825.92
8.1.270.0080.00022.24
8.1.260.0000.00828.09
8.1.250.0000.00728.09
8.1.240.0060.00323.98
8.1.230.0000.01119.32
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0090.00017.35
8.1.190.0000.00817.35
8.1.180.0040.00418.10
8.1.170.0000.00720.25
8.1.160.0000.00721.96
8.1.150.0070.00018.79
8.1.140.0030.00619.54
8.1.130.0070.00017.64
8.1.120.0070.00017.29
8.1.110.0000.00717.41
8.1.100.0000.00817.36
8.1.90.0020.00517.44
8.1.80.0040.00417.27
8.1.70.0030.00317.35
8.1.60.0080.00017.58
8.1.50.0030.00517.43
8.1.40.0060.00617.56
8.1.30.0040.00417.65
8.1.20.0000.00717.58
8.1.10.0060.00317.55
8.1.00.0050.00517.52
8.0.300.0080.00018.77
8.0.290.0070.00016.75
8.0.280.0000.00718.41
8.0.270.0000.00717.18
8.0.260.0030.00317.11
8.0.250.0040.00416.84
8.0.240.0040.00616.84
8.0.230.0030.00316.91
8.0.220.0050.00316.91
8.0.210.0040.00316.79
8.0.200.0000.00616.93
8.0.190.0080.00016.82
8.0.180.0000.00716.76
8.0.170.0000.00816.92
8.0.160.0070.00016.80
8.0.150.0030.00316.79
8.0.140.0000.00716.89
8.0.130.0030.00313.32
8.0.120.0050.00516.82
8.0.110.0000.00716.88
8.0.100.0040.00416.75
8.0.90.0030.00516.76
8.0.80.0080.00816.88
8.0.70.0050.00216.78
8.0.60.0040.00416.71
8.0.50.0000.00716.99
8.0.30.0100.01016.90
8.0.20.0150.00517.40
8.0.10.0070.00016.80
8.0.00.0090.00916.72
7.4.330.0050.00016.83
7.4.320.0000.00616.34
7.4.300.0000.00716.43
7.4.290.0030.00316.59
7.4.280.0040.00416.50
7.4.270.0030.00316.60
7.4.260.0030.00316.48
7.4.250.0000.00716.45
7.4.240.0040.00316.54
7.4.230.0030.00316.63
7.4.220.0030.01316.50
7.4.210.0090.00616.62
7.4.200.0040.00416.42
7.4.160.0000.01516.55
7.4.150.0100.01017.40
7.4.140.0100.01217.86
7.4.130.0040.01416.55
7.4.120.0120.00916.68
7.4.110.0070.01116.27
7.4.100.0080.01516.41
7.4.90.0110.00716.32
7.4.80.0130.00619.39
7.4.70.0030.01616.57
7.4.60.0000.01516.51
7.4.50.0060.00616.47
7.4.40.0090.00916.40
7.4.30.0070.01316.40
7.4.00.0030.01014.88
7.3.330.0000.00513.29
7.3.320.0000.00513.14
7.3.310.0020.00516.21
7.3.300.0040.00416.27
7.3.290.0060.01116.34
7.3.280.0090.00916.34
7.3.270.0100.00717.40
7.3.260.0110.00716.27
7.3.250.0110.00716.54
7.3.240.0090.01116.46
7.3.230.0110.00616.52
7.3.210.0090.00916.47
7.3.200.0120.00616.39
7.3.190.0110.00516.32
7.3.180.0060.01016.38
7.3.170.0030.01416.63
7.3.160.0060.01016.32
7.3.10.0100.00616.59
7.3.00.0040.01116.71
7.2.330.0190.00616.58
7.2.320.0030.01416.70
7.2.310.0090.01016.52
7.2.300.0160.00816.66
7.2.290.0030.01616.65
7.2.130.0060.00916.88
7.2.120.0030.01416.69
7.2.110.0060.00616.71
7.2.100.0110.00316.91
7.2.90.0000.01016.74
7.2.80.0040.01116.72
7.2.70.0070.00416.82
7.2.60.0040.01016.65
7.2.50.0070.00716.89
7.2.40.0040.00716.90
7.2.30.0090.00316.90
7.2.20.0090.00616.84
7.2.10.0090.00616.79
7.2.00.0070.00818.03
7.1.250.0000.01115.77
7.1.200.0040.00815.75
7.1.100.0070.00718.09
7.1.70.0050.00317.10
7.1.60.0140.01119.48
7.1.50.0100.00616.89
7.1.00.0070.07322.35
7.0.200.0030.00714.72
7.0.60.0100.08020.03
7.0.50.0170.07317.87
7.0.40.0030.09020.11
7.0.30.0270.05720.17
7.0.20.0230.07020.09
7.0.10.0070.04020.23
7.0.00.0100.04020.24
5.6.280.0100.06021.10
5.6.210.0100.08320.57
5.6.200.0000.04318.29
5.6.190.0030.04720.77
5.6.180.0230.04020.77
5.6.170.0430.05720.54
5.6.160.0130.08720.52
5.6.150.0030.04018.23
5.6.140.0130.04018.18
5.6.130.0130.07318.20
5.6.120.0070.08321.12
5.6.110.0130.07720.98
5.6.100.0030.08721.11
5.6.90.0130.07721.00
5.6.80.0100.07720.51
5.5.350.0030.03320.39
5.5.340.0030.04018.07
5.5.330.0070.04020.29
5.5.320.0230.03720.34
5.5.310.0230.03720.24
5.5.300.0100.05317.97
5.5.290.0100.05317.98
5.5.280.0000.09320.88
5.5.270.0070.08720.98
5.5.260.0100.08020.90
5.5.250.0000.04320.50
5.5.240.0170.03720.28

preferences:
53.55 ms | 401 KiB | 5 Q