3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace u{ class c2{function c2() { echo 'constructor'; }}; } class c1{function c1() { echo 'constructor'; }}; $x = new c1; $y = new u\c2;

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.340.0070.03412.03
5.4.320.0090.04412.51
5.4.310.0100.05712.51
5.4.300.0070.04412.51
5.4.290.0050.04612.51
5.4.280.0060.03612.41
5.4.270.0110.03812.41
5.4.260.0120.03512.40
5.4.250.0070.03812.41
5.4.240.0070.03812.40
5.4.230.0100.04112.40
5.4.220.0080.03812.40
5.4.210.0070.03812.39
5.4.200.0110.04112.39
5.4.190.0080.03812.39
5.4.180.0150.03912.39
5.4.170.0110.04912.41
5.4.160.0080.04712.40
5.4.150.0060.03812.40
5.4.140.0090.03912.08
5.4.130.0070.03912.07
5.4.120.0050.03812.03
5.4.110.0090.03212.02
5.4.100.0040.04512.02
5.4.90.0050.03912.03
5.4.80.0110.05612.02
5.4.70.0060.03612.02
5.4.60.0070.04012.02
5.4.50.0050.04212.02
5.4.40.0080.03312.00
5.4.30.0030.03812.00
5.4.20.0050.03612.00
5.4.10.0050.03912.00
5.4.00.0070.04011.50
5.3.290.0060.04312.80
5.3.280.0110.04512.70
5.3.270.0040.04112.73
5.3.260.0070.04012.72
5.3.250.0070.03712.72
5.3.240.0060.03812.72
5.3.230.0060.03712.71
5.3.220.0090.03312.68
5.3.210.0080.04112.68
5.3.200.0070.04312.68
5.3.190.0060.03812.68
5.3.180.0090.03412.67
5.3.170.0070.03612.67
5.3.160.0060.04112.67
5.3.150.0060.04212.67
5.3.140.0080.03612.66
5.3.130.0070.03912.66
5.3.120.0080.04112.66
5.3.110.0120.03812.66
5.3.100.0060.04312.12
5.3.90.0090.04012.10
5.3.80.0150.06212.09
5.3.70.0140.06512.09
5.3.60.0110.04212.08
5.3.50.0080.04012.03
5.3.40.0050.04012.03
5.3.30.0080.04011.98
5.3.20.0080.04111.77
5.3.10.0080.03611.73
5.3.00.0120.03111.72
5.2.170.0070.0309.18
5.2.160.0080.0269.18
5.2.150.0070.0319.18
5.2.140.0040.0369.18
5.2.130.0090.0299.14
5.2.120.0060.0339.14
5.2.110.0050.0339.14
5.2.100.0040.0369.14
5.2.90.0050.0339.14
5.2.80.0040.0339.14
5.2.70.0040.0359.14
5.2.60.0060.0319.09
5.2.50.0060.0299.06
5.2.40.0030.0319.03
5.2.30.0080.0309.01
5.2.20.0040.0339.00
5.2.10.0070.0308.92
5.2.00.0060.0288.78
5.1.60.0040.0268.07
5.1.50.0060.0258.06
5.1.40.0060.0338.05
5.1.30.0090.0328.40
5.1.20.0060.0358.42
5.1.10.0170.0398.14
5.1.00.0110.0328.14
5.0.50.0080.0256.62
5.0.40.0050.0356.48
5.0.30.0070.0526.29
5.0.20.0040.0256.26
5.0.10.0110.0256.24
5.0.00.0100.0606.23
4.4.90.0240.0554.78
4.4.80.0020.0264.76
4.4.70.0070.0194.75
4.4.60.0020.0204.76
4.4.50.0040.0204.77
4.4.40.0030.0414.71
4.4.30.0050.0144.76
4.4.20.0050.0194.85
4.4.10.0080.0294.85
4.4.00.0090.0374.76
4.3.110.0090.0314.66
4.3.100.0100.0384.66
4.3.90.0060.0404.64
4.3.80.0050.0364.58
4.3.70.0060.0274.63
4.3.60.0020.0224.63
4.3.50.0050.0314.63
4.3.40.0080.0344.54
4.3.30.0060.0213.28
4.3.20.0030.0213.26
4.3.10.0020.0283.22
4.3.00.0070.0277.10

preferences:
141.76 ms | 1394 KiB | 7 Q