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 { } foo::$db = 10; bar::$db = 5; var_dump(t::$db); var_dump(foo::$db); var_dump(bar::$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.60.0120.00316.75
8.3.50.0130.00522.02
8.3.40.0110.00718.70
8.3.30.0120.00318.81
8.3.20.0050.00320.34
8.3.10.0070.00023.71
8.3.00.0040.00420.95
8.2.180.0070.01116.38
8.2.170.0120.00322.96
8.2.160.0110.00720.39
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0000.00826.16
8.2.120.0040.00420.82
8.2.110.0030.00722.25
8.2.100.0060.00617.91
8.2.90.0060.00319.21
8.2.80.0000.00817.97
8.2.70.0030.00617.63
8.2.60.0000.00818.04
8.2.50.0060.00318.07
8.2.40.0000.00821.09
8.2.30.0040.00418.31
8.2.20.0000.00717.70
8.2.10.0000.00717.95
8.2.00.0000.00917.74
8.1.280.0100.00725.92
8.1.270.0040.00423.96
8.1.260.0050.00326.35
8.1.250.0050.00328.09
8.1.240.0070.01423.84
8.1.230.0060.00619.07
8.1.220.0050.00317.74
8.1.210.0080.00018.77
8.1.200.0030.00617.23
8.1.190.0060.00617.25
8.1.180.0000.00818.10
8.1.170.0050.00318.59
8.1.160.0040.00422.07
8.1.150.0040.00418.56
8.1.140.0040.00417.46
8.1.130.0070.00017.82
8.1.120.0030.00317.41
8.1.110.0000.00717.49
8.1.100.0040.00417.34
8.1.90.0000.00717.54
8.1.80.0000.00817.50
8.1.70.0000.00817.48
8.1.60.0040.00417.55
8.1.50.0030.00517.51
8.1.40.0040.00417.41
8.1.30.0090.00017.64
8.1.20.0000.00817.56
8.1.10.0080.00017.52
8.1.00.0100.00517.47
8.0.300.0050.00218.77
8.0.290.0070.00017.05
8.0.280.0030.00318.39
8.0.270.0080.00017.31
8.0.260.0000.00817.19
8.0.250.0030.00317.01
8.0.240.0040.00416.96
8.0.230.0040.00416.90
8.0.220.0070.00016.88
8.0.210.0030.00316.91
8.0.200.0070.00016.98
8.0.190.0030.00316.99
8.0.180.0000.00716.95
8.0.170.0090.00016.95
8.0.160.0070.00016.85
8.0.150.0000.00816.89
8.0.140.0070.00016.86
8.0.130.0040.00413.32
8.0.120.0040.00416.84
8.0.110.0070.00016.87
8.0.100.0000.00716.77
8.0.90.0000.00716.96
8.0.80.0080.00716.80
8.0.70.0070.00016.79
8.0.60.0080.00017.02
8.0.50.0030.00516.79
8.0.30.0100.01317.07
8.0.20.0110.00817.40
8.0.10.0000.00717.01
8.0.00.0120.00516.68
7.4.330.0020.00215.00
7.4.320.0070.00016.62
7.4.300.0060.00016.51
7.4.290.0040.00416.58
7.4.280.0090.00016.59
7.4.270.0000.00716.48
7.4.260.0000.00716.51
7.4.250.0050.00216.61
7.4.240.0040.00416.53
7.4.230.0040.00416.68
7.4.220.0120.01316.56
7.4.210.0120.00816.59
7.4.200.0000.00716.54
7.4.190.0030.00316.45
7.4.160.0110.01116.37
7.4.150.0120.00617.40
7.4.140.0080.00917.86
7.4.130.0060.01116.50
7.4.120.0050.01216.55
7.4.110.0060.01116.47
7.4.100.0150.00316.41
7.4.90.0140.00416.45
7.4.80.0130.00319.39
7.4.70.0060.01016.54
7.4.60.0070.01416.52
7.4.50.0000.00616.54
7.4.40.0040.01216.54
7.4.30.0140.00316.35
7.4.00.0100.00715.06
7.3.330.0000.00613.24
7.3.320.0000.00613.00
7.3.310.0040.00416.20
7.3.300.0070.00016.25
7.3.290.0030.01016.24
7.3.280.0080.00916.22
7.3.270.0070.01117.40
7.3.260.0060.01116.25
7.3.250.0100.00816.45
7.3.240.0070.01316.23
7.3.230.0060.01016.46
7.3.210.0080.01116.39
7.3.200.0140.00719.39
7.3.190.0160.00016.32
7.3.180.0060.00916.61
7.3.170.0080.00816.56
7.3.160.0110.01116.21
7.3.120.0070.01114.66
7.3.110.0140.00014.85
7.3.100.0070.00714.77
7.3.90.0100.00314.63
7.3.80.0040.01114.38
7.3.70.0000.01514.46
7.3.60.0040.00814.75
7.3.50.0030.01514.81
7.3.40.0000.01214.73
7.3.30.0040.00814.72
7.3.20.0040.01116.66
7.3.10.0070.00716.70
7.3.00.0160.00016.57
7.2.330.0120.00916.68
7.2.320.0070.01016.34
7.2.310.0120.00816.32
7.2.300.0060.01016.69
7.2.290.0090.01416.32
7.2.240.0030.01514.84
7.2.230.0070.01014.84
7.2.220.0030.01214.78
7.2.210.0000.01214.80
7.2.200.0000.01714.94
7.2.190.0100.00714.74
7.2.180.0090.00614.91
7.2.170.0070.01015.06
7.2.160.0110.00414.73
7.2.150.0040.01116.80
7.2.140.0040.00816.91
7.2.130.0040.01516.79
7.2.120.0070.00716.91
7.2.110.0100.00716.62
7.2.100.0030.00916.66
7.2.90.0070.00716.85
7.2.80.0040.01216.60
7.2.70.0040.01116.66
7.2.60.0050.01016.49
7.2.50.0110.00616.88
7.2.40.0040.00816.97
7.2.30.0090.00616.95
7.2.20.0160.00016.73
7.2.10.0040.00816.84
7.2.00.0070.00718.21
7.1.330.0030.01315.77
7.1.320.0100.00315.79
7.1.310.0080.00815.70
7.1.300.0070.01015.63
7.1.290.0030.01315.69
7.1.280.0030.01415.46
7.1.270.0040.00815.51
7.1.260.0040.00715.67
7.1.250.0030.01215.68
7.1.200.0150.00015.72
7.1.100.0000.01517.55
7.1.70.0040.00416.75
7.1.60.0000.02519.46
7.1.50.0120.00916.95
7.1.00.0130.06722.46
7.0.200.0000.00916.37
7.0.140.0030.07022.07
7.0.100.0130.04719.96
7.0.90.0100.05019.92
7.0.80.0200.07019.83
7.0.70.0230.08319.83
7.0.60.0200.07019.83
7.0.50.0030.05720.25
7.0.40.0130.07720.09
7.0.30.0100.08019.95
7.0.20.0030.09020.03
7.0.10.0130.04319.99
7.0.00.0070.04319.96
5.6.280.0100.06720.89
5.6.250.0030.06720.59
5.6.240.0000.05720.65
5.6.230.0030.06020.45
5.6.220.0100.04020.56
5.6.210.0170.06020.53
5.6.200.0030.08020.99
5.6.190.0070.06320.90
5.6.180.0100.08321.00
5.6.170.0030.09320.95
5.6.160.0100.06720.99
5.6.150.0070.05021.12
5.6.140.0070.06721.00
5.6.130.0070.09020.98
5.6.120.0030.09020.99
5.6.110.0200.06320.90
5.6.100.0100.04720.88
5.6.90.0070.04021.07
5.6.80.0100.07720.29
5.6.70.0100.05320.34
5.6.60.0100.04320.34
5.6.50.0100.07020.27
5.6.40.0130.07020.29
5.6.30.0070.04720.48
5.6.20.0030.04320.32
5.6.10.0030.04020.24
5.6.00.0070.03720.25
5.5.380.0130.05720.40
5.5.370.0130.07720.30
5.5.360.0130.05720.45
5.5.350.0070.08020.32
5.5.340.0070.08020.86
5.5.330.0070.08720.86
5.5.320.0030.05720.88
5.5.310.0070.07320.59
5.5.300.0070.06720.72
5.5.290.0030.05320.86
5.5.280.0130.07720.78
5.5.270.0100.08020.87
5.5.260.0070.08320.75
5.5.250.0130.07320.63
5.5.240.0030.04320.13
5.5.230.0070.04720.18
5.5.220.0000.05020.23
5.5.210.0070.07720.20
5.5.200.0070.04320.16
5.5.190.0130.05720.13
5.5.180.0030.04720.17
5.5.160.0070.03720.10
5.5.150.0100.03320.18
5.5.140.0070.03720.02
5.5.130.0100.03320.09
5.5.120.0000.04320.03
5.5.110.0030.04020.09
5.5.100.0070.03019.90
5.5.90.0100.03020.11
5.5.80.0070.03720.09
5.5.70.0030.04720.02
5.5.60.0100.07320.00
5.5.50.0000.04320.10
5.5.40.0030.08020.04
5.5.30.0030.06319.93
5.5.20.0070.03720.04
5.5.10.0000.04019.88
5.5.00.0170.02719.96
5.4.450.0200.05719.53
5.4.440.0070.05019.18
5.4.430.0000.08319.45
5.4.420.0100.04319.46
5.4.410.0000.08719.23
5.4.400.0070.08019.19
5.4.390.0170.08019.09
5.4.380.0070.07318.85
5.4.370.0000.04719.03
5.4.360.0000.07019.13
5.4.350.0070.06718.90
5.4.340.0030.04019.09
5.4.320.0070.03719.23
5.4.310.0030.03019.18
5.4.300.0030.03719.18
5.4.290.0030.03019.02
5.4.280.0000.03319.18
5.4.270.0030.04019.19
5.4.260.0030.03719.23
5.4.250.0100.03319.14
5.4.240.0030.03718.91
5.4.230.0130.06019.12
5.4.220.0100.03319.09
5.4.210.0070.07319.04
5.4.200.0100.06318.86
5.4.190.0070.03719.02
5.4.180.0130.03319.02
5.4.170.0030.04019.11
5.4.160.0070.03319.02
5.4.150.0100.03319.02
5.4.140.0100.03316.46
5.4.130.0000.04016.45
5.4.120.0070.03316.42
5.4.110.0100.03316.56
5.4.100.0000.04016.54
5.4.90.0000.05316.39
5.4.80.0100.03016.54
5.4.70.0070.03316.53
5.4.60.0030.04016.46
5.4.50.0130.03016.29
5.4.40.0000.04016.50
5.4.30.0030.03716.47
5.4.20.0070.03016.46
5.4.10.0000.04316.45
5.4.00.0030.03715.88
5.3.290.0000.04014.63
5.3.280.0130.05314.54
5.3.270.0000.04314.59
5.3.260.0000.04014.60
5.3.250.0030.04014.47
5.3.240.0000.04014.61
5.3.230.0030.03714.45
5.3.220.0000.04014.48
5.3.210.0030.03714.43
5.3.200.0000.04314.53
5.3.190.0130.02714.40
5.3.180.0000.04014.50
5.3.170.0030.03714.43
5.3.160.0070.03314.53
5.3.150.0000.04314.42
5.3.140.0100.02714.39
5.3.130.0030.03714.39
5.3.120.0070.03314.53
5.3.110.0070.03014.46
5.3.100.0000.04013.90
5.3.90.0030.03713.88
5.3.80.0030.03313.96
5.3.70.0100.04713.96
5.3.60.0070.03313.95
5.3.50.0000.04013.92
5.3.40.0030.03713.72
5.3.30.0000.04013.93
5.3.20.0070.04313.64
5.3.10.0030.03313.53
5.3.00.0030.03713.50
5.2.170.0000.03311.13
5.2.160.0000.03011.16
5.2.150.0000.03310.99
5.2.140.0000.03310.98
5.2.130.0070.02311.02
5.2.120.0030.02710.93
5.2.110.0000.03011.08
5.2.100.0070.03010.93
5.2.90.0030.06010.96
5.2.80.0000.05010.88
5.2.70.0030.03011.04
5.2.60.0070.05011.11
5.2.50.0070.06010.85
5.2.40.0030.06010.98
5.2.30.0070.05010.83
5.2.20.0030.03310.84
5.2.10.0030.03310.80
5.2.00.0070.03310.63
5.1.60.0030.0579.94
5.1.50.0000.02710.04
5.1.40.0070.0209.81
5.1.30.0070.04710.26
5.1.20.0000.06010.22
5.1.10.0030.06010.13
5.1.00.0070.05710.07
5.0.50.0030.0278.63
5.0.40.0100.0338.39
5.0.30.0030.0408.27
5.0.20.0070.0338.19
5.0.10.0000.0208.25
5.0.00.0030.0638.18
4.4.90.0000.0177.46
4.4.80.0030.0377.46
4.4.70.0000.0377.46
4.4.60.0070.0307.46
4.4.50.0070.0307.46
4.4.40.0030.0237.46
4.4.30.0000.0377.46
4.4.20.0000.0377.46
4.4.10.0100.0307.46
4.4.00.0000.0577.46
4.3.110.0000.0337.46
4.3.100.0030.0407.46
4.3.90.0000.0307.46
4.3.80.0030.0407.46
4.3.70.0000.0407.46
4.3.60.0030.0337.46
4.3.50.0070.0137.46
4.3.40.0070.0507.46
4.3.30.0070.0307.46
4.3.20.0000.0177.46
4.3.10.0000.0377.46
4.3.00.0000.0237.46

preferences:
45.12 ms | 401 KiB | 5 Q