3v4l.org

run code in 300+ PHP versions simultaneously
<?php class TestClass { static $_cat; public function setCat($val) { self::$_cat = $val; } } TestClass::setCat('fluffles'); echo TestClass::_cat;

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.0110.00416.75
8.3.50.0080.01021.06
8.3.40.0070.00718.97
8.3.30.0040.01118.84
8.3.20.0080.00020.16
8.3.10.0090.00623.72
8.3.00.0080.00023.64
8.2.180.0060.01218.29
8.2.170.0120.00319.00
8.2.160.0090.00622.96
8.2.150.0070.00025.66
8.2.140.0000.00824.66
8.2.130.0080.00019.58
8.2.120.0040.00426.35
8.2.110.0030.00621.96
8.2.100.0090.00317.80
8.2.90.0090.00019.13
8.2.80.0080.00017.97
8.2.70.0060.00317.63
8.2.60.0040.00417.80
8.2.50.0040.00418.07
8.2.40.0030.00522.23
8.2.30.0040.00420.64
8.2.20.0000.00817.59
8.2.10.0020.00517.99
8.2.00.0000.00717.93
8.1.280.0090.00625.92
8.1.270.0160.00023.79
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0070.01522.34
8.1.230.0040.00819.10
8.1.220.0000.00917.74
8.1.210.0050.00318.77
8.1.200.0040.00717.10
8.1.190.0000.00817.00
8.1.180.0080.00018.10
8.1.170.0050.00318.49
8.1.160.0020.00520.63
8.1.150.0050.00218.77
8.1.140.0050.00319.33
8.1.130.0000.00717.54
8.1.120.0050.00317.28
8.1.110.0040.00417.35
8.1.100.0040.00417.23
8.1.90.0050.00217.26
8.1.80.0030.00517.29
8.1.70.0030.00317.35
8.1.60.0050.00317.49
8.1.50.0040.00417.52
8.1.40.0040.00417.49
8.1.30.0040.00417.49
8.1.20.0030.00617.57
8.1.10.0050.00317.45
8.1.00.0040.00417.43
8.0.300.0070.00018.77
8.0.290.0040.00416.75
8.0.280.0000.00718.38
8.0.270.0040.00417.20
8.0.260.0030.00617.07
8.0.250.0060.00017.00
8.0.240.0000.00716.97
8.0.230.0000.00716.93
8.0.220.0040.00416.79
8.0.210.0000.00716.87
8.0.200.0000.00616.92
8.0.190.0000.00816.96
8.0.180.0000.00816.93
8.0.170.0090.00016.78
8.0.160.0080.00016.96
8.0.150.0070.00016.82
8.0.140.0000.00716.73
8.0.130.0040.00413.32
8.0.120.0050.00316.86
8.0.110.0040.00416.83
8.0.100.0040.00416.86
8.0.90.0000.00816.92
8.0.80.0060.01216.87
8.0.70.0070.00016.92
8.0.60.0040.00416.95
8.0.50.0040.00416.79
8.0.30.0120.00717.09
8.0.20.0110.00617.40
8.0.10.0030.00516.81
8.0.00.0060.01416.57
7.4.330.0020.00216.67
7.4.320.0020.00516.51
7.4.300.0060.00016.50
7.4.290.0030.00316.65
7.4.280.0020.00516.49
7.4.270.0030.00316.61
7.4.260.0000.00716.59
7.4.250.0070.00016.57
7.4.240.0040.00316.52
7.4.230.0070.00016.51
7.4.220.0150.01216.63
7.4.210.0070.00716.52
7.4.200.0040.00416.68
7.4.160.0130.00316.52
7.4.150.0090.00917.40
7.4.140.0080.00917.86
7.4.130.0080.00916.51
7.4.120.0070.01016.57
7.4.110.0150.00316.50
7.4.100.0170.00016.46
7.4.90.0110.00716.52
7.4.80.0120.00919.39
7.4.70.0130.00316.45
7.4.60.0110.01116.66
7.4.50.0090.00616.57
7.4.40.0040.01416.73
7.4.30.0130.00316.54
7.4.00.0070.01015.12
7.3.330.0020.00213.36
7.3.320.0000.00613.21
7.3.310.0070.00016.54
7.3.300.0030.00316.29
7.3.290.0030.00316.26
7.3.280.0080.00816.44
7.3.270.0090.00917.40
7.3.260.0070.01016.63
7.3.250.0100.00716.51
7.3.240.0080.01016.31
7.3.230.0100.00716.43
7.3.210.0070.01016.42
7.3.200.0060.01019.39
7.3.190.0060.01016.70
7.3.180.0030.01316.51
7.3.170.0110.00416.63
7.3.160.0100.00716.49
7.3.10.0070.00716.61
7.3.00.0040.01116.82
7.2.330.0070.01716.37
7.2.320.0100.00916.45
7.2.310.0030.01316.34
7.2.300.0140.00416.54
7.2.290.0100.00716.52
7.2.130.0070.01016.82
7.2.120.0080.00416.72
7.2.110.0000.01416.93
7.2.100.0080.00716.45
7.2.90.0070.01016.57
7.2.80.0120.00316.65
7.2.70.0090.00316.73
7.2.60.0080.00816.77
7.2.50.0070.00416.96
7.2.40.0080.00416.89
7.2.30.0060.00616.66
7.2.20.0060.00616.78
7.2.10.0040.01116.94
7.2.00.0020.00918.14
7.1.250.0040.00815.73
7.1.200.0060.00615.47
7.1.100.0000.01117.80
7.1.70.0040.00717.13
7.1.60.0100.01319.20
7.1.50.0070.01316.90
7.1.00.0100.07022.33
7.0.200.0000.00716.79
7.0.60.0030.03321.59
7.0.50.0100.07717.94
7.0.40.0030.08320.13
7.0.30.0370.05720.11
7.0.20.0170.04720.26
7.0.10.0070.08720.24
7.0.00.0030.09020.07
5.6.280.0000.03320.93
5.6.210.0100.06020.77
5.6.200.0100.07018.19
5.6.190.0100.07020.48
5.6.180.0400.03720.52
5.6.170.0300.06320.56
5.6.160.0070.04020.47
5.6.150.0030.04018.11
5.6.140.0030.04018.17
5.6.130.0030.05318.17
5.6.120.0100.07720.90
5.6.110.0070.09020.99
5.6.100.0100.06721.02
5.6.90.0300.06020.95
5.6.80.0070.04020.44
5.5.350.0370.05720.39
5.5.340.0070.08017.94
5.5.330.0100.06720.49
5.5.320.0730.05720.24
5.5.310.0270.07720.36
5.5.300.0030.05017.96
5.5.290.0170.07317.98
5.5.280.0030.04320.89
5.5.270.0030.08320.77
5.5.260.0130.07020.76
5.5.250.0130.03020.48
5.5.240.0170.07720.12

preferences:
49.64 ms | 401 KiB | 5 Q