3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public $prop1, $prop2,$prop3,$prop4; private $prop11, $prop12,$prop13,$prop14; protected $prop21, $prop22,$prop23,$prop24; public countProps() { return get_object_vars($this); } } $t = new Test; echo count( get_object_vars($t) ); echo "\n"; echo $t->countProps();

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.280.0080.05212.38
5.4.270.0180.04212.38
5.4.260.0110.05112.38
5.4.250.0160.04912.38
5.4.240.0140.04812.38
5.4.230.0110.04912.37
5.4.220.0150.04512.37
5.4.210.0120.04612.37
5.4.200.0110.05012.37
5.4.190.0070.05412.36
5.4.180.0060.05212.37
5.4.170.0070.05112.37
5.4.160.0110.04612.37
5.4.150.0110.05412.37
5.4.140.0120.05212.05
5.4.130.0110.03912.04
5.4.120.0090.03812.00
5.4.110.0110.04512.00
5.4.100.0100.04712.00
5.4.90.0110.05312.00
5.4.80.0100.05412.00
5.4.70.0100.04812.00
5.4.60.0110.04612.00
5.4.50.0110.04712.00
5.4.40.0140.06411.98
5.4.30.0120.04311.98
5.4.20.0130.05111.98
5.4.10.0110.04511.98
5.4.00.0080.04911.47
5.3.280.0070.04912.71
5.3.270.0160.05112.72
5.3.260.0120.05612.72
5.3.250.0100.05512.71
5.3.240.0090.05112.72
5.3.230.0150.04812.71
5.3.220.0120.05212.68
5.3.210.0100.05412.68
5.3.200.0090.04812.68
5.3.190.0150.04812.68
5.3.180.0120.05112.67
5.3.170.0120.04812.67
5.3.160.0090.05012.68
5.3.150.0090.05112.68
5.3.140.0110.04812.66
5.3.130.0060.05712.66
5.3.120.0090.05512.66
5.3.110.0120.05612.66
5.3.100.0120.04812.12
5.3.90.0070.04012.08
5.3.80.0070.03812.08
5.3.70.0110.03512.07
5.3.60.0090.04612.07
5.3.50.0080.05112.00
5.3.40.0150.05112.00
5.3.30.0150.04611.95
5.3.20.0110.04811.73
5.3.10.0190.04511.70
5.3.00.0080.05211.69

preferences:
143.9 ms | 1386 KiB | 7 Q