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.0130.00616.75
8.3.50.0050.01116.73
8.3.40.0070.01418.79
8.3.30.0110.00418.84
8.3.20.0040.00418.94
8.3.10.0040.00418.65
8.3.00.0040.00419.48
8.2.180.0120.00316.75
8.2.170.0120.00322.96
8.2.160.0030.01319.01
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0080.00019.53
8.2.110.0030.00619.31
8.2.100.0060.00617.91
8.2.90.0080.00017.50
8.2.80.0040.00817.97
8.2.70.0050.00317.63
8.2.60.0040.00417.93
8.2.50.0030.00618.07
8.2.40.0000.00919.35
8.2.30.0060.00317.68
8.2.20.0060.00317.48
8.2.10.0040.00417.68
8.2.00.0040.00417.72
8.1.280.0090.00625.92
8.1.270.0080.00023.99
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0090.00019.16
8.1.230.0090.00319.00
8.1.220.0040.00417.74
8.1.210.0060.00618.77
8.1.200.0100.00017.22
8.1.190.0030.00617.23
8.1.180.0040.00418.10
8.1.170.0000.00718.77
8.1.160.0000.00719.07
8.1.150.0040.00418.58
8.1.140.0030.00817.40
8.1.130.0040.00419.25
8.1.120.0070.00017.41
8.1.110.0040.00417.38
8.1.100.0030.00317.23
8.1.90.0000.00717.45
8.1.80.0040.00417.40
8.1.70.0050.00317.42
8.1.60.0000.00817.48
8.1.50.0040.00417.58
8.1.40.0050.00317.52
8.1.30.0060.00317.61
8.1.20.0050.00917.62
8.1.10.0040.00417.56
8.1.00.0040.00417.51
8.0.300.0040.00418.77
8.0.290.0040.00416.88
8.0.280.0000.00718.58
8.0.270.0000.00717.14
8.0.260.0000.00616.75
8.0.250.0000.00916.93
8.0.240.0030.00316.94
8.0.230.0030.00616.85
8.0.220.0030.00416.78
8.0.210.0030.00416.90
8.0.200.0090.00016.94
8.0.190.0040.00416.92
8.0.180.0000.00716.81
8.0.170.0060.00316.91
8.0.160.0080.00016.86
8.0.150.0050.00216.80
8.0.140.0000.00716.90
8.0.130.0000.00713.29
8.0.120.0000.00916.77
8.0.110.0000.00716.83
8.0.100.0070.00016.84
8.0.90.0040.00416.93
8.0.80.0030.01716.84
8.0.70.0040.00416.81
8.0.60.0050.00316.82
8.0.50.0000.00816.86
8.0.30.0130.00617.24
8.0.20.0110.00817.15
8.0.10.0070.00016.94
8.0.00.0120.00516.83
7.4.330.0070.00012.94
7.4.320.0000.00616.63
7.4.300.0000.00616.57
7.4.290.0030.00616.54
7.4.280.0050.00316.55
7.4.270.0000.00716.59
7.4.260.0020.00313.21
7.4.250.0040.00416.63
7.4.240.0000.00716.57
7.4.230.0070.00016.63
7.4.220.0100.01616.56
7.4.210.0070.01016.47
7.4.200.0000.00716.37
7.4.190.0040.00516.77
7.4.160.0090.00616.52
7.4.150.0140.00716.61
7.4.140.0100.00717.86
7.4.130.0170.01216.57
7.4.120.0040.01416.50
7.4.110.0110.00616.55
7.4.100.0120.00916.57
7.4.90.0100.00716.37
7.4.80.0120.00619.39
7.4.70.0140.00416.61
7.4.60.0080.00816.39
7.4.50.0040.00416.45
7.4.40.0060.00616.41
7.4.30.0120.00316.46
7.4.00.0090.00814.91
7.3.330.0060.00013.18
7.3.320.0030.00313.32
7.3.310.0000.00816.34
7.3.300.0030.00316.30
7.3.290.0130.00416.40
7.3.280.0110.00716.34
7.3.270.0150.00316.49
7.3.260.0090.00916.45
7.3.240.0060.01016.37
7.3.230.0170.00016.52
7.3.210.0120.00616.34
7.3.200.0080.00816.41
7.3.190.0090.00616.41
7.3.180.0030.01316.36
7.3.170.0120.00916.32
7.3.160.0070.00716.27
7.3.120.0070.01014.73
7.3.110.0070.01014.82
7.3.100.0050.00914.82
7.3.90.0060.00814.87
7.3.80.0090.00814.71
7.3.70.0050.00814.79
7.3.60.0070.00714.80
7.3.50.0080.00514.73
7.3.40.0080.00414.66
7.3.30.0060.00714.65
7.3.20.0070.00716.66
7.3.10.0040.01116.45
7.3.00.0060.00516.50
7.2.330.0110.00716.61
7.2.320.0090.01216.63
7.2.310.0140.00716.68
7.2.300.0160.00016.64
7.2.290.0100.01016.72
7.2.250.0080.01014.96
7.2.240.0110.00815.07
7.2.230.0050.00915.03
7.2.220.0030.00915.02
7.2.210.0040.01015.07
7.2.200.0060.00914.97
7.2.190.0080.00714.97
7.2.180.0060.00714.93
7.2.170.0050.00814.94
7.2.60.0830.00714.93
7.2.00.0100.00019.39
7.1.330.0070.00715.70
7.1.320.0060.00315.68
7.1.310.0030.00915.67
7.1.300.0040.01015.76
7.1.290.0060.00715.56
7.1.280.0060.00615.76
7.1.270.0060.00715.61
7.1.260.0080.00515.67
7.1.200.0060.00915.84
7.1.100.0070.00718.17
7.1.70.0030.00617.04
7.1.60.0090.01519.25
7.1.50.0100.01316.58
7.1.00.0000.05322.43
7.0.200.0000.00716.85
7.0.140.0070.07022.17
7.0.120.0000.08022.05
7.0.60.0030.07321.84
7.0.50.0070.04017.89
7.0.40.0100.05320.05
7.0.30.0430.04320.16
7.0.20.0300.07720.19
7.0.10.0100.03720.26
7.0.00.0070.07320.16
5.6.280.0130.06320.99
5.6.210.0000.04020.57
5.6.200.0030.04018.14
5.6.190.0100.08020.34
5.6.180.0870.07320.61
5.6.170.0200.07320.48
5.6.160.0000.04720.54
5.6.150.0070.08318.18
5.6.140.0100.05018.15
5.6.130.0000.04318.19
5.6.120.0170.08020.96
5.6.110.0100.07721.14
5.6.100.0070.05721.02
5.6.90.0070.07720.95
5.6.80.0270.06720.50
5.5.350.0130.08020.43
5.5.340.0100.07718.09
5.5.330.0070.04020.37
5.5.320.0300.07320.19
5.5.310.0100.06320.34
5.5.300.0000.04017.95
5.5.290.0070.08318.08
5.5.280.0100.08320.79
5.5.270.0030.07720.89
5.5.260.0070.09020.97
5.5.250.0130.06320.49
5.5.240.0230.07020.27
5.4.450.0070.06719.57
5.4.440.0030.07719.49
5.4.430.0100.07019.15
5.4.420.0070.08019.40
5.4.410.0100.06719.34
5.4.400.0030.05019.16
5.4.390.0070.04718.87
5.4.380.0070.03719.25
5.4.370.0030.04718.85
5.4.360.0130.05719.24
5.4.350.0070.04019.24
5.4.340.0130.07018.87
5.4.320.0070.04718.84
5.4.310.0030.07718.88
5.4.300.0100.06319.14
5.4.290.0130.06718.87
5.4.280.0170.06319.20
5.4.270.0030.05019.20
5.4.260.0230.03719.18
5.4.250.0100.07719.11
5.4.240.0130.04019.23
5.4.230.0070.07319.14
5.4.220.0100.07318.91
5.4.210.0070.06318.84
5.4.200.0100.06719.23
5.4.190.0000.04318.98
5.4.180.0030.03718.84
5.4.170.0000.04019.14
5.4.160.0000.04018.98
5.4.150.0030.03719.13
5.4.140.0030.03716.38
5.4.130.0070.03016.50
5.4.120.0030.03316.54
5.4.110.0030.04716.41
5.4.100.0070.03016.43
5.4.90.0000.04016.49
5.4.80.0030.03316.37
5.4.70.0000.03716.47
5.4.60.0070.03716.43
5.4.50.0070.03016.44
5.4.40.0070.03316.40
5.4.30.0070.03016.42
5.4.20.0100.03016.41
5.4.10.0070.03016.54
5.4.00.0070.03015.86
5.3.290.0070.07714.81
5.3.280.0070.05014.58
5.3.270.0030.03714.59
5.3.260.0070.03314.63
5.3.250.0030.04314.65
5.3.240.0000.04014.77
5.3.230.0130.02714.66
5.3.220.0130.02714.61
5.3.210.0000.04014.55
5.3.200.0070.03714.63
5.3.190.0100.03014.63
5.3.180.0030.03714.71
5.3.170.0100.03014.45
5.3.160.0030.04014.61
5.3.150.0030.04014.63
5.3.140.0000.04014.60
5.3.130.0100.03014.54
5.3.120.0030.03714.69
5.3.110.0000.04014.70
5.3.100.0070.03314.20
5.3.90.0100.03314.01
5.3.80.0030.03714.07
5.3.70.0030.03713.91
5.3.60.0000.04014.04
5.3.50.0000.03714.00
5.3.40.0070.03313.94
5.3.30.0030.03313.96
5.3.20.0100.02713.77
5.3.10.0000.03713.80
5.3.00.0030.03313.64
5.2.170.0000.03311.20
5.2.160.0030.02711.20
5.2.150.0000.03011.10
5.2.140.0000.03011.22
5.2.130.0070.02311.05
5.2.120.0030.02711.27
5.2.110.0030.02711.11
5.2.100.0000.03010.99
5.2.90.0000.03011.07
5.2.80.0030.07011.24
5.2.70.0030.05311.11
5.2.60.0000.03711.14
5.2.50.0070.05711.18
5.2.40.0000.06310.89
5.2.30.0030.06310.91
5.2.20.0030.03011.00
5.2.10.0130.04310.85
5.2.00.0030.04310.72
5.1.60.0100.0279.98
5.1.50.0030.0339.90
5.1.40.0030.0339.93
5.1.30.0070.05310.41
5.1.20.0000.06010.35
5.1.10.0070.03310.11
5.1.00.0070.05710.11
5.0.50.0070.0438.88
5.0.40.0000.0338.88
5.0.30.0030.0638.88
5.0.20.0030.0308.88
5.0.10.0070.0408.88
5.0.00.0000.0578.88
4.4.90.0030.0208.88
4.4.80.0030.0278.88
4.4.70.0070.0178.88
4.4.60.0000.0378.88
4.4.50.0100.0238.88
4.4.40.0030.0438.88
4.4.30.0070.0308.88
4.4.20.0070.0238.88
4.4.10.0000.0408.88
4.4.00.0030.0538.88
4.3.110.0030.0338.88
4.3.100.0030.0308.88
4.3.90.0000.0378.88
4.3.80.0030.0538.88
4.3.70.0100.0208.88
4.3.60.0030.0308.88
4.3.50.0000.0378.88
4.3.40.0070.0478.88
4.3.30.0000.0378.88
4.3.20.0000.0338.88
4.3.10.0000.0208.88
4.3.00.0030.0178.88

preferences:
39.82 ms | 401 KiB | 5 Q