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.40.0070.01419.02
8.3.30.0180.00018.71
8.3.20.0000.00820.34
8.3.10.0150.00023.48
8.3.00.0000.00823.53
8.2.170.0110.00418.81
8.2.160.0120.00622.96
8.2.150.0070.00025.66
8.2.140.0040.00424.66
8.2.130.0120.00319.58
8.2.120.0000.00826.35
8.2.110.0060.00322.08
8.2.100.0090.00317.80
8.2.90.0000.00819.05
8.2.80.0030.00617.97
8.2.70.0060.00317.63
8.2.60.0030.00517.93
8.2.50.0060.00318.07
8.2.40.0030.00522.32
8.2.30.0000.00820.50
8.2.20.0030.00517.70
8.2.10.0040.00418.05
8.2.00.0080.00017.88
8.1.270.0060.00623.91
8.1.260.0080.00028.09
8.1.250.0050.00328.09
8.1.240.0070.00322.47
8.1.230.0070.00419.10
8.1.220.0040.00417.78
8.1.210.0030.00618.77
8.1.200.0050.00517.00
8.1.190.0000.00817.10
8.1.180.0090.00018.10
8.1.170.0030.00618.50
8.1.160.0000.00720.56
8.1.150.0040.00418.74
8.1.140.0050.00319.43
8.1.130.0000.00817.62
8.1.120.0040.00417.22
8.1.110.0030.00517.26
8.1.100.0040.00417.25
8.1.90.0060.00317.36
8.1.80.0000.00717.24
8.1.70.0000.00717.32
8.1.60.0060.00317.53
8.1.50.0030.00617.36
8.1.40.0040.00417.41
8.1.30.0050.00317.60
8.1.20.0040.00417.48
8.1.10.0000.00717.48
8.1.00.0000.00717.43
8.0.300.0040.00418.77
8.0.290.0030.00616.75
8.0.280.0000.00718.28
8.0.270.0030.00317.24
8.0.260.0030.00618.89
8.0.250.0000.00716.86
8.0.240.0000.00816.96
8.0.230.0030.00316.95
8.0.220.0000.00716.87
8.0.210.0070.00016.79
8.0.200.0000.00616.89
8.0.190.0000.00816.89
8.0.180.0040.00416.91
8.0.170.0000.00816.91
8.0.160.0000.00716.92
8.0.150.0040.00416.71
8.0.140.0030.00516.87
8.0.130.0030.00313.33
8.0.120.0030.00516.85
8.0.110.0000.00716.88
8.0.100.0070.00016.90
8.0.90.0040.00416.86
8.0.80.0110.00416.86
8.0.70.0000.00716.96
8.0.60.0020.00516.85
8.0.50.0040.00416.69
8.0.30.0120.00717.15
8.0.20.0100.00917.40
8.0.10.0020.00516.96
8.0.00.0110.00716.83
7.4.330.0000.00516.67
7.4.320.0060.00016.46
7.4.300.0030.00316.59
7.4.290.0000.00716.60
7.4.280.0040.00416.58
7.4.270.0030.00316.41
7.4.260.0030.00616.40
7.4.250.0040.00416.47
7.4.240.0050.00216.64
7.4.230.0070.00016.43
7.4.220.0180.00616.49
7.4.210.0040.01216.68
7.4.200.0000.00716.65
7.4.160.0130.00416.68
7.4.150.0070.01017.40
7.4.140.0050.01217.86
7.4.130.0040.01416.42
7.4.120.0120.00916.52
7.4.110.0030.01316.65
7.4.100.0120.00616.69
7.4.90.0070.01716.52
7.4.80.0030.01719.39
7.4.70.0120.00416.51
7.4.60.0070.01016.58
7.4.50.0000.01616.38
7.4.40.0000.01616.60
7.4.30.0060.01116.55
7.4.00.0080.00814.84
7.3.330.0050.00013.43
7.3.320.0000.00613.40
7.3.310.0070.00016.41
7.3.300.0070.00016.36
7.3.290.0070.00016.40
7.3.280.0120.00616.46
7.3.270.0130.00317.40
7.3.260.0110.00516.43
7.3.250.0080.00916.43
7.3.240.0140.00516.40
7.3.230.0030.01316.62
7.3.210.0160.00616.40
7.3.200.0080.00919.39
7.3.190.0100.00616.52
7.3.180.0090.00616.64
7.3.170.0030.01216.41
7.3.160.0090.01316.46
7.2.330.0070.01116.27
7.2.320.0120.00916.71
7.2.310.0130.00316.36
7.2.300.0080.01116.68
7.2.290.0170.00316.74
7.2.60.0030.01216.53
7.2.00.0060.00919.27
7.1.200.0000.01115.76
7.1.100.0050.00318.15
7.1.70.0000.01117.21
7.1.60.0110.01119.20
7.1.50.0090.01216.90
7.1.00.0070.07322.28
7.0.200.0000.00816.88
7.0.60.0000.06321.63
7.0.50.0000.04717.87
7.0.40.0130.07320.21
7.0.30.0270.04020.16
7.0.20.0200.05720.09
7.0.10.0030.04720.30
7.0.00.0070.08720.30
5.6.280.0000.03320.91
5.6.210.0100.07020.55
5.6.200.0100.07718.23
5.6.190.0070.08320.61
5.6.180.0400.08020.49
5.6.170.0300.07720.48
5.6.160.0130.05720.47
5.6.150.0100.03318.19
5.6.140.0030.04718.23
5.6.130.0070.04718.17
5.6.120.0130.04021.01
5.6.110.0170.07321.01
5.6.100.0030.05321.13
5.6.90.0070.08720.95
5.6.80.0000.04320.53
5.5.350.0370.07020.30
5.5.340.0030.08017.99
5.5.330.0130.07320.25
5.5.320.0730.05020.33
5.5.310.0300.05320.27
5.5.300.0130.07017.98
5.5.290.0070.08317.92
5.5.280.0070.04320.98
5.5.270.0000.07320.79
5.5.260.0100.07020.96
5.5.250.0030.04020.64
5.5.240.0100.03020.27

preferences:
49.81 ms | 400 KiB | 5 Q