3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { const ALPHA = 1, BETA = 2, GAMMA = 3; public $a = "apple", $b = "bread", $c = "candy"; public function __construct() { // do something } } $t = new Test; echo Test::ALPHA $t->c $t->$a;

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.0110.05412.38
5.4.270.0100.05412.38
5.4.260.0170.05912.38
5.4.250.0140.06912.38
5.4.240.0080.05412.38
5.4.230.0080.05412.37
5.4.220.0070.05212.38
5.4.210.0080.03912.37
5.4.200.0090.04512.38
5.4.190.0110.05212.37
5.4.180.0100.05312.37
5.4.170.0080.03512.38
5.4.160.0130.04912.38
5.4.150.0150.04812.37
5.4.140.0070.06312.06
5.4.130.0130.04312.04
5.4.120.0130.04412.01
5.4.110.0110.04712.00
5.4.100.0080.04112.00
5.4.90.0080.03712.00
5.4.80.0050.04212.00
5.4.70.0130.04312.00
5.4.60.0100.04112.00
5.4.50.0080.03912.00
5.4.40.0130.04411.99
5.4.30.0040.04111.98
5.4.20.0080.03511.98
5.4.10.0090.03511.98
5.4.00.0080.04811.47
5.3.280.0130.04812.71
5.3.270.0110.04412.73
5.3.260.0110.05012.72
5.3.250.0080.04012.72
5.3.240.0070.04112.72
5.3.230.0080.04212.71
5.3.220.0120.03812.68
5.3.210.0040.04612.68
5.3.200.0150.04112.68
5.3.190.0130.04812.68
5.3.180.0130.04712.67
5.3.170.0070.05812.67
5.3.160.0090.05512.67
5.3.150.0090.03912.68
5.3.140.0080.03812.66
5.3.130.0090.04112.66
5.3.120.0090.03912.66
5.3.110.0050.04212.66
5.3.100.0090.03812.12
5.3.90.0140.04712.08
5.3.80.0080.03712.07
5.3.70.0090.04112.07
5.3.60.0100.04612.06
5.3.50.0120.03812.00
5.3.40.0090.05412.00
5.3.30.0200.05411.95
5.3.20.0100.06811.73
5.3.10.0130.06511.70
5.3.00.0100.04111.70

preferences:
143.56 ms | 1394 KiB | 7 Q