3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MyClass { public static $myVariable; public static function set($name, $value) { if (true === property_exists('MyClass', $name)) { self::$$name = $value; } } } MyClass::set('myVariable', 123); //echo MyClass::myVariable;

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.0060.01216.75
8.3.50.0100.00718.19
8.3.40.0120.00918.47
8.3.30.0090.01218.84
8.3.20.0040.01118.63
8.3.10.0080.00018.65
8.3.00.0100.00019.10
8.2.180.0090.01125.92
8.2.170.0070.01118.87
8.2.160.0070.00722.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0070.00719.52
8.2.110.0090.00021.04
8.2.100.0060.00617.78
8.2.90.0050.00318.18
8.2.80.0080.00317.97
8.2.70.0040.00418.04
8.2.60.0000.00818.03
8.2.50.0030.00518.10
8.2.40.0040.00421.01
8.2.30.0000.00917.68
8.2.20.0030.00617.67
8.2.10.0070.00017.60
8.2.00.0070.00417.61
8.1.280.0070.01025.92
8.1.270.0070.00023.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0080.00320.68
8.1.230.0120.00020.88
8.1.220.0000.00817.74
8.1.210.0060.00318.90
8.1.200.0060.00317.23
8.1.190.0090.00617.23
8.1.180.0040.00418.10
8.1.170.0040.00418.76
8.1.160.0000.00918.60
8.1.150.0040.00418.42
8.1.140.0080.00417.24
8.1.130.0030.00317.30
8.1.120.0080.00017.37
8.1.110.0030.00317.31
8.1.100.0040.00417.38
8.1.90.0040.00317.35
8.1.80.0040.00417.41
8.1.70.0040.00417.32
8.1.60.0000.00817.61
8.1.50.0040.00417.46
8.1.40.0040.00417.40
8.1.30.0080.00017.53
8.1.20.0110.00017.63
8.1.10.0040.00417.54
8.1.00.0040.00417.55
8.0.300.0070.00019.89
8.0.290.0040.00416.75
8.0.280.0040.00417.84
8.0.270.0070.00017.18
8.0.260.0070.00016.66
8.0.250.0040.00416.80
8.0.240.0020.00516.82
8.0.230.0040.00416.84
8.0.220.0070.00316.79
8.0.210.0000.00816.84
8.0.200.0030.00616.88
8.0.190.0090.00016.75
8.0.180.0040.00416.88
8.0.170.0000.00816.86
8.0.160.0040.00416.79
8.0.150.0030.00516.77
8.0.140.0030.00416.69
8.0.130.0000.00513.25
8.0.120.0030.00616.81
8.0.110.0070.00016.84
8.0.100.0040.00416.87
8.0.90.0050.00316.84
8.0.80.0000.01416.73
8.0.70.0070.00016.82
8.0.60.0060.00316.88
8.0.50.0090.00016.87
8.0.30.0000.01416.90
8.0.20.0230.01117.28
8.0.10.0000.00716.88
8.0.00.0050.01216.57
7.4.330.0040.00313.03
7.4.320.0040.00416.51
7.4.300.0030.00316.60
7.4.290.0000.01116.60
7.4.280.0000.00816.57
7.4.270.0030.00316.44
7.4.260.0030.00313.17
7.4.250.0030.00616.60
7.4.240.0070.00016.42
7.4.230.0000.00716.55
7.4.220.0040.01416.59
7.4.210.0040.01116.45
7.4.200.0000.00716.50
7.4.190.0000.01016.59
7.4.160.0090.00616.36
7.4.150.0070.01116.61
7.4.140.0130.00717.86
7.4.130.0250.00916.52
7.4.120.0090.01216.45
7.4.110.0070.01016.45
7.4.100.0070.01016.51
7.4.90.0090.00916.42
7.4.80.0040.01319.39
7.4.70.0150.00616.54
7.4.60.0040.01316.30
7.4.50.0050.00216.23
7.4.40.0100.00316.38
7.4.30.0030.01416.57
7.4.00.0040.01115.19
7.3.330.0050.00313.41
7.3.320.0000.00513.20
7.3.310.0000.00716.47
7.3.300.0030.00316.32
7.3.290.0060.01016.32
7.3.280.0080.00816.33
7.3.270.0150.00316.46
7.3.260.0100.01016.24
7.3.240.0000.01716.46
7.3.230.0070.01016.55
7.3.210.0000.01616.41
7.3.200.0100.00616.44
7.3.190.0050.01116.43
7.3.180.0060.00916.63
7.3.170.0080.00816.42
7.3.160.0030.01316.30
7.3.120.0070.00715.12
7.2.330.0110.00716.66
7.2.320.0070.01116.69
7.2.310.0120.00616.47
7.2.300.0130.01016.75
7.2.290.0000.01816.43
7.2.00.0000.01319.26
7.1.100.0000.00818.15
7.1.70.0000.00717.07
7.1.60.0030.02019.25
7.1.50.0070.01417.09
7.1.00.0000.04022.31
7.0.200.0040.00416.96
7.0.140.0000.08022.13
7.0.120.0000.07022.20
7.0.60.0070.03719.96
7.0.50.0230.05317.96
7.0.40.0030.04317.77
7.0.30.0100.06717.69
7.0.20.0100.05317.91
7.0.10.0170.07017.85
7.0.00.0230.07017.70
5.6.210.0070.07320.56
5.6.200.0000.04318.29
5.6.190.0070.05718.27
5.6.180.0000.09318.15
5.6.170.0070.08318.25
5.6.160.0030.08018.23
5.6.150.0130.08018.23
5.6.140.0170.07018.15
5.6.130.0000.04718.12
5.6.120.0070.04018.28
5.6.110.0170.07318.21
5.6.100.0070.04718.16
5.6.90.0000.05018.25
5.6.80.0100.08017.57
5.6.70.0030.04017.59
5.6.60.0070.08017.56
5.6.50.0100.05017.67
5.6.40.0070.07017.60
5.6.30.0100.07017.50
5.6.20.0000.08317.53
5.6.10.0030.08017.53
5.6.00.0030.07317.56
5.5.350.0170.08320.46
5.5.340.0030.05717.94
5.5.330.0030.05718.09
5.5.320.0030.05017.98
5.5.310.0030.05718.04
5.5.300.0030.05017.99
5.5.290.0000.04718.03
5.5.280.0130.06018.01
5.5.270.0070.04317.98
5.5.260.0070.08317.93
5.5.250.0130.07017.84
5.5.240.0000.04317.47
5.5.230.0000.05017.32
5.5.220.0030.06317.33
5.5.210.0000.04717.45
5.5.200.0030.08717.37
5.5.190.0100.08017.34
5.5.180.0030.08017.32
5.5.160.0070.05017.32
5.5.150.0030.04017.27
5.5.140.0100.03317.27
5.5.130.0130.05317.39
5.5.120.0130.07017.39
5.5.110.0100.05017.30
5.5.100.0030.06317.23
5.5.90.0030.06017.33
5.5.80.0070.06717.22
5.5.70.0070.05017.18
5.5.60.0070.04317.32
5.5.50.0030.04717.32
5.5.40.0130.07017.23
5.5.30.0100.07317.27
5.5.20.0070.08017.21
5.5.10.0030.07317.22
5.5.00.0070.05317.19
5.4.450.0100.03319.47
5.4.440.0130.07019.36
5.4.430.0070.08019.35
5.4.420.0130.07019.33
5.4.410.0130.07019.24
5.4.400.0130.06319.27
5.4.390.0000.08719.02
5.4.380.0070.06319.02
5.4.370.0000.08718.90
5.4.360.0100.07319.13
5.4.350.0100.07719.13
5.4.340.0030.08319.32
5.4.320.0100.04019.09
5.4.310.0070.06319.05
5.4.300.0100.04019.11
5.4.290.0130.07319.14
5.4.280.0000.06719.09
5.4.270.0070.05019.27
5.4.260.0030.06319.01
5.4.250.0030.06718.99
5.4.240.0130.07019.03
5.4.230.0030.08319.09
5.4.220.0000.06019.05
5.4.210.0030.08019.03
5.4.200.0070.04319.00
5.4.190.0070.08019.13
5.4.180.0030.06319.04
5.4.170.0130.05018.94
5.4.160.0070.06319.03
5.4.150.0130.07019.10
5.4.140.0030.05016.41
5.4.130.0000.04316.39
5.4.120.0070.04716.43
5.4.110.0100.07316.45
5.4.100.0130.07016.45
5.4.90.0100.07316.40
5.4.80.0000.07716.30
5.4.70.0000.07716.46
5.4.60.0070.06716.36
5.4.50.0100.03016.38
5.4.40.0030.07316.48
5.4.30.0100.06716.52
5.4.20.0100.03016.52
5.4.10.0070.06316.35
5.4.00.0030.04715.73
5.3.290.0070.04314.73
5.3.280.0170.06714.64
5.3.270.0070.08314.82
5.3.260.0030.06314.45
5.3.250.0070.07314.63
5.3.240.0000.04314.64
5.3.230.0030.04014.80
5.3.220.0170.06714.78
5.3.210.0070.06014.57
5.3.200.0030.08014.61
5.3.190.0030.05314.41
5.3.180.0100.06314.57
5.3.170.0070.07314.52
5.3.160.0070.05014.57
5.3.150.0030.05014.52
5.3.140.0030.04314.77
5.3.130.0130.05314.54
5.3.120.0070.08014.55
5.3.110.0000.04314.50
5.3.100.0000.05314.07
5.3.90.0030.05013.87
5.3.80.0070.03714.05
5.3.70.0000.04014.22
5.3.60.0030.04714.07
5.3.50.0100.07013.93
5.3.40.0030.04314.00
5.3.30.0130.04013.95
5.3.20.0000.05013.73
5.3.10.0030.06013.69
5.3.00.0030.07713.67
5.2.170.0070.06011.20
5.2.160.0070.06011.36
5.2.150.0070.02711.03
5.2.140.0070.06011.24
5.2.130.0070.05311.14
5.2.120.0100.05711.16
5.2.110.0100.03711.07
5.2.100.0070.05711.09
5.2.90.0030.06711.14
5.2.80.0000.06311.13
5.2.70.0030.04711.12
5.2.60.0030.03311.14
5.2.50.0000.04311.02
5.2.40.0070.03310.96
5.2.30.0100.02310.89
5.2.20.0030.04310.91
5.2.10.0100.06010.70
5.2.00.0030.05310.73
5.1.60.0030.0279.97
5.1.50.0000.02710.05
5.1.40.0000.0279.96
5.1.30.0070.04310.40
5.1.20.0030.06010.20
5.1.10.0030.04010.14
5.1.00.0000.0509.90
5.0.50.0100.0438.59
5.0.40.0000.0408.39
5.0.30.0000.0438.29
5.0.20.0000.0278.22
5.0.10.0000.0238.22
5.0.00.0030.0308.23
4.4.90.0000.0408.22
4.4.80.0000.0178.22
4.4.70.0030.0208.22
4.4.60.0000.0208.22
4.4.50.0000.0338.22
4.4.40.0000.0278.22
4.4.30.0030.0138.22
4.4.20.0000.0308.22
4.4.10.0030.0238.22
4.4.00.0000.0578.22
4.3.110.0000.0308.22
4.3.100.0000.0178.22
4.3.90.0000.0178.22
4.3.80.0030.0338.22
4.3.70.0030.0308.22
4.3.60.0030.0378.22
4.3.50.0100.0308.22
4.3.40.0030.0338.22
4.3.30.0000.0338.22
4.3.20.0000.0378.22
4.3.10.0000.0308.22
4.3.00.0000.0278.22

preferences:
77.65 ms | 401 KiB | 5 Q