3v4l.org

run code in 300+ PHP versions simultaneously
<?php <?php class MySuperEntity { private $foo; function __construct($foo) { $this->foo = $foo; } function getFoo() { return $this->foo; } } $model = new MySuperEntity('foo'); for($i=0;$i<10000;$i++) { $model->foo; }

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)
5.4.350.0370.17112.01
5.4.340.0170.07712.01
5.4.320.0180.09812.50
5.4.310.0230.10812.49
5.4.300.0140.05912.49
5.4.290.0130.06612.50
5.4.280.0100.04712.39
5.4.270.0110.04112.39
5.4.260.0130.05312.39
5.4.250.0100.06112.39
5.4.240.0270.11012.39
5.4.230.0150.05112.38
5.4.220.0100.05412.38
5.4.210.0080.05112.38
5.4.200.0100.05612.38
5.4.190.0130.05212.38
5.4.180.0070.05412.38
5.4.170.0100.05112.38
5.4.160.0100.04912.38
5.4.150.0090.05212.38
5.4.140.0140.06812.07
5.4.130.0110.05612.05
5.4.120.0160.06312.01
5.4.110.0190.06812.01
5.4.100.0120.05312.01
5.4.90.0180.04912.02
5.4.80.0190.04912.01
5.4.70.0210.04512.01
5.4.60.0290.06012.01
5.4.50.0240.05812.00
5.4.40.0340.08912.00
5.4.30.0240.06711.99
5.4.20.0100.05611.98
5.4.10.0110.05511.99
5.4.00.0140.06411.48
5.3.290.0100.05112.80
5.3.280.0130.03812.71
5.3.270.0120.04212.72
5.3.260.0080.05612.72
5.3.250.0060.05512.72
5.3.240.0120.05512.72
5.3.230.0120.04312.71
5.3.220.0060.05212.68
5.3.210.0080.05512.68
5.3.200.0140.05212.68
5.3.190.0090.05912.68
5.3.180.0110.05012.68
5.3.170.0100.05312.67
5.3.160.0100.05512.68
5.3.150.0160.06812.67
5.3.140.0070.05912.66
5.3.130.0120.05412.66
5.3.120.0120.05812.66
5.3.110.0070.05812.66
5.3.100.0080.04812.12
5.3.90.0110.05612.08
5.3.80.0120.05512.07
5.3.70.0300.13612.07
5.3.60.0270.08412.06
5.3.50.0140.08212.00
5.3.40.0120.06212.00
5.3.30.0090.05911.95
5.3.20.0150.05311.73
5.3.10.0110.05611.70
5.3.00.0110.05311.68
5.2.170.0050.0499.18
5.2.160.0090.0429.18
5.2.150.0110.0639.18
5.2.140.0120.0799.18
5.2.130.0260.0989.14
5.2.120.0110.0499.14
5.2.110.0090.0409.14
5.2.100.0140.0549.14
5.2.90.0090.0369.14
5.2.80.0150.0669.14
5.2.70.0110.0609.14
5.2.60.0050.0649.09
5.2.50.0220.0769.05
5.2.40.0100.0439.03
5.2.30.0120.0409.02
5.2.20.0180.0469.00
5.2.10.0100.0478.93
5.2.00.0090.0418.78
5.1.60.0080.0408.07
5.1.50.0070.0378.07
5.1.40.0110.0338.05
5.1.30.0070.0408.40
5.1.20.0100.0508.42
5.1.10.0080.0358.14
5.1.00.0070.0378.14
5.0.50.0030.0296.63
5.0.40.0060.0306.48
5.0.30.0150.0846.30
5.0.20.0070.0816.27
5.0.10.0120.0416.23
5.0.00.0150.0716.23
4.4.90.0060.0464.78
4.4.80.0050.0214.75
4.4.70.0050.0324.75
4.4.60.0110.0294.76
4.4.50.0110.0194.77
4.4.40.0020.0304.70
4.4.30.0030.0214.76
4.4.20.0050.0204.85
4.4.10.0030.0224.85
4.4.00.0050.0354.76
4.3.110.0060.0254.67
4.3.100.0050.0284.66
4.3.90.0040.0204.63
4.3.80.0040.0314.59
4.3.70.0050.0194.63
4.3.60.0050.0224.63
4.3.50.0040.0174.62
4.3.40.0020.0274.54
4.3.30.0030.0163.29
4.3.20.0040.0193.26
4.3.10.0050.0173.22
4.3.00.0100.0137.05

preferences:
142.86 ms | 1394 KiB | 7 Q