3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait t { public static $db = 15; public static function dump(){ print_r(array( get_called_class(), __CLASS__, __TRAIT__ )); } }; class foo { // use t; } class bar extends foo { use t; } foo::$db = 10; bar::$db = 5; var_dump(t::$db); //t::dump(); //foo::dump(); //bar::dump();

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.0150.00618.94
8.3.30.0140.00020.34
8.3.20.0070.00020.39
8.3.10.0070.00721.79
8.3.00.0050.00322.52
8.2.170.0130.00722.96
8.2.160.0100.00322.25
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0000.00720.80
8.2.110.0110.00722.04
8.2.100.0080.00417.78
8.2.90.0080.00019.23
8.2.80.0060.00319.21
8.2.70.0000.00817.50
8.2.60.0040.00417.93
8.2.50.0090.00018.07
8.2.40.0030.00618.28
8.2.30.0000.00719.45
8.2.20.0000.00717.60
8.2.10.0000.00717.63
8.2.00.0040.00417.66
8.1.270.0040.01123.99
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0060.00323.91
8.1.230.0090.00319.20
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0030.00617.35
8.1.190.0040.00417.64
8.1.180.0000.00818.10
8.1.170.0080.00018.56
8.1.160.0000.00718.93
8.1.150.0000.00818.66
8.1.140.0000.00717.51
8.1.130.0080.00017.74
8.1.120.0040.00417.47
8.1.110.0050.00317.45
8.1.100.0080.00017.48
8.1.90.0000.00717.47
8.1.80.0070.00017.38
8.1.70.0030.00317.42
8.1.60.0030.00617.56
8.1.50.0080.00017.52
8.1.40.0000.00717.56
8.1.30.0060.00317.59
8.1.20.0040.00417.63
8.1.10.0030.00517.63
8.1.00.0040.00417.41
8.0.300.0040.00418.77
8.0.290.0070.00017.18
8.0.280.0070.00018.36
8.0.270.0040.00417.30
8.0.260.0000.00816.95
8.0.250.0070.00016.96
8.0.240.0090.00017.08
8.0.230.0030.00317.03
8.0.220.0030.00316.98
8.0.210.0070.00016.98
8.0.200.0030.00317.04
8.0.190.0030.00517.03
8.0.180.0050.00217.02
8.0.170.0040.00417.05
8.0.160.0080.00017.01
8.0.150.0000.00716.90
8.0.140.0000.00716.93
8.0.130.0050.00013.29
8.0.120.0030.00516.88
8.0.110.0040.00417.02
8.0.100.0000.00716.91
8.0.90.0000.00717.04
8.0.80.0060.00916.94
8.0.70.0040.00416.92
8.0.60.0000.00716.98
8.0.50.0070.00016.86
8.0.30.0100.00917.21
8.0.20.0130.00517.40
8.0.10.0090.00017.05
8.0.00.0130.00816.72
7.4.330.0030.00314.95
7.4.320.0000.00716.46
7.4.300.0030.00316.56
7.4.290.0040.00416.50
7.4.280.0070.00016.50
7.4.270.0040.00416.58
7.4.260.0030.00313.23
7.4.250.0070.00016.55
7.4.240.0020.00516.49
7.4.230.0000.00716.41
7.4.220.0030.01516.54
7.4.210.0100.00616.61
7.4.200.0000.00816.39
7.4.190.0060.00316.56
7.4.160.0030.01316.43
7.4.150.0030.01317.40
7.4.140.0140.00417.86
7.4.130.0050.01016.49
7.4.120.0090.00816.52
7.4.110.0120.00516.71
7.4.100.0130.00916.55
7.4.90.0130.00316.31
7.4.80.0140.00319.39
7.4.70.0130.00616.46
7.4.60.0070.01016.62
7.4.50.0030.00716.71
7.4.40.0120.00222.77
7.4.30.0060.01116.54
7.4.00.0090.00914.87
7.3.330.0030.00313.14
7.3.320.0000.00513.32
7.3.310.0030.00316.32
7.3.300.0070.00016.18
7.3.290.0100.00316.30
7.3.280.0060.01016.31
7.3.270.0070.01017.40
7.3.260.0070.01016.38
7.3.250.0110.00916.38
7.3.240.0120.00616.29
7.3.230.0080.00816.56
7.3.210.0060.01116.40
7.3.200.0040.01519.39
7.3.190.0110.00716.41
7.3.180.0080.01216.52
7.3.170.0120.00616.45
7.3.160.0070.01016.36
7.3.120.0000.01814.66
7.2.330.0130.00416.52
7.2.320.0130.00316.75
7.2.310.0090.00916.60
7.2.300.0100.01016.67
7.2.290.0100.00716.64
7.2.60.0060.00616.88
7.2.00.0070.00319.50
7.1.200.0060.00915.75
7.1.100.0040.01117.93
7.1.70.0030.00517.20
7.1.60.0030.01319.18
7.1.50.0100.01316.88
7.1.00.0030.03322.56
7.0.200.0000.00816.82
7.0.140.0030.07721.93
7.0.80.0070.08019.96
7.0.70.0000.08319.93
7.0.60.0100.06719.97
7.0.50.0170.07320.24
7.0.40.0170.07320.13
7.0.30.0070.08320.04
7.0.20.0070.05020.05
7.0.10.0130.03320.13
7.0.00.0200.03320.16
5.6.280.0170.06021.12
5.6.230.0200.06720.68
5.6.220.0070.06020.73
5.6.210.0130.07320.57
5.6.200.0070.07021.09
5.6.190.0030.07321.03
5.6.180.0200.06721.14
5.6.170.0200.07021.04
5.6.160.0070.04020.94
5.6.150.0070.04021.05
5.6.140.0070.04021.11
5.6.130.0070.04321.06
5.6.120.0030.04020.94
5.6.110.0000.05321.01
5.6.100.0000.04320.99
5.6.90.0030.04321.04
5.6.80.0100.06020.47
5.6.70.0100.03320.40
5.6.60.0070.03720.33
5.6.50.0000.04320.49
5.6.40.0070.03720.50
5.6.30.0100.04720.48
5.6.20.0030.04320.39
5.6.10.0030.05320.44
5.6.00.0000.07720.30
5.5.370.0070.04720.43
5.5.360.0100.07320.51
5.5.350.0130.08020.43
5.5.340.0130.06020.80
5.5.330.0030.08720.90
5.5.320.0130.07720.82
5.5.310.0070.07320.93
5.5.300.0070.03720.88
5.5.290.0030.04720.86
5.5.280.0070.05720.91
5.5.270.0130.04020.89
5.5.260.0000.04320.92
5.5.250.0070.03720.71
5.5.240.0100.03320.29
5.5.230.0000.03720.18
5.5.220.0030.05720.24
5.5.210.0100.04020.30
5.5.200.0030.04020.15
5.5.190.0000.04020.25
5.5.180.0000.04720.12
5.5.160.0070.03320.28
5.5.150.0000.04020.14
5.5.140.0030.05020.13
5.5.130.0030.04020.27
5.5.120.0030.04020.27
5.5.110.0070.04720.14
5.5.100.0100.03720.11
5.5.90.0030.03320.07
5.5.80.0030.03720.07
5.5.70.0000.03720.04
5.5.60.0030.04720.15
5.5.50.0070.08020.08
5.5.40.0030.04720.05
5.5.30.0030.03320.00
5.5.20.0000.03719.96
5.5.10.0000.04020.04
5.5.00.0030.04020.06
5.4.450.0130.03019.45
5.4.440.0000.04319.52
5.4.430.0070.04019.41
5.4.420.0070.03719.45
5.4.410.0070.03319.43
5.4.400.0130.07018.88
5.4.390.0030.03319.14
5.4.380.0030.03319.14
5.4.370.0000.05019.14
5.4.360.0000.04318.90
5.4.350.0070.05719.07
5.4.340.0070.03019.19
5.4.320.0130.05718.90
5.4.310.0030.04019.05
5.4.300.0100.06319.03
5.4.290.0100.03019.02
5.4.280.0000.04719.18
5.4.270.0030.03319.18
5.4.260.0130.04719.12
5.4.250.0000.04018.87
5.4.240.0130.02719.04
5.4.230.0030.04319.25
5.4.220.0000.04019.09
5.4.210.0000.05019.20
5.4.200.0030.03719.08
5.4.190.0070.02719.20
5.4.180.0000.04019.03
5.4.170.0030.03719.08
5.4.160.0030.06319.01
5.4.150.0100.04319.03
5.4.140.0030.07716.51
5.4.130.0030.07016.48
5.4.120.0100.06316.53
5.4.110.0070.05016.48
5.4.100.0230.05716.46
5.4.90.0130.06716.54
5.4.80.0100.05716.47
5.4.70.0100.06716.55
5.4.60.0000.07016.48
5.4.50.0030.04016.24
5.4.40.0070.06016.46
5.4.30.0070.04316.44
5.4.20.0030.06716.43
5.4.10.0100.07716.29
5.4.00.0100.06715.94
5.3.290.0030.04014.53
5.3.280.0070.03714.56
5.3.270.0030.03714.62
5.3.260.0100.07314.55
5.3.250.0300.04314.46
5.3.240.0000.08014.58
5.3.230.0100.06714.42
5.3.220.0230.06314.55
5.3.210.0000.08314.43
5.3.200.0030.05314.55
5.3.190.0030.07714.43
5.3.180.0030.07714.52
5.3.170.0100.07014.41
5.3.160.0070.08014.52
5.3.150.0030.06714.55
5.3.140.0070.07014.42
5.3.130.0030.08314.46
5.3.120.0070.06714.54
5.3.110.0100.07714.39
5.3.100.0030.07713.99
5.3.90.0070.07313.98
5.3.80.0000.05014.01
5.3.70.0100.03314.01
5.3.60.0000.06713.94
5.3.50.0070.07313.80
5.3.40.0030.08013.89
5.3.30.0070.07013.90
5.3.20.0030.07013.56
5.3.10.0170.06313.63
5.3.00.0100.05713.59
5.2.170.0030.04311.75
5.2.160.0030.06311.75
5.2.150.0100.06011.75
5.2.140.0030.06311.75
5.2.130.0070.05711.75
5.2.120.0070.06311.75
5.2.110.0100.04711.75
5.2.100.0030.04711.75
5.2.90.0000.04711.75
5.2.80.0000.06711.75
5.2.70.0070.06011.75
5.2.60.0000.06711.75
5.2.50.0030.06011.75
5.2.40.0070.06011.75
5.2.30.0070.05711.75
5.2.20.0000.04011.75
5.2.10.0070.06011.75
5.2.00.0000.06011.75
5.1.60.0030.04311.75
5.1.50.0030.04011.75
5.1.40.0030.04011.75
5.1.30.0100.04711.75
5.1.20.0070.05711.75
5.1.10.0000.05011.75
5.1.00.0000.04011.75
5.0.50.0100.03711.75
5.0.40.0030.03711.75
5.0.30.0030.06311.75
5.0.20.0030.04011.75
5.0.10.0030.04311.75
5.0.00.0000.04711.75
4.4.90.0030.02311.75
4.4.80.0070.03011.75
4.4.70.0030.03311.75
4.4.60.0070.03311.75
4.4.50.0000.03711.75
4.4.40.0000.03011.75
4.4.30.0000.03711.75
4.4.20.0000.03711.75
4.4.10.0100.02011.75
4.4.00.0070.05011.75
4.3.110.0000.03711.75
4.3.100.0070.01711.75
4.3.90.0030.02011.75
4.3.80.0000.05011.75
4.3.70.0030.03311.75
4.3.60.0030.03011.75
4.3.50.0070.02311.75
4.3.40.0000.05311.75
4.3.30.0000.02711.75
4.3.20.0000.03711.75
4.3.10.0070.02711.75
4.3.00.0000.03711.75

preferences:
47.02 ms | 400 KiB | 5 Q