3v4l.org

run code in 300+ PHP versions simultaneously
<?php class CanNotSetProperties extends BadMethodCallException { } trait Immutable { public function __set($property, $value) { throw new CanNotSetProperties; } } final class Test { use Immutable; public function __construct() { echo 'hello'; } } $test = new Test; $test->__construct();

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.0130.00616.50
8.3.50.0150.00822.04
8.3.40.0140.00318.72
8.3.30.0100.01018.92
8.3.20.0100.00720.16
8.3.10.0060.00321.76
8.3.00.0060.00319.17
8.2.180.0090.00618.41
8.2.170.0170.00322.96
8.2.160.0170.00020.39
8.2.150.0070.01124.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00419.77
8.2.110.0060.00320.29
8.2.100.0070.00418.22
8.2.90.0060.00318.86
8.2.80.0080.00017.97
8.2.70.0090.00017.50
8.2.60.0000.00817.93
8.2.50.0030.00618.07
8.2.40.0040.00419.82
8.2.30.0080.00017.97
8.2.20.0040.00417.75
8.2.10.0050.00318.17
8.2.00.0000.00917.59
8.1.280.0100.01025.92
8.1.270.0000.01618.87
8.1.260.0050.00326.35
8.1.250.0070.01028.09
8.1.240.0030.00624.02
8.1.230.0070.00419.15
8.1.220.0000.00817.74
8.1.210.0060.00318.77
8.1.200.0090.00017.35
8.1.190.0040.00417.13
8.1.180.0000.00718.10
8.1.170.0000.00818.59
8.1.160.0070.00021.91
8.1.150.0030.00518.89
8.1.140.0040.00419.25
8.1.130.0000.00717.82
8.1.120.0080.00017.51
8.1.110.0000.00717.49
8.1.100.0050.00217.45
8.1.90.0000.00917.47
8.1.80.0000.00717.49
8.1.70.0070.00017.33
8.1.60.0080.00017.48
8.1.50.0040.00417.53
8.1.40.0060.00317.37
8.1.30.0080.00017.68
8.1.20.0000.00817.53
8.1.10.0040.00417.56
8.1.00.0090.00317.52
8.0.300.0000.00718.77
8.0.290.0070.00016.75
8.0.280.0030.00318.43
8.0.270.0000.00717.25
8.0.260.0000.00717.27
8.0.250.0030.00316.98
8.0.240.0040.00416.89
8.0.230.0040.00416.99
8.0.220.0040.00416.83
8.0.210.0080.00016.80
8.0.200.0000.00916.95
8.0.190.0030.00516.85
8.0.180.0000.00816.90
8.0.170.0040.00416.86
8.0.160.0040.00416.80
8.0.150.0030.00516.74
8.0.140.0040.00416.91
8.0.130.0000.00513.31
8.0.120.0030.00516.91
8.0.110.0070.00016.96
8.0.100.0040.00416.71
8.0.90.0070.00016.75
8.0.80.0070.01616.86
8.0.70.0050.00316.95
8.0.60.0030.00316.84
8.0.50.0000.00816.85
8.0.30.0160.00817.09
8.0.20.0080.01117.40
8.0.10.0040.00416.98
8.0.00.0090.01116.75
7.4.330.0040.00415.03
7.4.320.0030.00316.65
7.4.300.0030.00316.66
7.4.290.0030.00316.53
7.4.280.0030.00316.48
7.4.270.0050.00316.55
7.4.260.0040.00416.50
7.4.250.0070.00016.48
7.4.240.0020.00516.57
7.4.230.0050.00316.37
7.4.220.0100.00716.51
7.4.210.0000.01516.53
7.4.200.0070.00016.69
7.4.160.0150.00016.37
7.4.150.0090.00917.40
7.4.140.0080.01217.86
7.4.130.0100.00816.52
7.4.120.0100.00716.55
7.4.110.0030.01416.64
7.4.100.0130.01016.46
7.4.90.0180.00016.40
7.4.80.0120.00916.51
7.4.70.0070.01016.62
7.4.60.0060.00916.48
7.4.50.0000.00816.48
7.4.40.0130.00316.40
7.4.30.0170.00316.46
7.4.00.0030.01514.86
7.3.330.0030.00313.07
7.3.320.0140.00013.08
7.3.310.0030.00416.30
7.3.300.0070.00016.21
7.3.290.0070.00816.26
7.3.280.0090.00916.25
7.3.270.0130.01017.40
7.3.260.0170.00016.48
7.3.250.0100.00716.53
7.3.240.0060.01516.51
7.3.230.0040.01216.39
7.3.210.0030.01716.43
7.3.200.0030.01919.39
7.3.190.0110.00416.25
7.3.180.0100.00716.52
7.3.170.0110.01116.43
7.3.160.0090.00616.15
7.3.120.0100.01014.75
7.3.110.0150.00414.75
7.3.100.0030.01414.71
7.3.90.0070.00714.49
7.3.80.0000.01114.59
7.3.70.0060.00914.66
7.3.60.0070.00714.48
7.3.50.0030.01314.68
7.3.40.0040.01514.82
7.3.30.0060.00914.78
7.3.20.0030.01216.57
7.3.10.0070.01016.43
7.3.00.0100.00616.43
7.2.330.0100.01016.34
7.2.320.0140.00416.69
7.2.310.0150.00416.70
7.2.300.0160.00616.36
7.2.290.0150.00716.68
7.2.250.0100.01014.76
7.2.240.0100.00615.17
7.2.230.0000.01515.08
7.2.220.0030.01314.98
7.2.210.0000.01315.15
7.2.200.0090.00614.96
7.2.190.0070.00415.05
7.2.180.0050.00514.73
7.2.170.0030.01414.73
7.2.60.0040.01116.44
7.2.00.0060.00619.28
7.1.330.0000.01515.56
7.1.320.0120.00315.88
7.1.310.0000.01115.43
7.1.300.0090.00615.50
7.1.290.0000.01415.66
7.1.280.0030.01615.64
7.1.270.0090.00915.78
7.1.260.0060.00315.59
7.1.200.0000.00915.43
7.1.100.0060.00317.59
7.1.70.0030.00616.88
7.1.60.0040.01117.16
7.1.50.0070.01416.79
7.1.00.0030.09022.46
7.0.200.0040.00416.48
7.0.140.0000.07022.10
7.0.60.0130.06719.93
7.0.50.0100.03317.87
7.0.40.0100.04720.11
7.0.30.0300.07320.10
7.0.20.0170.04020.21
7.0.10.0070.08720.27
7.0.00.0000.09020.06
5.6.280.0000.07721.11
5.6.210.0070.08320.52
5.6.200.0030.04018.22
5.6.190.0070.08720.39
5.6.180.0500.06320.61
5.6.170.0270.07720.48
5.6.160.0030.04020.52
5.6.150.0130.04718.24
5.6.140.0030.03718.28
5.6.130.0070.05018.18
5.6.120.0070.08321.00
5.6.110.0130.07321.02
5.6.100.0030.07321.12
5.6.90.0030.07721.02
5.6.80.0000.04020.42
5.5.350.0370.06720.50
5.5.340.0170.08017.98
5.5.330.0070.04320.46
5.5.320.0030.08020.36
5.5.310.0270.06320.30
5.5.300.0030.05017.97
5.5.290.0100.07017.94
5.5.280.0000.04320.78
5.5.270.0070.05720.76
5.5.260.0100.06720.87
5.5.250.0000.04320.71
5.5.240.0070.07720.36
5.4.450.0700.06719.64
5.4.440.0130.06719.36
5.4.430.0270.05319.38
5.4.420.0300.05319.47
5.4.410.0230.05719.45
5.4.400.0300.04719.27
5.4.390.0100.05318.60
5.4.380.0100.05718.73
5.4.370.0100.06718.61
5.4.360.0100.05718.75
5.4.350.0170.05318.81
5.4.340.0230.04318.71
5.4.320.0230.04718.75
5.4.310.0230.06718.78
5.4.300.0070.06718.73
5.4.290.0270.06018.48
5.4.280.0200.06718.77
5.4.270.0270.04318.73
5.4.260.0300.05018.56
5.4.250.0200.05718.57
5.4.240.0130.05718.60
5.4.230.0070.05718.74
5.4.220.0200.05718.61
5.4.210.0070.06318.60
5.4.200.0130.05316.77
5.4.190.0130.05318.59
5.4.180.0200.04318.75
5.4.170.0030.06318.75
5.4.160.0100.05318.74
5.4.150.0200.04718.74
5.4.140.0200.04716.29
5.4.130.0130.04716.45
5.4.120.0100.07316.22
5.4.110.0130.04716.17
5.4.100.0200.04716.27
5.4.90.0170.06716.44
5.4.80.0070.05716.26
5.4.70.0130.05716.39
5.4.60.0170.05016.42
5.4.50.0030.05716.24
5.4.40.0170.04716.27
5.4.30.0130.04716.23
5.4.20.0130.05316.26
5.4.10.0230.04316.40
5.4.00.0170.06315.86
5.3.290.0100.05714.68
5.3.280.0130.05314.81
5.3.270.0200.04714.77
5.3.260.0200.05314.80
5.3.250.0230.04314.82
5.3.240.0230.04014.79
5.3.230.0200.04714.71
5.3.220.0130.05014.55
5.3.210.0070.06714.62
5.3.200.0100.06314.63
5.3.190.0170.05014.73
5.3.180.0230.04014.54
5.3.170.0230.04714.64
5.3.160.0400.05014.57
5.3.150.0170.05314.73
5.3.140.0170.07014.55
5.3.130.0270.06314.63
5.3.120.0200.05014.67
5.3.110.0100.05314.58
5.3.100.0230.04014.20
5.3.90.0070.05714.11
5.3.80.0170.05014.10
5.3.70.0100.05714.17
5.3.60.0100.06313.98
5.3.50.0100.05314.05
5.3.40.0130.05714.00
5.3.30.0230.06014.01
5.3.20.0200.06013.68
5.3.10.0170.04713.74
5.3.00.0030.05713.69
5.2.170.0030.05011.26
5.2.160.0170.03311.23
5.2.150.0100.04311.24
5.2.140.0230.04011.15
5.2.130.0130.03711.31
5.2.120.0070.04311.31
5.2.110.0100.04711.13
5.2.100.0170.03711.15
5.2.90.0130.03711.08
5.2.80.0070.04711.18
5.2.70.0230.03311.30
5.2.60.0100.04011.14
5.2.50.0170.04711.01
5.2.40.0070.04311.04
5.2.30.0070.04311.00
5.2.20.0100.04011.02
5.2.10.0030.04310.90
5.2.00.0070.05010.81
5.1.60.0130.03010.01
5.1.50.0130.03310.02
5.1.40.0100.04010.02
5.1.30.0170.03710.34
5.1.20.0100.03710.33
5.1.10.0100.04010.05
5.1.00.0100.03710.17
5.0.50.0030.0338.72
5.0.40.0000.0338.43
5.0.30.0070.0438.24
5.0.20.0070.0278.26
5.0.10.0030.0308.34
5.0.00.0170.0438.31
4.4.90.0030.0235.94
4.4.80.0030.0275.88
4.4.70.0070.0205.88
4.4.60.0030.0235.96
4.4.50.0030.0235.89
4.4.40.0000.0405.91
4.4.30.0100.0175.88
4.4.20.0030.0235.96
4.4.10.0100.0175.95
4.4.00.0030.0375.91
4.3.110.0070.0205.84
4.3.100.0030.0235.84
4.3.90.0030.0235.91
4.3.80.0000.0405.82
4.3.70.0030.0205.79
4.3.60.0070.0175.91
4.3.50.0030.0235.78
4.3.40.0070.0305.79
4.3.30.0030.0235.07
4.3.20.0130.0135.07
4.3.10.0000.0235.07
4.3.00.0100.01714.62

preferences:
57.91 ms | 401 KiB | 5 Q