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->getFoo(); }

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.0120.04712.02
5.4.340.0080.04812.01
5.4.320.0090.05512.50
5.4.310.0100.07012.49
5.4.300.0200.07912.50
5.4.290.0100.05312.49
5.4.280.0120.04912.39
5.4.270.0140.04412.39
5.4.260.0080.07812.39
5.4.250.0100.06512.39
5.4.240.0100.06112.39
5.4.230.0220.07012.38
5.4.220.0110.06512.38
5.4.210.0100.06612.38
5.4.200.0080.05612.38
5.4.190.0070.04612.38
5.4.180.0060.04712.38
5.4.170.0080.04812.39
5.4.160.0150.06212.38
5.4.150.0270.12812.38
5.4.140.0050.06012.07
5.4.130.0100.04612.05
5.4.120.0190.11512.01
5.4.110.0150.11312.02
5.4.100.0060.06412.01
5.4.90.0120.04912.01
5.4.80.0080.04712.01
5.4.70.0050.04412.01
5.4.60.0090.04212.00
5.4.50.0060.04912.01
5.4.40.0080.04611.99
5.4.30.0100.04811.99
5.4.20.0100.05311.99
5.4.10.0090.04612.00
5.4.00.0100.03911.48
5.3.290.0070.05112.80
5.3.280.0090.04212.71
5.3.270.0150.04512.73
5.3.260.0080.06712.71
5.3.250.0150.06212.71
5.3.240.0080.05712.72
5.3.230.0060.05612.71
5.3.220.0150.03912.68
5.3.210.0090.05512.68
5.3.200.0110.05312.68
5.3.190.0060.05012.68
5.3.180.0070.05212.68
5.3.170.0140.04612.67
5.3.160.0080.04012.67
5.3.150.0050.03912.67
5.3.140.0110.03312.66
5.3.130.0100.03812.66
5.3.120.0100.06812.66
5.3.110.0150.05112.66
5.3.100.0140.04312.12
5.3.90.0070.05212.08
5.3.80.0100.05112.07
5.3.70.0060.04112.08
5.3.60.0130.05912.06
5.3.50.0090.04012.00
5.3.40.0140.04512.00
5.3.30.0110.05411.95
5.3.20.0150.07811.73
5.3.10.0090.04211.70
5.3.00.0040.04211.68
5.2.170.0060.0339.18
5.2.160.0040.0369.18
5.2.150.0150.0609.18
5.2.140.0120.0359.18
5.2.130.0090.0339.14
5.2.120.0030.0329.14
5.2.110.0070.0329.15
5.2.100.0040.0309.14
5.2.90.0010.0339.14
5.2.80.0050.0309.14
5.2.70.0030.0369.14
5.2.60.0130.0599.09
5.2.50.0200.0979.05
5.2.40.0070.0309.03
5.2.30.0070.0349.01
5.2.20.0050.0329.00
5.2.10.0070.0338.93
5.2.00.0030.0388.79
5.1.60.0070.0328.07
5.1.50.0090.0548.06
5.1.40.0110.0738.05
5.1.30.0060.0338.40
5.1.20.0060.0428.41
5.1.10.0060.0288.14
5.1.00.0050.0308.14
5.0.50.0030.0266.62
5.0.40.0030.0236.48
5.0.30.0050.0346.30
5.0.20.0100.0386.27
5.0.10.0060.0276.23
5.0.00.0040.0326.23
4.4.90.0020.0174.77
4.4.80.0050.0134.75
4.4.70.0020.0224.75
4.4.60.0030.0164.75
4.4.50.0030.0164.77
4.4.40.0030.0274.71
4.4.30.0020.0184.76
4.4.20.0020.0184.84
4.4.10.0070.0254.84
4.4.00.0030.0304.75
4.3.110.0060.0144.66
4.3.100.0050.0154.66
4.3.90.0040.0144.63
4.3.80.0050.0274.58
4.3.70.0020.0164.63
4.3.60.0010.0174.63
4.3.50.0040.0174.63
4.3.40.0020.0284.54
4.3.30.0060.0153.28
4.3.20.0010.0183.26
4.3.10.0020.0163.22
4.3.00.0100.0337.04

preferences:
138.6 ms | 1398 KiB | 7 Q