3v4l.org

run code in 300+ PHP versions simultaneously
<?php function getAllowedConstants() { return array(); } class Database { const CONN_MASTER = 'master'; const CONN_SLAVE = 'slave'; private static $allowed = getAllowedConstants(); }

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.05719.05
5.4.340.0060.04212.03
5.4.320.0090.04412.52
5.4.310.0120.04512.51
5.4.300.0060.04112.51
5.4.290.0150.03812.51
5.4.280.0200.04312.41
5.4.270.0100.04312.41
5.4.260.0070.04812.41
5.4.250.0100.05412.41
5.4.240.0100.03912.41
5.4.230.0050.04312.40
5.4.220.0090.03912.40
5.4.210.0060.04212.40
5.4.200.0090.05112.40
5.4.190.0090.04512.39
5.4.180.0090.04612.40
5.4.170.0060.04412.40
5.4.160.0120.03912.39
5.4.150.0060.05512.39
5.4.140.0110.04612.08
5.4.130.0130.04212.06
5.4.120.0070.05212.03
5.4.110.0090.04812.03
5.4.100.0140.07512.03
5.4.90.0040.05412.02
5.4.80.0070.05112.03
5.4.70.0100.04612.03
5.4.60.0080.04512.02
5.4.50.0070.05212.02
5.4.40.0100.05812.01
5.4.30.0110.04312.01
5.4.20.0070.03512.00
5.4.10.0090.04612.01
5.4.00.0100.04711.50
5.3.290.0060.04312.80
5.3.280.0110.04612.71
5.3.270.0050.04312.72
5.3.260.0080.05412.72
5.3.250.0080.05312.72
5.3.240.0040.05612.72
5.3.230.0120.04912.70
5.3.220.0120.04712.68
5.3.210.0090.05012.68
5.3.200.0130.04912.68
5.3.190.0100.04112.68
5.3.180.0080.05412.68
5.3.170.0020.05012.66
5.3.160.0070.05312.67
5.3.150.0080.04812.67
5.3.140.0100.03312.66
5.3.130.0070.05212.66
5.3.120.0070.05212.66
5.3.110.0100.04512.66
5.3.100.0100.04812.12
5.3.90.0090.05012.11
5.3.80.0110.04512.09
5.3.70.0120.04512.09
5.3.60.0110.04612.07
5.3.50.0120.04612.02
5.3.40.0090.05012.02
5.3.30.0130.04911.98
5.3.20.0070.05011.76
5.3.10.0100.04711.73
5.3.00.0100.04911.71
5.2.170.0060.0449.22
5.2.160.0050.0439.21
5.2.150.0080.0439.21
5.2.140.0030.0469.21
5.2.130.0080.0379.17
5.2.120.0080.0379.18
5.2.110.0080.0379.18
5.2.100.0080.0399.18
5.2.90.0080.0419.18
5.2.80.0050.0379.17
5.2.70.0100.0429.18
5.2.60.0070.0409.13
5.2.50.0050.0369.09
5.2.40.0070.0299.07
5.2.30.0080.0409.05
5.2.20.0050.0419.04
5.2.10.0050.0398.95
5.2.00.0080.0398.80
5.1.60.0100.0248.09
5.1.50.0070.0328.08
5.1.40.0060.0268.07
5.1.30.0060.0348.42
5.1.20.0060.0318.43
5.1.10.0050.0328.16
5.1.00.0040.0268.16
5.0.50.0040.0256.64
5.0.40.0070.0246.50
5.0.30.0050.0356.31
5.0.20.0060.0186.28
5.0.10.0040.0276.26
5.0.00.0080.0356.25
4.4.90.0040.0164.78
4.4.80.0040.0144.76
4.4.70.0020.0224.75
4.4.60.0040.0154.75
4.4.50.0050.0144.77
4.4.40.0050.0294.71
4.4.30.0030.0164.76
4.4.20.0020.0174.84
4.4.10.0050.0204.85
4.4.00.0040.0314.75
4.3.110.0020.0224.67
4.3.100.0030.0164.67
4.3.90.0020.0174.64
4.3.80.0040.0314.58
4.3.70.0040.0204.63
4.3.60.0030.0144.63
4.3.50.0040.0214.63
4.3.40.0040.0234.54
4.3.30.0030.0173.30
4.3.20.0000.0203.29
4.3.10.0020.0173.24
4.3.00.0170.0207.15

preferences:
133.55 ms | 1398 KiB | 7 Q