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 = new TestClass(); $testClassTwo = new TestClass(); TestClass::setCat('mittens'); 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.70.0040.01118.27
8.3.60.0090.00618.20
8.3.50.0120.00720.98
8.3.40.0110.00418.97
8.3.30.0000.01418.67
8.3.20.0050.00220.37
8.3.10.0000.00923.36
8.3.00.0090.00023.57
8.2.180.0120.00318.44
8.2.170.0130.00318.96
8.2.160.0040.01222.96
8.2.150.0040.00425.66
8.2.140.0080.00024.66
8.2.130.0030.00519.70
8.2.120.0040.00426.35
8.2.110.0060.00321.03
8.2.100.0100.00317.91
8.2.90.0040.00417.84
8.2.80.0000.00817.97
8.2.70.0070.00417.50
8.2.60.0030.00617.80
8.2.50.0050.00318.07
8.2.40.0060.00320.46
8.2.30.0000.00720.52
8.2.20.0000.00717.69
8.2.10.0040.00418.02
8.2.00.0040.00418.07
8.1.280.0140.00325.92
8.1.270.0030.00623.88
8.1.260.0080.00028.09
8.1.250.0030.00528.09
8.1.240.0070.00322.06
8.1.230.0040.00720.93
8.1.220.0000.00817.74
8.1.210.0030.00620.04
8.1.200.0060.00317.35
8.1.190.0040.00417.23
8.1.180.0030.00618.10
8.1.170.0040.00418.50
8.1.160.0040.00420.60
8.1.150.0000.00718.84
8.1.140.0080.00019.45
8.1.130.0070.00017.61
8.1.120.0040.00417.39
8.1.110.0040.00417.41
8.1.100.0000.00717.45
8.1.90.0040.00417.31
8.1.80.0050.00317.32
8.1.70.0030.00317.42
8.1.60.0030.00517.65
8.1.50.0000.00817.46
8.1.40.0040.00417.42
8.1.30.0080.00017.61
8.1.20.0040.00417.63
8.1.10.0000.00817.63
8.1.00.0080.00017.50
8.0.300.0040.00420.15
8.0.290.0080.00016.63
8.0.280.0000.00718.39
8.0.270.0040.00417.18
8.0.260.0070.00417.26
8.0.250.0000.00716.89
8.0.240.0040.00416.94
8.0.230.0000.00716.99
8.0.220.0050.00216.87
8.0.210.0000.00816.84
8.0.200.0040.00416.84
8.0.190.0050.00316.98
8.0.180.0040.00416.90
8.0.170.0000.00816.86
8.0.160.0000.00716.95
8.0.150.0030.00316.75
8.0.140.0040.00416.77
8.0.130.0000.00713.38
8.0.120.0040.00416.81
8.0.110.0040.00416.81
8.0.100.0030.00616.88
8.0.90.0050.00316.89
8.0.80.0180.00016.91
8.0.70.0000.00716.87
8.0.60.0070.00016.93
8.0.50.0050.00217.02
8.0.30.0070.01016.95
8.0.20.0100.00817.40
8.0.10.0000.00716.95
8.0.00.0080.01216.72
7.4.330.0030.00316.72
7.4.320.0000.00616.52
7.4.300.0030.00316.52
7.4.290.0000.00716.63
7.4.280.0000.01016.61
7.4.270.0000.00716.54
7.4.260.0000.01216.63
7.4.250.0040.00416.48
7.4.240.0050.00216.57
7.4.230.0030.00316.50
7.4.220.0120.00616.55
7.4.210.0070.01016.58
7.4.200.0000.00716.40
7.4.160.0160.00416.45
7.4.150.0060.01217.40
7.4.140.0080.01317.86
7.4.130.0070.01216.64
7.4.120.0100.00716.71
7.4.110.0090.00916.43
7.4.100.0140.00316.52
7.4.90.0290.02116.55
7.4.80.0100.00619.39
7.4.70.0050.01116.43
7.4.60.0080.00816.51
7.4.50.0090.00616.62
7.4.40.0140.00416.54
7.4.30.0120.01116.57
7.4.00.0060.00914.90
7.3.330.0020.00213.36
7.3.320.0030.00313.36
7.3.310.0000.00916.46
7.3.300.0040.00416.45
7.3.290.0040.00416.31
7.3.280.0100.00816.42
7.3.270.0080.00817.40
7.3.260.0080.00816.58
7.3.250.0090.01016.51
7.3.240.0100.01116.49
7.3.230.0100.00816.59
7.3.210.0100.01316.47
7.3.200.0160.00616.60
7.3.190.0060.00916.64
7.3.180.0040.01216.29
7.3.170.0070.01016.47
7.3.160.0130.01016.42
7.2.330.0070.01316.77
7.2.320.0100.01316.66
7.2.310.0030.01316.70
7.2.300.0100.00916.39
7.2.290.0100.00716.41
7.2.60.0070.01016.48
7.2.00.0080.00619.65
7.1.200.0060.00615.77
7.1.100.0050.00517.82
7.1.70.0070.00717.25
7.1.60.0130.01319.20
7.1.50.0000.02016.68
7.1.00.0070.07022.36
7.0.200.0000.00716.92
7.0.60.0000.04021.76
7.0.50.0030.08317.83
7.0.40.0030.09320.30
7.0.30.0570.07320.24
7.0.20.0230.08020.06
7.0.10.0030.06020.24
7.0.00.0130.08020.25
5.6.280.0000.03321.14
5.6.210.0070.04320.67
5.6.200.0070.05318.27
5.6.190.0130.06720.57
5.6.180.0330.04320.61
5.6.170.0330.07320.59
5.6.160.0130.07320.52
5.6.150.0030.04018.29
5.6.140.0000.04318.24
5.6.130.0030.04318.13
5.6.120.0070.03721.15
5.6.110.0100.07320.98
5.6.100.0130.07721.01
5.6.90.0130.08020.98
5.6.80.0070.03720.36
5.5.350.0300.06020.43
5.5.340.0070.07317.98
5.5.330.0100.05720.44
5.5.320.0670.05320.28
5.5.310.0400.06720.24
5.5.300.0130.06717.95
5.5.290.0070.07717.96
5.5.280.0130.07720.74
5.5.270.0070.07320.68
5.5.260.0030.07020.73
5.5.250.0000.04320.59
5.5.240.0070.03320.27

preferences:
44.22 ms | 401 KiB | 5 Q