3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { const MY_CONST = bar::class; public function __construct() { [self::MY_CONST, "message"](); } } class bar { public static function message() { echo "hello"; } } new foo();
based on dt2VO

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)
8.0.0rc20.0070.01016.41
8.0.0rc10.0100.00616.52
8.0.0beta30.0080.00916.64
8.0.0beta10.0150.00916.71
8.0.0alpha30.0100.00716.45
8.0.0alpha20.0190.00316.50
8.0.0alpha10.0070.01016.51
7.4.110.0140.00316.43
7.4.100.0070.01016.36
7.4.90.0060.02016.38
7.4.80.0060.01019.39
7.4.70.0110.00916.49
7.4.60.0110.00416.43
7.4.50.0060.00816.69
7.4.40.0090.00616.29
7.4.30.0000.01716.35
7.4.10.0040.01414.83
7.4.00.0080.00614.87
7.3.230.0150.00516.39
7.3.210.0030.01416.25
7.3.200.0030.01316.39
7.3.190.0150.00616.22
7.3.180.0030.01216.53
7.3.170.0100.01016.27
7.3.160.0060.01616.45
7.3.130.0150.00314.57
7.3.120.0100.00914.74
7.3.110.0040.01114.75
7.3.100.0070.00814.45
7.3.90.0090.00414.59
7.3.80.0060.00814.70
7.3.70.0060.01014.62
7.3.60.0050.00914.62
7.3.50.0030.01014.73
7.3.40.0080.00314.67
7.3.30.0040.00714.74
7.3.20.0060.00616.59
7.3.10.0030.01116.41
7.3.00.0050.00816.43
7.2.330.0110.01116.65
7.2.320.0140.00416.28
7.2.310.0030.01316.64
7.2.300.0170.00716.62
7.2.290.0100.01216.34
7.2.260.0080.01215.03
7.2.250.0090.00914.94
7.2.240.0060.01014.97
7.2.230.0040.00915.00
7.2.220.0090.00714.85
7.2.210.0020.01414.87
7.2.200.0060.00714.87
7.2.190.0040.01214.91
7.2.180.0080.00614.82
7.2.170.0040.01014.79
7.2.160.0080.00514.76
7.2.150.0050.00516.75
7.2.140.0030.00916.61
7.2.130.0060.00716.83
7.2.120.0060.00816.76
7.2.110.0040.00716.82
7.2.100.0060.00616.74
7.2.90.0000.01116.67
7.2.80.0080.00616.66
7.2.70.0040.01116.86
7.2.60.0050.01116.72
7.2.50.0080.01116.86
7.2.40.0040.00916.78
7.2.30.0050.00816.77
7.2.20.0050.00616.80
7.2.10.0080.00516.84
7.2.00.0020.01117.37
7.1.330.0090.00415.51
7.1.320.0050.01015.57
7.1.310.0040.00815.57
7.1.300.0070.00715.54
7.1.290.0110.00415.55
7.1.280.0090.00315.64
7.1.270.0010.01015.46
7.1.260.0080.00515.58
7.1.250.0050.00815.56
7.1.240.0020.00915.53
7.1.230.0020.01015.49
7.1.220.0060.00915.29
7.1.210.0100.00615.37
7.1.200.0040.00715.63
7.1.190.0040.00715.49
7.1.180.0080.00415.63
7.1.170.0050.00515.50
7.1.160.0030.00715.45
7.1.150.0060.00715.46
7.1.140.0030.01015.46
7.1.130.0050.00515.58
7.1.120.0050.00415.53
7.1.110.0030.00815.59
7.1.100.0060.00816.25
7.1.90.0020.00815.51
7.1.80.0020.00715.60
7.1.70.0040.00616.02
7.1.60.0020.01215.92
7.1.50.0050.01115.95
7.1.40.0080.00315.40
7.1.30.0020.01015.61
7.1.20.0070.00415.42
7.1.10.0030.01115.59
7.1.00.0050.02817.98
7.0.330.0030.01015.09
7.0.320.0040.00715.31
7.0.310.0060.00615.20
7.0.300.0050.00714.99
7.0.290.0090.00415.02
7.0.280.0080.00515.28
7.0.270.0030.00715.20
7.0.260.0050.00515.23
7.0.250.0030.00715.21
7.0.240.0070.00715.05
7.0.230.0020.01115.22
7.0.220.0050.00715.29
7.0.210.0050.00715.34
7.0.200.0080.00514.88
7.0.190.0060.00615.29
7.0.180.0060.00715.25
7.0.170.0030.00915.38
7.0.160.0080.00515.36
7.0.150.0030.00715.23
7.0.140.0050.00515.23
7.0.130.0060.02317.57
7.0.120.0110.01717.53
7.0.110.0070.02817.63
7.0.100.0050.02717.45
7.0.90.0050.02417.52
7.0.80.0090.02017.49
7.0.70.0030.02417.60
7.0.60.0040.02317.36
7.0.50.0050.02317.51
7.0.40.0060.02216.23
7.0.30.0070.02016.27
7.0.20.0070.02316.20
7.0.10.0050.02116.28
7.0.00.0030.02716.27
5.6.400.0070.00713.58
5.6.390.0030.01014.14
5.6.380.0060.00814.09
5.6.370.0040.00613.98
5.6.360.0050.00613.96
5.6.350.0040.00914.29
5.6.340.0050.00814.23
5.6.330.0030.01014.10
5.6.320.0020.00914.26
5.6.310.0050.00814.25
5.6.300.0030.01014.14
5.6.290.0020.01014.31
5.6.280.0090.02016.39
5.6.270.0100.02416.40
5.6.260.0050.02416.42
5.6.250.0070.02316.16
5.6.240.0060.02516.32
5.6.230.0070.02316.34
5.6.220.0040.02416.44
5.6.210.0080.02316.31
5.6.200.0040.02616.28
5.6.190.0060.02316.34
5.6.180.0090.02116.46
5.6.170.0040.02516.37
5.6.160.0130.01716.38
5.6.150.0070.02516.44
5.6.140.0080.02416.46
5.6.130.0050.02616.44
5.6.120.0020.02816.16
5.6.110.0050.02716.28
5.6.100.0060.02316.52
5.6.90.0030.02416.37
5.6.80.0020.02616.11
5.6.70.0060.02216.08
5.6.60.0070.02116.11
5.6.50.0040.02616.08
5.6.40.0080.02016.21
5.6.30.0090.02116.06
5.6.20.0060.02415.95
5.6.10.0090.02616.29
5.6.00.0080.01916.06