3v4l.org

run code in 300+ PHP versions simultaneously
<?php class TestClass { static $_cat; public function setCat($val) { self::$_cat = $val; } public function getCat() { return self::$_cat; } } TestClass::setCat('fluffles'); $testClass = new TestClass(); TestClass::setCat('mittens'); $testClassTwo = new TestClass(); echo $testClass->getCat(); echo $testClassTwo->getCat();

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.0120.00316.63
8.3.50.0130.00521.06
8.3.40.0090.00618.66
8.3.30.0160.00618.73
8.3.20.0050.00220.30
8.3.10.0020.00523.53
8.3.00.0000.00823.64
8.2.180.0090.00616.63
8.2.170.0090.00622.96
8.2.160.0120.00322.96
8.2.150.0040.00425.66
8.2.140.0030.00524.66
8.2.130.0040.00419.52
8.2.120.0080.00026.35
8.2.110.0100.00020.47
8.2.100.0060.00617.91
8.2.90.0000.00719.17
8.2.80.0040.00417.97
8.2.70.0030.00617.49
8.2.60.0030.00617.93
8.2.50.0040.00418.07
8.2.40.0030.00520.41
8.2.30.0000.00820.66
8.2.20.0000.00717.57
8.2.10.0000.00717.95
8.2.00.0000.00717.88
8.1.280.0110.00425.92
8.1.270.0040.00423.91
8.1.260.0070.00028.09
8.1.250.0050.00228.09
8.1.240.0120.00021.98
8.1.230.0040.00822.82
8.1.220.0030.00517.74
8.1.210.0040.00418.77
8.1.200.0030.00717.22
8.1.190.0030.00617.23
8.1.180.0000.00818.10
8.1.170.0040.00418.46
8.1.160.0040.00420.52
8.1.150.0050.00218.80
8.1.140.0000.00819.45
8.1.130.0000.00717.70
8.1.120.0040.00417.39
8.1.110.0000.00817.30
8.1.100.0030.00517.34
8.1.90.0000.00817.38
8.1.80.0050.00317.36
8.1.70.0000.00817.24
8.1.60.0000.00917.41
8.1.50.0040.00417.52
8.1.40.0000.00817.47
8.1.30.0040.00417.63
8.1.20.0040.00417.43
8.1.10.0040.00417.47
8.1.00.0030.00617.45
8.0.300.0070.00018.77
8.0.290.0000.00716.75
8.0.280.0070.00018.39
8.0.270.0000.00717.11
8.0.260.0060.00317.26
8.0.250.0030.00316.88
8.0.240.0080.00016.83
8.0.230.0030.00316.87
8.0.220.0030.00516.80
8.0.210.0030.00316.86
8.0.200.0000.00717.00
8.0.190.0030.00517.01
8.0.180.0000.00816.92
8.0.170.0040.00416.88
8.0.160.0000.00716.91
8.0.150.0000.00716.83
8.0.140.0050.00316.84
8.0.130.0060.00013.32
8.0.120.0050.00316.75
8.0.110.0000.00816.86
8.0.100.0000.00716.80
8.0.90.0070.00016.88
8.0.80.0090.00616.86
8.0.70.0000.00716.79
8.0.60.0050.00316.77
8.0.50.0040.00416.88
8.0.30.0100.00717.11
8.0.20.0130.00817.40
8.0.10.0040.00416.85
8.0.00.0140.00816.70
7.4.330.0000.00516.70
7.4.320.0040.00416.43
7.4.300.0030.00316.52
7.4.290.0000.00716.59
7.4.280.0000.01016.41
7.4.270.0000.00716.58
7.4.260.0000.00716.51
7.4.250.0000.00716.46
7.4.240.0000.00716.54
7.4.230.0000.00716.68
7.4.220.0100.01416.63
7.4.210.0090.00616.57
7.4.200.0000.00616.50
7.4.160.0120.00616.34
7.4.150.0150.00317.40
7.4.140.0090.00717.86
7.4.130.0090.00816.52
7.4.120.0120.00616.57
7.4.110.0000.01716.54
7.4.100.0100.01316.47
7.4.90.0150.00316.48
7.4.80.0060.01019.39
7.4.70.0100.00616.60
7.4.60.0070.01016.41
7.4.50.0030.01216.39
7.4.40.0070.01016.75
7.4.30.0100.01316.44
7.4.00.0090.00614.93
7.3.330.0000.00513.38
7.3.320.0000.00513.41
7.3.310.0040.00416.22
7.3.300.0000.00716.29
7.3.290.0040.00216.31
7.3.280.0060.01016.40
7.3.270.0110.00717.40
7.3.260.0080.00816.54
7.3.250.0110.00816.40
7.3.240.0080.01116.55
7.3.230.0030.01516.39
7.3.210.0110.00616.38
7.3.200.0060.01119.39
7.3.190.0120.00916.43
7.3.180.0080.00816.40
7.3.170.0110.00616.64
7.3.160.0120.00916.46
7.2.330.0120.00916.79
7.2.320.0060.01616.50
7.2.310.0090.00916.65
7.2.300.0070.01016.32
7.2.290.0130.00316.41
7.2.60.0070.01016.64
7.2.00.0000.01219.48
7.1.200.0080.00415.78
7.1.100.0060.00617.84
7.1.70.0030.00617.03
7.1.60.0140.01019.20
7.1.50.0110.00716.75
7.1.00.0000.07722.35
7.0.200.0050.00516.46
7.0.60.0000.04321.71
7.0.50.0100.05317.95
7.0.40.0070.05320.24
7.0.30.0300.08020.21
7.0.20.0330.07720.23
7.0.10.0000.06720.21
7.0.00.0130.07320.09
5.6.280.0070.03021.00
5.6.210.0100.06720.62
5.6.200.0070.06718.19
5.6.190.0130.07720.52
5.6.180.0330.04320.41
5.6.170.0330.07320.48
5.6.160.0070.08320.54
5.6.150.0000.04318.23
5.6.140.0000.08318.17
5.6.130.0070.09018.27
5.6.120.0070.08021.12
5.6.110.0070.09020.99
5.6.100.0070.04720.89
5.6.90.0200.07721.04
5.6.80.0130.02720.36
5.5.350.0300.06720.42
5.5.340.0070.08318.07
5.5.330.0100.05020.30
5.5.320.0670.06320.39
5.5.310.0200.03720.26
5.5.300.0100.08018.04
5.5.290.0030.04017.92
5.5.280.0130.08020.97
5.5.270.0030.04320.96
5.5.260.0100.08020.83
5.5.250.0070.07320.47
5.5.240.0270.04720.29

preferences:
63.62 ms | 401 KiB | 5 Q