3v4l.org

run code in 200+ 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);
based on KJkmQ

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.20.0090.00916.28
7.4.10.0080.01116.20
7.4.00.0080.01116.29
7.3.140.0100.00916.20
7.3.130.0080.01016.17
7.3.120.0100.00916.18
7.3.110.0090.01016.19
7.3.100.0080.01016.16
7.3.90.0090.00916.20
7.3.80.0090.00816.15
7.3.70.0090.00916.16
7.3.60.0090.00916.15
7.3.50.0100.00916.13
7.3.40.0060.01116.15
7.3.30.0090.00816.18
7.3.20.0090.00916.20
7.3.10.0110.00916.18
7.3.00.0110.00916.17
7.2.270.0100.00816.35
7.2.260.0090.00916.29
7.2.250.0080.01016.27
7.2.240.0080.01116.28
7.2.230.0090.01016.31
7.2.220.0080.01116.31
7.2.210.0100.00816.32
7.2.200.0080.01016.28
7.2.190.0070.01116.24
7.2.180.0080.01016.26
7.2.170.0080.01016.31
7.2.160.0080.01116.28
7.2.150.0100.00916.37
7.2.140.0100.01016.39
7.2.130.0100.01116.35
7.2.120.0080.01016.34
7.2.110.0100.00916.34
7.2.100.0110.01116.34
7.2.90.0110.00816.31
7.2.80.0100.01016.32
7.2.70.0120.01016.34
7.2.60.0100.00916.29
7.2.50.0100.01016.32
7.2.40.0120.01016.36
7.2.30.0090.01016.32
7.2.20.0090.01016.33
7.2.10.0120.00816.30
7.2.00.0120.00916.32
7.1.330.0150.00615.22
7.1.320.0060.01515.38
7.1.310.0040.01215.09
7.1.300.0080.00815.23
7.1.290.0060.01315.13
7.1.280.0100.01015.22
7.1.270.0030.01215.19
7.1.260.0110.00715.35
7.1.250.0030.01814.83
7.1.240.0060.00915.15
7.1.230.0100.01015.30
7.1.220.0030.01215.08
7.1.210.0030.01415.23
7.1.200.0110.00415.22
7.1.190.0070.01615.29
7.1.180.0040.01115.31
7.1.170.0060.00915.43
7.1.160.0110.00415.05
7.1.150.0090.00615.46
7.1.140.0080.00815.25
7.1.130.0070.00715.28
7.1.120.0030.01015.28
7.1.110.0090.00615.24
7.1.100.0080.00815.14
7.1.90.0090.00615.16
7.1.80.0090.01115.22
7.1.70.0030.01215.34
7.1.60.0110.00615.27
7.1.50.0040.01115.32
7.1.40.0050.01015.21
7.1.30.0100.00715.30
7.1.20.0070.01015.40
7.1.10.0090.00615.46
7.1.00.0130.01015.20
7.0.330.0060.01214.88
7.0.320.0060.00914.84
7.0.310.0120.00314.84
7.0.300.0100.01014.78
7.0.290.0070.00714.74
7.0.280.0100.01014.82
7.0.270.0120.00315.09
7.0.260.0070.00714.76
7.0.250.0000.01414.86
7.0.240.0140.00714.97
7.0.230.0120.01214.78
7.0.220.0110.00614.75
7.0.210.0040.01114.77
7.0.200.0060.00914.98
7.0.190.0040.01114.94
7.0.180.0050.00914.90
7.0.170.0070.00714.88
7.0.160.0090.00914.96
7.0.150.0160.00414.88
7.0.140.0130.00615.02
7.0.130.0040.01114.88
7.0.120.0140.00715.00
7.0.110.0030.01714.88
7.0.100.0180.00314.80
7.0.90.0090.01214.96
7.0.80.0100.00514.85
7.0.70.0170.00014.75
7.0.60.0030.01014.75
7.0.50.0000.02015.04
7.0.40.0130.00314.97
7.0.30.0070.01014.91
7.0.20.0300.01214.96
7.0.10.0070.01015.09
7.0.00.0070.01415.05
5.6.400.0090.00915.93
5.6.390.0060.01215.55
5.6.380.0030.01415.68
5.6.370.0130.01015.66
5.6.360.0100.01315.71
5.6.350.0030.01415.50
5.6.340.0000.01715.61
5.6.330.0030.01415.61
5.6.320.0060.01215.70
5.6.310.0160.00315.58
5.6.300.0110.01115.79
5.6.290.0100.01015.60
5.6.280.0090.01615.61
5.6.270.0070.01715.73
5.6.260.0140.01115.46
5.6.250.0110.01415.52
5.6.240.0180.00615.48
5.6.230.0130.00315.59
5.6.220.0070.01015.70
5.6.210.0100.01315.55
5.6.200.0120.00615.40
5.6.190.0110.00815.39
5.6.180.0100.00715.69
5.6.170.0140.00915.48
5.6.160.0070.01015.61
5.6.150.0110.00715.48
5.6.140.0100.01315.53
5.6.130.0070.01015.59
5.6.120.0030.01415.52
5.6.110.0070.01515.50
5.6.100.0110.00815.48
5.6.90.0000.01615.55
5.6.80.0090.00615.37
5.6.70.0060.01315.41
5.6.60.0120.01215.59
5.6.50.0060.01915.50
5.6.40.0170.00615.42
5.6.30.0090.00915.47
5.6.20.0040.01915.68
5.6.10.0130.01015.50
5.6.00.0190.01315.50
5.5.380.0130.00515.63
5.5.370.0130.00715.64
5.5.360.0130.00415.50
5.5.350.0170.00715.64
5.5.340.0070.01415.72
5.5.330.0110.00715.42
5.5.320.0150.00315.83
5.5.310.0090.00915.74
5.5.300.0090.01615.74
5.5.290.0050.01315.48
5.5.280.0090.00915.69
5.5.270.0060.01815.37
5.5.260.0100.01415.49
5.5.250.0040.01815.39
5.5.240.0090.01215.48
5.5.230.0190.00515.42
5.5.220.0160.00815.31
5.5.210.0180.00715.61
5.5.200.0140.00915.30
5.5.190.0170.00615.74
5.5.180.0100.01015.63
5.5.170.0070.02015.44
5.5.160.0170.00715.39
5.5.150.0090.01415.57
5.5.140.0070.01115.36
5.5.130.0070.01115.16
5.5.120.0170.00715.60
5.5.110.0070.01515.57
5.5.100.0100.01015.29
5.5.90.0080.02015.40
5.5.80.0060.01215.29
5.5.70.0060.01215.52
5.5.60.0140.00715.40
5.5.50.0090.01215.41
5.5.40.0100.01015.39
5.5.30.0140.00815.38
5.5.20.0110.01415.51
5.5.10.0080.01715.17
5.5.00.0110.00615.44
5.4.450.0040.01412.52
5.4.440.0080.00912.27
5.4.430.0060.01212.32
5.4.420.0110.00612.25
5.4.410.0150.00412.38
5.4.400.0110.00412.41
5.4.390.0030.01312.44
5.4.380.0120.00612.29
5.4.370.0110.00712.23
5.4.360.0030.01312.15
5.4.350.0090.01012.23
5.4.340.0030.01312.37
5.4.330.0130.00812.18
5.4.320.0150.00312.27
5.4.310.0070.01112.38
5.4.300.0000.01712.40
5.4.290.0060.00612.32
5.4.280.0150.00612.30
5.4.270.0120.00312.15
5.4.260.0150.00312.31
5.4.250.0110.00712.36
5.4.240.0040.00912.31
5.4.230.0130.00212.27
5.4.220.0130.00412.25
5.4.210.0110.00412.31
5.4.200.0080.01112.46
5.4.190.0100.00612.30
5.4.180.0130.00612.34
5.4.170.0070.00712.13
5.4.160.0140.00512.13
5.4.150.0030.01012.32
5.4.140.0070.01112.38
5.4.130.0090.00912.36
5.4.120.0100.00412.29
5.4.110.0000.01312.26
5.4.100.0140.00012.39
5.4.90.0090.00612.22
5.4.80.0080.00812.16
5.4.70.0070.01012.57
5.4.60.0080.00512.21
5.4.50.0100.00312.39
5.4.40.0060.00812.36
5.4.30.0100.00312.44
5.4.20.0070.00712.36
5.4.10.0060.00912.55
5.4.00.0030.01012.36
5.3.290.0120.00712.93
5.3.280.0060.00612.79
5.3.270.0070.00712.96
5.3.260.0060.01112.91
5.3.250.0080.00512.71
5.3.240.0040.01212.70
5.3.230.0090.00912.73
5.3.220.0140.00312.84
5.3.210.0110.00412.82
5.3.200.0020.01712.83
5.3.190.0120.00612.91
5.3.180.0090.00912.96
5.3.170.0030.00913.07
5.3.160.0030.01113.05
5.3.150.0030.00912.95
5.3.140.0000.01313.19
5.3.130.0060.00612.95
5.3.120.0110.00313.06
5.3.110.0040.00813.18
5.3.100.0140.00012.94
5.3.90.0050.00912.89
5.3.80.0090.00912.76
5.3.70.0100.01012.83
5.3.60.0060.01212.91
5.3.50.0060.01212.80
5.3.40.0100.00312.75
5.3.30.0090.00612.92
5.3.20.0030.01212.79
5.3.10.0110.00412.54
5.3.00.0060.01212.61
5.2.170.0110.00911.87
5.2.160.0080.00811.84
5.2.150.0040.01311.84
5.2.140.0150.00411.85
5.2.130.0110.00811.77
5.2.120.0130.01111.79
5.2.110.0110.01111.73
5.2.100.0070.01111.71
5.2.90.0140.00711.80
5.2.80.0120.00911.66
5.2.70.0120.01011.67
5.2.60.0130.00711.60
5.2.50.0130.00511.70
5.2.40.0150.00611.77
5.2.30.0140.00711.77
5.2.20.0070.01311.57
5.2.10.0060.01011.57
5.2.00.0130.00611.65
5.1.60.0110.00711.37
5.1.50.0050.01011.37
5.1.40.0060.01411.37
5.1.30.0150.00611.37
5.1.20.0070.00711.37
5.1.10.0100.00311.37
5.1.00.0080.01111.37
5.0.50.0090.00711.37
5.0.40.0110.00411.37
5.0.30.0040.01211.37
5.0.20.0120.00411.37
5.0.10.0090.00311.37
5.0.00.0100.00511.37
4.4.90.0020.00711.37
4.4.80.0080.00311.37
4.4.70.0050.00511.37
4.4.60.0040.00411.37
4.4.50.0060.00311.37
4.4.40.0060.00311.37
4.4.30.0070.00311.37
4.4.20.0050.00211.37
4.4.10.0070.00011.37
4.4.00.0040.00411.37
4.3.110.0000.00811.37
4.3.100.0030.00611.37
4.3.90.0070.00011.37
4.3.80.0000.00911.37
4.3.70.0070.00011.37
4.3.60.0000.00711.37
4.3.50.0070.00211.37
4.3.40.0080.00011.37
4.3.30.0040.00411.37
4.3.20.0000.00811.37
4.3.10.0000.00711.37
4.3.00.0070.00011.37