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();

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.3.60.0070.01416.63
8.3.50.0040.01116.25
8.3.40.0120.00318.72
8.3.30.0070.00718.56
8.3.20.0030.00518.64
8.3.10.0050.00323.61
8.3.00.0080.00019.26
8.2.180.0100.01016.38
8.2.170.0140.00022.96
8.2.160.0030.01020.58
8.2.150.0000.00824.18
8.2.140.0000.00724.66
8.2.130.0000.00819.83
8.2.120.0030.00526.35
8.2.110.0060.00322.19
8.2.100.0060.00617.72
8.2.90.0000.00919.05
8.2.80.0040.00417.97
8.2.70.0050.00317.63
8.2.60.0080.00017.80
8.2.50.0000.00818.12
8.2.40.0040.00420.42
8.2.30.0070.00019.13
8.2.20.0040.00417.93
8.2.10.0040.00417.84
8.2.00.0040.00417.60
8.1.280.0060.00925.92
8.1.270.0050.00322.19
8.1.260.0040.00428.09
8.1.250.0050.00228.09
8.1.240.0090.00017.23
8.1.230.0070.00318.92
8.1.220.0030.00617.74
8.1.210.0030.00618.77
8.1.200.0060.00317.11
8.1.190.0080.00017.10
8.1.180.0040.00420.08
8.1.170.0040.00418.43
8.1.160.0000.00918.71
8.1.150.0000.00722.01
8.1.140.0000.00719.44
8.1.130.0000.00717.56
8.1.120.0040.00417.34
8.1.110.0040.00417.36
8.1.100.0040.00417.23
8.1.90.0040.00417.36
8.1.80.0040.00417.21
8.1.70.0000.00717.32
8.1.60.0040.00417.52
8.1.50.0000.00917.41
8.1.40.0040.00417.48
8.1.30.0040.00417.41
8.1.20.0040.00417.57
8.1.10.0030.00617.57
8.1.00.0040.00417.43
8.0.300.0040.00418.77
8.0.290.0000.00816.75
8.0.280.0000.00718.34
8.0.270.0070.00016.80
8.0.260.0030.00317.25
8.0.250.0030.00316.88
8.0.240.0030.00316.82
8.0.230.0040.00416.81
8.0.220.0000.00816.85
8.0.210.0000.00616.80
8.0.200.0030.00316.81
8.0.190.0080.00016.87
8.0.180.0030.00616.73
8.0.170.0070.00016.63
8.0.160.0030.00316.75
8.0.150.0030.00316.72
8.0.140.0080.00016.68
8.0.130.0030.00313.18
8.0.120.0040.00416.75
8.0.110.0000.00716.79
8.0.100.0070.00016.59
8.0.90.0030.00416.55
8.0.80.0090.00616.73
8.0.70.0030.00516.72
8.0.60.0000.00716.82
8.0.50.0050.00216.80
8.0.30.0110.00817.17
8.0.20.0120.00817.40
8.0.10.0100.00016.97
8.0.00.0090.01316.90
7.4.330.0030.00315.55
7.4.320.0030.00316.34
7.4.300.0040.00416.42
7.4.290.0030.00316.42
7.4.280.0040.00416.57
7.4.270.0040.00416.57
7.4.260.0080.00016.43
7.4.250.0030.00316.38
7.4.240.0030.00316.40
7.4.230.0030.00316.36
7.4.220.0030.02016.45
7.4.210.0090.00816.42
7.4.200.0070.00016.40
7.4.160.0100.00516.37
7.4.150.0130.00617.40
7.4.140.0110.00917.86
7.4.130.0100.00616.30
7.4.120.0080.01116.36
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.330.0070.00013.02
7.3.320.0060.00013.09
7.3.310.0000.00816.05
7.3.300.0060.00016.18
7.3.290.0000.00616.25
7.3.280.0090.00916.20
7.3.270.0030.01317.40
7.3.260.0090.00916.36
7.3.250.0050.01216.35
7.3.240.0090.00916.34
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

preferences:
59.98 ms | 401 KiB | 5 Q