3v4l.org

run code in 300+ PHP versions simultaneously
<?php define("DATA_PATH", "AAA"); class aaa { public static $b; public function __construct() { self::$b = DATA_PATH."BBB"; } public static foo() { self::$b = DATA_PATH."BBB"; } } $t = new aaa(); aaa::foo(); echo $t::$b;

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.0070.03612.04
5.4.340.0080.03612.03
5.4.320.0090.03612.52
5.4.310.0100.03612.52
5.4.300.0080.04012.52
5.4.290.0100.03612.51
5.4.280.0060.03712.41
5.4.270.0060.04112.41
5.4.260.0090.03612.41
5.4.250.0060.05612.41
5.4.240.0160.03712.41
5.4.230.0100.03912.40
5.4.220.0060.03812.40
5.4.210.0070.03712.40
5.4.200.0050.04112.40
5.4.190.0050.04512.40
5.4.180.0070.03712.40
5.4.170.0100.03712.40
5.4.160.0050.04112.40
5.4.150.0070.04012.39
5.4.140.0070.04312.09
5.4.130.0060.04012.07
5.4.120.0080.03512.04
5.4.110.0060.03612.03
5.4.100.0050.03812.03
5.4.90.0090.03612.03
5.4.80.0040.05112.03
5.4.70.0090.03212.03
5.4.60.0110.03412.02
5.4.50.0090.03512.02
5.4.40.0050.03812.02
5.4.30.0080.03512.02
5.4.20.0060.03712.01
5.4.10.0100.03512.01
5.4.00.0100.03911.50
5.3.290.0050.04312.80
5.3.280.0050.04012.71
5.3.270.0090.04412.73
5.3.260.0070.04612.72
5.3.250.0070.03912.72
5.3.240.0070.05012.72
5.3.230.0120.03812.71
5.3.220.0080.03912.68
5.3.210.0040.04312.68
5.3.200.0060.04212.68
5.3.190.0080.03912.68
5.3.180.0110.03912.67
5.3.170.0070.03712.67
5.3.160.0050.04412.67
5.3.150.0090.04012.67
5.3.140.0090.03612.66
5.3.130.0090.04312.66
5.3.120.0070.04512.66
5.3.110.0080.04312.65
5.3.100.0070.04412.12
5.3.90.0070.04112.10
5.3.80.0100.04112.10
5.3.70.0120.04612.10
5.3.60.0090.04912.08
5.3.50.0090.04012.03
5.3.40.0070.04212.02
5.3.30.0070.04011.98
5.3.20.0060.04011.77
5.3.10.0110.03411.73
5.3.00.0090.03611.72
5.2.170.0050.0339.22
5.2.160.0080.0319.22
5.2.150.0060.0329.22
5.2.140.0060.0329.21
5.2.130.0050.0339.18
5.2.120.0090.0389.18
5.2.110.0080.0359.19
5.2.100.0070.0299.18
5.2.90.0080.0379.18
5.2.80.0070.0349.17
5.2.70.0090.0319.17
5.2.60.0070.0339.13
5.2.50.0050.0339.10
5.2.40.0050.0309.07
5.2.30.0050.0329.05
5.2.20.0070.0309.04
5.2.10.0080.0318.94
5.2.00.0090.0328.80
5.1.60.0080.0368.09
5.1.50.0040.0268.08
5.1.40.0060.0248.07
5.1.30.0080.0258.42
5.1.20.0050.0338.44
5.1.10.0080.0288.17
5.1.00.0070.0258.17
5.0.50.0040.0236.64
5.0.40.0070.0206.50
5.0.30.0050.0346.32
5.0.20.0040.0236.28
5.0.10.0050.0226.26
5.0.00.0060.0316.25
4.4.90.0020.0244.78
4.4.80.0030.0164.75
4.4.70.0020.0174.75
4.4.60.0020.0174.76
4.4.50.0050.0164.77
4.4.40.0030.0294.71
4.4.30.0040.0164.76
4.4.20.0040.0154.85
4.4.10.0050.0134.85
4.4.00.0050.0264.76
4.3.110.0020.0174.67
4.3.100.0050.0164.66
4.3.90.0060.0144.64
4.3.80.0040.0244.59
4.3.70.0020.0174.63
4.3.60.0040.0184.63
4.3.50.0010.0224.63
4.3.40.0060.0224.54
4.3.30.0010.0183.30
4.3.20.0040.0153.28
4.3.10.0030.0153.23
4.3.00.0130.0236.83

preferences:
135.06 ms | 1398 KiB | 7 Q