3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Database { const CONN_MASTER = 'master'; const CONN_SLAVE = 'slave'; private static $allowed = array(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.0000.06319.27
5.4.340.0080.05412.02
5.4.320.0060.05312.52
5.4.310.0100.04912.51
5.4.300.0040.04412.52
5.4.290.0080.04212.51
5.4.280.0060.04712.40
5.4.270.0080.04612.41
5.4.260.0060.04112.41
5.4.250.0060.04012.41
5.4.240.0100.03412.40
5.4.230.0040.04212.40
5.4.220.0060.04012.40
5.4.210.0070.04012.40
5.4.200.0080.03712.40
5.4.190.0040.04212.39
5.4.180.0060.03912.39
5.4.170.0060.03812.40
5.4.160.0090.04112.40
5.4.150.0070.04012.39
5.4.140.0040.04212.08
5.4.130.0060.04212.06
5.4.120.0060.04012.03
5.4.110.0080.04112.02
5.4.100.0070.04012.03
5.4.90.0080.03812.02
5.4.80.0040.04212.02
5.4.70.0060.03812.02
5.4.60.0060.03712.02
5.4.50.0030.04312.02
5.4.40.0070.03612.01
5.4.30.0060.03712.00
5.4.20.0060.04012.00
5.4.10.0050.03912.00
5.4.00.0070.03811.49
5.3.290.0060.04112.80
5.3.280.0060.04012.71
5.3.270.0120.05312.72
5.3.260.0080.04312.72
5.3.250.0140.06712.72
5.3.240.0090.05012.72
5.3.230.0100.04112.71
5.3.220.0070.03912.68
5.3.210.0020.04512.68
5.3.200.0050.03912.68
5.3.190.0120.03512.68
5.3.180.0070.03912.67
5.3.170.0100.04112.67
5.3.160.0110.06412.67
5.3.150.0100.05312.67
5.3.140.0090.03912.66
5.3.130.0050.05112.66
5.3.120.0070.04412.66
5.3.110.0100.05612.66
5.3.100.0090.05412.12
5.3.90.0080.04612.10
5.3.80.0120.05612.09
5.3.70.0050.04212.09
5.3.60.0080.04212.07
5.3.50.0070.04912.02
5.3.40.0070.04812.02
5.3.30.0080.04611.98
5.3.20.0070.04811.76
5.3.10.0110.04511.73
5.3.00.0090.04611.71
5.2.170.0040.0429.22
5.2.160.0050.0419.22
5.2.150.0090.0379.21
5.2.140.0060.0409.21
5.2.130.0080.0379.17
5.2.120.0040.0409.18
5.2.110.0100.0329.18
5.2.100.0070.0349.18
5.2.90.0090.0269.17
5.2.80.0050.0319.17
5.2.70.0060.0299.17
5.2.60.0030.0349.13
5.2.50.0100.0319.09
5.2.40.0040.0339.07
5.2.30.0040.0359.04
5.2.20.0050.0309.04
5.2.10.0050.0298.94
5.2.00.0040.0368.80
5.1.60.0050.0268.09
5.1.50.0040.0268.08
5.1.40.0070.0258.06
5.1.30.0050.0298.41
5.1.20.0090.0248.44
5.1.10.0040.0308.16
5.1.00.0050.0348.16
5.0.50.0050.0266.64
5.0.40.0070.0326.50
5.0.30.0090.0346.31
5.0.20.0020.0236.28
5.0.10.0020.0246.26
5.0.00.0060.0286.25
4.4.90.0040.0164.78
4.4.80.0040.0214.76
4.4.70.0040.0214.75
4.4.60.0020.0224.75
4.4.50.0070.0144.77
4.4.40.0070.0304.71
4.4.30.0040.0164.76
4.4.20.0080.0154.84
4.4.10.0030.0174.85
4.4.00.0060.0234.75
4.3.110.0050.0154.66
4.3.100.0040.0184.67
4.3.90.0040.0144.64
4.3.80.0030.0244.59
4.3.70.0040.0144.63
4.3.60.0060.0164.62
4.3.50.0070.0174.63
4.3.40.0070.0244.53
4.3.30.0030.0213.30
4.3.20.0050.0203.28
4.3.10.0020.0173.24
4.3.00.0170.0237.15

preferences:
140.28 ms | 1394 KiB | 7 Q