3v4l.org

run code in 200+ PHP versions simultaneously
<?php define('FOO', bin2hex(random_bytes(32))); class Bar { const BAZ = FOO; } var_dump(Bar::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.20.0090.00916.27
7.4.10.0090.01016.23
7.4.00.0090.01016.33
7.3.140.0090.01016.23
7.3.130.0090.00916.20
7.3.120.0100.00916.19
7.3.110.0090.00916.21
7.3.100.0090.00916.20
7.3.90.0090.00916.23
7.3.80.0090.00916.21
7.3.70.0090.00916.18
7.3.60.0100.00816.19
7.3.50.0090.01016.19
7.3.40.0080.01016.19
7.3.30.0090.00916.18
7.3.20.0100.01016.20
7.3.10.0110.00916.19
7.3.00.0110.00916.21
7.2.270.0090.01016.33
7.2.260.0090.01016.35
7.2.250.0090.01016.35
7.2.240.0090.01016.35
7.2.230.0100.01016.34
7.2.220.0090.01016.35
7.2.210.0090.01016.35
7.2.200.0090.01016.34
7.2.190.0100.00916.32
7.2.180.0090.00916.32
7.2.170.0090.01016.33
7.2.160.0090.01016.32
7.2.150.0110.01016.39
7.2.140.0110.00916.38
7.2.130.0100.00916.37
7.2.120.0100.01016.37
7.2.110.0100.01016.36
7.2.100.0110.00916.38
7.2.90.0110.01016.36
7.2.80.0100.01016.36
7.2.70.0100.01016.37
7.2.60.0100.01016.36
7.2.50.0100.01016.35
7.2.40.0100.01016.40
7.2.30.0100.01016.42
7.2.20.0110.00916.37
7.2.10.0110.01016.35
7.2.00.0100.01016.37
7.1.330.0150.00915.25
7.1.320.0150.01015.22
7.1.310.0120.01015.29
7.1.300.0160.00815.26
7.1.290.0100.01215.38
7.1.280.0130.00915.15
7.1.270.0140.00915.31
7.1.260.0160.00715.21
7.1.250.0190.01115.21
7.1.240.0170.01015.19
7.1.230.0140.01015.29
7.1.220.0120.01115.25
7.1.210.0150.01215.21
7.1.200.0110.00915.18
7.1.190.0090.01115.30
7.1.180.0140.00515.26
7.1.170.0100.01215.29
7.1.160.0160.01115.27
7.1.150.0080.01215.32
7.1.140.0130.00915.42
7.1.130.0100.00915.29
7.1.120.0120.00815.35
7.1.110.0130.00715.42
7.1.100.0100.01015.30
7.1.90.0160.01015.39
7.1.80.0120.00915.19
7.1.70.0080.01215.38
7.1.60.0130.00915.36
7.1.50.0140.00715.34
7.1.40.0180.00615.42
7.1.30.0160.00715.34
7.1.20.0100.01015.36
7.1.10.0130.00515.26
7.1.00.0140.00815.33
7.0.330.0120.01114.82
7.0.320.0220.01014.96
7.0.310.0120.00814.89
7.0.300.0120.00614.90
7.0.290.0140.00814.92
7.0.280.0110.00815.14
7.0.270.0160.00914.98
7.0.260.0120.00715.04
7.0.250.0100.01015.14
7.0.240.0070.01115.14
7.0.230.0140.00815.09
7.0.220.0130.00515.02
7.0.210.0090.01114.98
7.0.200.0100.01014.86
7.0.190.0060.01314.99
7.0.180.0130.01014.99
7.0.170.0120.00815.07
7.0.160.0120.00814.96
7.0.150.0110.00714.95
7.0.140.0100.00914.91
7.0.130.0090.01014.99
7.0.120.0140.00915.03
7.0.110.0130.00714.93
7.0.100.0110.00814.89
7.0.90.0130.00814.98
7.0.80.0110.01114.89
7.0.70.0100.01214.90
7.0.60.0120.01015.00
7.0.50.0130.00914.94
7.0.40.0080.00914.96
7.0.30.0130.00714.99
7.0.20.0110.01014.89
7.0.10.0140.00414.97
7.0.00.0200.00714.92
5.6.400.0090.01415.42
5.6.390.0150.01015.51
5.6.380.0200.00915.56
5.6.370.0120.01115.63
5.6.360.0080.01315.70
5.6.350.0130.00615.74
5.6.340.0120.01015.87
5.6.330.0140.00715.72
5.6.320.0120.01015.61
5.6.310.0120.01115.55
5.6.300.0100.01415.53
5.6.290.0120.00715.50
5.6.280.0130.01215.55
5.6.270.0100.01315.61
5.6.260.0080.01115.54
5.6.250.0110.01115.52
5.6.240.0080.01215.54
5.6.230.0150.00615.67
5.6.220.0110.01315.47
5.6.210.0120.00915.58
5.6.200.0150.00915.60
5.6.190.0120.01015.58
5.6.180.0110.00915.65
5.6.170.0110.01415.48
5.6.160.0120.01115.58
5.6.150.0170.00915.54
5.6.140.0100.01115.54
5.6.130.0120.01215.58
5.6.120.0170.00715.49
5.6.110.0150.00815.48
5.6.100.0070.01515.42
5.6.90.0110.01115.63
5.6.80.0130.00715.69
5.6.70.0080.01315.50
5.6.60.0070.01215.44
5.6.50.0080.01615.41
5.6.40.0100.01215.45
5.6.30.0130.00815.58
5.6.20.0070.01315.45
5.6.10.0120.00715.43
5.6.00.0090.00915.41
5.5.380.0090.01315.55
5.5.370.0110.01315.38
5.5.360.0130.01215.51
5.5.350.0130.00915.65
5.5.340.0120.01215.44
5.5.330.0100.01115.50
5.5.320.0100.01215.51
5.5.310.0120.01315.35
5.5.300.0110.00915.46
5.5.290.0110.01115.43
5.5.280.0080.01215.42
5.5.270.0060.01415.50
5.5.260.0050.01515.38
5.5.250.0110.00815.48
5.5.240.0080.01015.32
5.5.230.0050.01515.45
5.5.220.0060.01315.44
5.5.210.0120.01115.59
5.5.200.0130.00815.50
5.5.190.0130.00815.41
5.5.180.0150.00515.66
5.5.170.0080.01115.53
5.5.160.0100.01015.56
5.5.150.0070.01215.37
5.5.140.0110.01015.42
5.5.130.0100.01615.44
5.5.120.0160.00915.41
5.5.110.0120.01415.34
5.5.100.0110.01315.35
5.5.90.0110.01315.38
5.5.80.0140.01115.36
5.5.70.0110.01115.26
5.5.60.0140.00715.35
5.5.50.0060.01615.32
5.5.40.0120.01215.39
5.5.30.0160.00815.42
5.5.20.0090.01415.44
5.5.10.0100.01115.41
5.5.00.0110.01315.33
5.4.450.0090.00812.42
5.4.440.0090.00812.47
5.4.430.0070.00912.45
5.4.420.0070.00912.40
5.4.410.0090.00612.48
5.4.400.0080.00712.40
5.4.390.0070.00712.41
5.4.380.0060.00812.47
5.4.370.0070.00812.37
5.4.360.0080.00712.36
5.4.350.0080.00712.28
5.4.340.0100.00512.33
5.4.330.0070.00812.40
5.4.320.0060.00912.36
5.4.310.0080.00712.34
5.4.300.0050.01012.37
5.4.290.0080.00912.33
5.4.280.0090.00912.48
5.4.270.0100.00812.31
5.4.260.0070.00912.37
5.4.250.0100.00912.38
5.4.240.0110.00712.42
5.4.230.0080.00812.22
5.4.220.0110.00612.36
5.4.210.0100.00812.31
5.4.200.0130.00512.39
5.4.190.0120.00412.39
5.4.180.0090.00712.32
5.4.170.0100.00712.35
5.4.160.0080.00912.37
5.4.150.0110.00812.31
5.4.140.0100.01012.47
5.4.130.0080.00912.37
5.4.120.0090.00712.38
5.4.110.0090.00912.43
5.4.100.0080.00912.35
5.4.90.0070.01012.47
5.4.80.0110.00612.45
5.4.70.0050.01312.33
5.4.60.0080.01012.46
5.4.50.0080.00912.39
5.4.40.0090.01212.42
5.4.30.0110.00512.46
5.4.20.0080.01012.43
5.4.10.0080.00712.43
5.4.00.0110.00612.41
5.3.290.0110.00712.95
5.3.280.0060.01112.81
5.3.270.0110.00712.90
5.3.260.0080.01312.80
5.3.250.0100.00912.83
5.3.240.0090.00912.62
5.3.230.0080.01012.84
5.3.220.0140.00712.88
5.3.210.0110.00712.83
5.3.200.0160.00412.82
5.3.190.0140.00712.85
5.3.180.0050.01513.05
5.3.170.0120.00813.02
5.3.160.0080.01212.99
5.3.150.0150.00812.99
5.3.140.0080.01212.93
5.3.130.0080.01012.94
5.3.120.0090.01012.93
5.3.110.0120.00712.93
5.3.100.0130.00912.93
5.3.90.0120.00813.09
5.3.80.0080.01112.91
5.3.70.0130.00912.80
5.3.60.0090.01012.89
5.3.50.0120.00912.83
5.3.40.0110.00812.81
5.3.30.0160.00712.80
5.3.20.0080.00912.78
5.3.10.0110.00712.54
5.3.00.0070.01312.55
5.2.170.0080.00811.86
5.2.160.0100.00611.88
5.2.150.0080.00811.87
5.2.140.0060.01011.81
5.2.130.0120.00611.77
5.2.120.0060.01011.76
5.2.110.0080.00811.76
5.2.100.0080.00911.71
5.2.90.0090.00911.82
5.2.80.0060.01111.79
5.2.70.0050.01111.72
5.2.60.0070.01111.65
5.2.50.0090.00811.73
5.2.40.0080.00611.83
5.2.30.0050.01111.72
5.2.20.0070.00911.56
5.2.10.0070.00811.56
5.2.00.0090.00611.40
5.1.60.0080.00711.37
5.1.50.0080.00711.37
5.1.40.0080.00611.37
5.1.30.0050.00911.37
5.1.20.0060.01011.37
5.1.10.0100.00511.37
5.1.00.0080.00511.37
5.0.50.0090.00411.37
5.0.40.0040.00711.37
5.0.30.0060.00511.37
5.0.20.0060.00511.37
5.0.10.0040.00811.37
5.0.00.0060.00711.37
4.4.90.0040.00411.37
4.4.80.0050.00411.37
4.4.70.0030.00411.37
4.4.60.0040.00411.37
4.4.50.0060.00311.37
4.4.40.0030.00511.37
4.4.30.0030.00411.37
4.4.20.0040.00311.37
4.4.10.0010.00511.37
4.4.00.0050.00211.37
4.3.110.0040.00411.37
4.3.100.0040.00211.37
4.3.90.0050.00311.37
4.3.80.0040.00311.37
4.3.70.0010.00611.37
4.3.60.0030.00311.37
4.3.50.0060.00211.37
4.3.40.0060.00211.37
4.3.30.0050.00211.37
4.3.20.0030.00411.37
4.3.10.0030.00511.37
4.3.00.0030.00511.37