3v4l.org

run code in 300+ PHP versions simultaneously
<?php define('FOO', bin2hex(random_bytes(32))); class Bar { const BAZ = FOO; } class Qux extends Bar { const BAZ = 'lol'; } var_dump(Qux::BAZ);

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)
7.4.30.0070.00816.16
7.4.20.0090.00916.28
7.4.10.0080.01016.20
7.4.00.0080.01116.29
7.3.150.0100.00516.22
7.3.140.0090.00916.21
7.3.130.0080.01016.20
7.3.120.0100.00916.19
7.3.110.0090.01016.19
7.3.100.0080.01016.16
7.3.90.0090.00916.21
7.3.80.0090.00816.15
7.3.70.0090.00916.17
7.3.60.0090.01016.16
7.3.50.0090.00916.14
7.3.40.0070.01116.15
7.3.30.0090.00816.18
7.3.20.0090.00916.20
7.3.10.0100.00916.18
7.3.00.0110.00916.17
7.2.280.0070.01016.43
7.2.270.0100.00916.34
7.2.260.0090.00916.28
7.2.250.0080.01116.28
7.2.240.0080.01116.29
7.2.230.0090.01016.31
7.2.220.0080.01116.30
7.2.210.0090.00916.31
7.2.200.0090.01016.28
7.2.190.0070.01116.25
7.2.180.0080.01016.26
7.2.170.0090.01016.31
7.2.160.0080.01016.28
7.2.150.0100.00916.38
7.2.140.0100.01016.37
7.2.130.0100.01116.34
7.2.120.0090.01016.33
7.2.110.0100.00916.34
7.2.100.0100.01116.33
7.2.90.0110.00916.30
7.2.80.0100.01016.33
7.2.70.0110.01016.33
7.2.60.0100.00916.29
7.2.50.0100.00916.32
7.2.40.0110.01016.35
7.2.30.0100.01016.33
7.2.20.0090.01016.33
7.2.10.0110.00816.30
7.2.00.0110.00916.32
7.1.330.0130.00615.28
7.1.320.0080.01115.31
7.1.310.0090.00715.13
7.1.300.0080.00815.23
7.1.290.0070.01215.13
7.1.280.0120.00915.18
7.1.270.0070.01015.19
7.1.260.0080.00815.28
7.1.250.0080.01415.02
7.1.240.0100.00615.08
7.1.230.0070.01415.30
7.1.220.0110.00915.13
7.1.210.0020.01415.27
7.1.200.0120.00315.28
7.1.190.0070.01215.37
7.1.180.0070.00715.28
7.1.170.0080.00615.23
7.1.160.0070.00815.20
7.1.150.0060.00915.32
7.1.140.0070.00815.26
7.1.130.0070.00715.27
7.1.120.0060.00815.24
7.1.110.0080.00815.20
7.1.100.0090.00715.22
7.1.90.0120.00615.19
7.1.80.0060.01115.20
7.1.70.0060.00915.26
7.1.60.0110.00415.28
7.1.50.0060.00815.26
7.1.40.0060.00915.16
7.1.30.0090.00915.16
7.1.20.0090.00715.38
7.1.10.0070.00815.34
7.1.00.0110.00815.16
7.0.330.0070.01014.89
7.0.320.0030.01114.81
7.0.310.0100.00414.84
7.0.300.0050.01214.91
7.0.290.0090.00514.78
7.0.280.0060.01014.92
7.0.270.0120.00315.08
7.0.260.0070.00814.81
7.0.250.0030.01014.94
7.0.240.0090.00815.01
7.0.230.0080.01014.86
7.0.220.0100.00514.73
7.0.210.0040.01014.83
7.0.200.0050.01014.89
7.0.190.0050.00914.89
7.0.180.0040.01014.85
7.0.170.0100.00514.91
7.0.160.0100.00614.92
7.0.150.0130.00414.95
7.0.140.0120.00514.90
7.0.130.0090.00614.91
7.0.120.0120.00515.04
7.0.110.0070.01014.81
7.0.100.0130.00414.84
7.0.90.0070.01015.02
7.0.80.0100.00414.95
7.0.70.0170.00214.90
7.0.60.0070.00714.83
7.0.50.0000.01715.06
7.0.40.0150.00214.95
7.0.30.0060.00914.86
7.0.20.0170.01214.98
7.0.10.0030.01215.00
7.0.00.0080.01115.02
5.6.400.0070.01115.74
5.6.390.0100.00815.55
5.6.380.0020.01515.61
5.6.370.0110.01115.70
5.6.360.0050.01515.59
5.6.350.0020.01415.50
5.6.340.0060.01015.54
5.6.330.0040.01315.79
5.6.320.0050.01415.57
5.6.310.0100.00715.48
5.6.300.0100.01015.76
5.6.290.0100.00815.56
5.6.280.0080.01215.60
5.6.270.0080.01215.63
5.6.260.0100.01015.43
5.6.250.0100.01015.50
5.6.240.0140.00615.47
5.6.230.0110.00515.59
5.6.220.0090.00815.61
5.6.210.0070.01315.55
5.6.200.0100.00615.45
5.6.190.0070.01215.50
5.6.180.0090.00915.68
5.6.170.0140.00615.46
5.6.160.0100.00715.47
5.6.150.0120.00515.47
5.6.140.0110.00915.60
5.6.130.0080.00815.60
5.6.120.0060.01015.48
5.6.110.0080.01015.48
5.6.100.0110.00715.56
5.6.90.0000.01615.56
5.6.80.0080.00815.50
5.6.70.0090.00815.51
5.6.60.0070.01215.57
5.6.50.0080.01215.47
5.6.40.0120.00815.51
5.6.30.0120.00615.61
5.6.20.0070.01315.50
5.6.10.0080.01015.46
5.6.00.0160.01115.53
5.5.380.0090.01015.46
5.5.370.0130.00515.49
5.5.360.0080.01315.44
5.5.350.0130.00815.39
5.5.340.0110.00915.54
5.5.330.0120.00715.28
5.5.320.0110.01015.61
5.5.310.0070.01015.57
5.5.300.0090.01415.55
5.5.290.0080.01115.47
5.5.280.0130.00715.57
5.5.270.0070.01415.37
5.5.260.0110.01215.39
5.5.250.0080.01115.26
5.5.240.0100.01215.35
5.5.230.0160.00515.43
5.5.220.0120.00915.23
5.5.210.0110.01015.36
5.5.200.0090.01115.21
5.5.190.0140.00615.55
5.5.180.0100.01015.39
5.5.170.0070.01615.31
5.5.160.0090.01515.36
5.5.150.0100.01315.53
5.5.140.0110.00815.35
5.5.130.0070.01215.21
5.5.120.0150.00615.42
5.5.110.0100.01215.51
5.5.100.0080.01115.35
5.5.90.0110.01215.50
5.5.80.0070.01215.26
5.5.70.0110.00815.64
5.5.60.0120.00915.35
5.5.50.0080.01215.46
5.5.40.0110.01015.41
5.5.30.0140.00915.42
5.5.20.0110.01115.51
5.5.10.0110.01315.28
5.5.00.0140.00915.45
5.4.450.0070.01012.43
5.4.440.0060.01012.31
5.4.430.0080.00912.33
5.4.420.0100.00612.29
5.4.410.0130.00312.39
5.4.400.0090.00812.36
5.4.390.0050.01112.32
5.4.380.0090.00712.24
5.4.370.0090.00712.23
5.4.360.0030.01212.23
5.4.350.0100.00612.21
5.4.340.0070.00912.32
5.4.330.0110.00712.26
5.4.320.0110.00612.36
5.4.310.0110.00712.24
5.4.300.0030.01412.38
5.4.290.0070.00712.41
5.4.280.0110.00812.44
5.4.270.0080.00812.39
5.4.260.0140.00312.43
5.4.250.0120.00512.47
5.4.240.0050.01012.38
5.4.230.0080.00812.46
5.4.220.0120.00712.33
5.4.210.0090.00812.34
5.4.200.0100.01012.50
5.4.190.0110.00512.35
5.4.180.0130.00812.32
5.4.170.0130.00712.26
5.4.160.0100.00812.27
5.4.150.0090.01112.33
5.4.140.0100.01112.45
5.4.130.0130.00712.52
5.4.120.0140.00512.37
5.4.110.0020.01612.35
5.4.100.0150.00412.44
5.4.90.0100.00712.33
5.4.80.0090.01212.31
5.4.70.0080.01012.55
5.4.60.0130.00212.36
5.4.50.0090.00712.40
5.4.40.0080.00912.46
5.4.30.0080.00912.52
5.4.20.0100.00712.37
5.4.10.0090.00912.53
5.4.00.0080.00812.40
5.3.290.0120.00812.90
5.3.280.0100.00712.77
5.3.270.0100.00912.96
5.3.260.0060.01412.90
5.3.250.0100.00912.77
5.3.240.0060.01412.66
5.3.230.0130.00912.71
5.3.220.0140.00612.86
5.3.210.0130.00612.75
5.3.200.0100.01012.93
5.3.190.0110.00712.83
5.3.180.0100.01013.04
5.3.170.0090.00813.02
5.3.160.0070.01313.13
5.3.150.0080.00813.02
5.3.140.0040.01113.11
5.3.130.0100.00812.94
5.3.120.0090.00813.01
5.3.110.0070.00913.02
5.3.100.0130.00512.95
5.3.90.0080.01012.89
5.3.80.0090.00912.75
5.3.70.0110.00912.76
5.3.60.0080.01012.89
5.3.50.0060.01112.81
5.3.40.0110.00412.74
5.3.30.0080.00812.82
5.3.20.0080.01012.81
5.3.10.0120.00412.53
5.3.00.0090.00912.71
5.2.170.0090.00811.87
5.2.160.0080.00911.86
5.2.150.0060.01011.87
5.2.140.0130.00411.85
5.2.130.0080.00911.77
5.2.120.0100.00911.79
5.2.110.0130.00511.76
5.2.100.0100.00911.75
5.2.90.0130.00511.73
5.2.80.0120.00611.69
5.2.70.0110.00811.66
5.2.60.0110.00611.58
5.2.50.0120.00611.71
5.2.40.0100.00811.80
5.2.30.0100.01011.72
5.2.20.0090.01111.62
5.2.10.0070.00911.57
5.2.00.0130.00311.51
5.1.60.0100.00511.37
5.1.50.0060.00811.37
5.1.40.0080.00911.37
5.1.30.0110.00611.37
5.1.20.0070.00711.37
5.1.10.0110.00411.37
5.1.00.0070.01011.37
5.0.50.0070.00711.37
5.0.40.0050.00711.37
5.0.30.0040.00911.37
5.0.20.0100.00311.37
5.0.10.0070.00411.37
5.0.00.0050.00811.37
4.4.90.0040.00511.37
4.4.80.0060.00311.37
4.4.70.0070.00211.37
4.4.60.0070.00211.37
4.4.50.0060.00111.37
4.4.40.0060.00111.37
4.4.30.0050.00311.37
4.4.20.0040.00311.37
4.4.10.0050.00211.37
4.4.00.0020.00611.37
4.3.110.0000.00711.37
4.3.100.0030.00511.37
4.3.90.0060.00211.37
4.3.80.0010.00711.37
4.3.70.0070.00011.37
4.3.60.0030.00511.37
4.3.50.0060.00211.37
4.3.40.0050.00211.37
4.3.30.0020.00511.37
4.3.20.0000.00611.37
4.3.10.0010.00511.37
4.3.00.0050.00111.37

preferences:
57.75 ms | 403 KiB | 5 Q