3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait foo { static $bar = []; public static function a() { static::$bar = ["foo"]; echo "Goodbye Moon"; } } class bing { use foo; static $bar = []; public static function a() { foo::a(); var_dump(static::$bar, foo::$bar); } } bing::a();

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.0140.00316.88
8.3.50.0110.01021.16
8.3.40.0090.00618.66
8.3.30.0030.01418.81
8.3.20.0070.00020.29
8.3.10.0000.00723.55
8.3.00.0080.00022.54
8.2.180.0060.01016.88
8.2.170.0070.00722.96
8.2.160.0070.00721.93
8.2.150.0090.00024.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0030.00617.75
8.2.110.0030.00620.91
8.2.100.0080.00417.50
8.2.90.0000.00819.22
8.2.80.0040.00417.97
8.2.70.0000.00817.63
8.2.60.0050.00317.80
8.2.50.0080.00018.07
8.2.40.0030.00621.01
8.2.30.0000.00719.85
8.2.20.0040.00417.56
8.2.10.0000.00818.05
8.2.00.0000.00718.05
8.1.280.0070.00725.92
8.1.270.0080.00020.24
8.1.260.0000.00826.35
8.1.250.0000.00828.09
8.1.240.0060.00323.97
8.1.230.0090.00317.79
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0030.00617.25
8.1.190.0040.00417.25
8.1.180.0000.00818.10
8.1.170.0000.00818.58
8.1.160.0050.00323.80
8.1.150.0000.00718.91
8.1.140.0030.00517.45
8.1.130.0030.00317.64
8.1.120.0000.00717.45
8.1.110.0000.01017.33
8.1.100.0000.00717.39
8.1.90.0070.00317.38
8.1.80.0040.00417.51
8.1.70.0000.00817.45
8.1.60.0050.00517.48
8.1.50.0040.00417.54
8.1.40.0000.00817.52
8.1.30.0000.00817.56
8.1.20.0040.00517.64
8.1.10.0040.00417.65
8.1.00.0040.00417.48
8.0.300.0040.00418.77
8.0.290.0080.00016.88
8.0.280.0040.00418.45
8.0.270.0070.00017.22
8.0.260.0040.00417.17
8.0.250.0040.00416.90
8.0.240.0030.00316.92
8.0.230.0030.00316.89
8.0.220.0000.00716.75
8.0.210.0030.00516.91
8.0.200.0000.00616.82
8.0.190.0070.00017.00
8.0.180.0000.00716.90
8.0.170.0040.00416.90
8.0.160.0000.00716.80
8.0.150.0050.00216.92
8.0.140.0040.00816.75
8.0.130.0000.00613.40
8.0.120.0080.00016.92
8.0.110.0050.00316.91
8.0.100.0050.00216.96
8.0.90.0030.00516.91
8.0.80.0040.01116.86
8.0.70.0040.00416.84
8.0.60.0030.00516.86
8.0.50.0020.00516.75
8.0.30.0090.00717.14
8.0.20.0110.00817.40
8.0.10.0080.00017.09
8.0.00.0090.00816.60
7.4.330.0060.00015.20
7.4.320.0070.00016.59
7.4.300.0040.00416.66
7.4.290.0080.00016.52
7.4.280.0000.00716.39
7.4.270.0000.00716.61
7.4.260.0000.00716.48
7.4.250.0050.00216.36
7.4.240.0020.00516.55
7.4.230.0000.00716.45
7.4.220.0110.00716.53
7.4.210.0090.00616.45
7.4.200.0070.00016.34
7.4.160.0090.00616.52
7.4.150.0110.00717.40
7.4.140.0110.01417.86
7.4.130.0090.00916.52
7.4.120.0090.01016.51
7.4.110.0030.01416.61
7.4.100.0100.01016.68
7.4.90.0120.00816.41
7.4.80.0090.00919.39
7.4.70.0130.00316.63
7.4.60.0130.00316.43
7.4.50.0080.00016.43
7.4.40.0060.01116.38
7.4.30.0180.00516.60
7.4.00.0050.01114.96
7.3.330.0030.00313.28
7.3.320.0050.00013.26
7.3.310.0030.00316.32
7.3.300.0000.00716.32
7.3.290.0070.00916.29
7.3.280.0120.00816.35
7.3.270.0030.01417.40
7.3.260.0000.02316.45
7.3.250.0100.00816.27
7.3.240.0190.00316.52
7.3.230.0230.00016.39
7.3.210.0130.00316.38
7.3.200.0100.00716.54
7.3.190.0100.00616.27
7.3.180.0060.00916.43
7.3.170.0080.01316.39
7.3.160.0150.00516.25
7.3.120.0110.00714.99
7.3.110.0060.00815.03
7.3.100.0000.00914.63
7.3.90.0070.00714.66
7.3.80.0040.01114.75
7.3.70.0040.01514.74
7.3.60.0000.01114.66
7.3.50.0060.00314.48
7.3.40.0070.00714.83
7.3.30.0040.00814.54
7.3.20.0100.00316.73
7.3.10.0030.01016.35
7.3.00.0050.00516.74
7.2.330.0110.00616.64
7.2.320.0030.01316.45
7.2.310.0120.00916.73
7.2.300.0120.00416.74
7.2.290.0100.00716.70
7.2.250.0000.02014.67
7.2.240.0070.01415.22
7.2.230.0110.00315.22
7.2.220.0070.01115.17
7.2.210.0120.00315.10
7.2.200.0070.00714.99
7.2.190.0040.00815.04
7.2.180.0030.01015.00
7.2.170.0000.01014.94
7.2.130.0070.00716.64
7.2.120.0030.01016.84
7.2.110.0060.00616.92
7.2.100.0000.01416.95
7.2.90.0090.00316.81
7.2.80.0040.00816.93
7.2.70.0060.00616.90
7.2.60.0040.00816.69
7.2.50.0070.00816.85
7.2.40.0030.00916.57
7.2.30.0060.00616.48
7.2.20.0000.01116.87
7.2.10.0000.00816.86
7.2.00.0030.01018.00
7.1.330.0080.00815.84
7.1.320.0030.01015.76
7.1.310.0090.00615.96
7.1.300.0060.00915.41
7.1.290.0030.01015.70
7.1.280.0070.00715.70
7.1.270.0030.01015.73
7.1.260.0040.00415.51
7.1.250.0060.00315.54
7.1.200.0100.00315.57
7.1.100.0040.01118.20
7.1.70.0000.00717.10
7.1.60.0090.01619.18
7.1.50.0070.01716.88
7.1.00.0100.07022.51
7.0.200.0080.00416.75
7.0.60.0070.07019.91
7.0.50.0070.07017.85
7.0.40.0130.08319.96
7.0.30.0400.08720.11
7.0.20.0330.06320.15
7.0.10.0070.06020.10
7.0.00.0030.06020.09
5.6.280.0000.06720.87
5.6.210.0070.06720.55
5.6.200.0070.04018.16
5.6.190.0030.07020.47
5.6.180.3600.03720.50
5.6.170.0270.07720.55
5.6.160.0030.04020.62
5.6.150.0000.04018.18
5.6.140.0000.06718.28
5.6.130.0030.08718.23
5.6.120.0030.04320.87
5.6.110.0130.06721.05
5.6.100.0300.05721.02
5.6.90.0130.08021.10
5.6.80.0030.07320.44
5.6.70.3370.04320.43
5.5.350.0100.08020.41
5.5.340.0000.04717.95
5.5.330.0170.07720.40
5.5.320.0330.07020.34
5.5.310.0200.08020.30
5.5.300.0130.07317.94
5.5.290.0070.08317.98
5.5.280.0030.04720.87
5.5.270.0030.06020.80
5.5.260.0000.04320.77
5.5.250.0030.04320.62
5.5.240.0270.07320.27
5.4.450.0730.05719.36
5.4.440.1070.05019.70
5.4.430.1000.05319.47
5.4.420.1100.06719.61
5.4.410.0670.07019.21
5.4.400.0800.05719.16
5.4.390.0930.07719.39
5.4.380.0900.05719.26
5.4.370.1070.06019.16
5.4.360.0800.06319.26
5.4.350.0770.05719.14
5.4.340.0900.04719.11
5.4.320.0670.05018.84
5.4.310.0730.05319.37
5.4.300.0800.05719.26
5.4.290.0530.07019.22
5.4.280.0500.07019.01
5.4.270.1170.05318.83
5.4.260.1000.04719.01
5.4.250.0830.05019.01
5.4.240.0770.05719.07
5.4.230.0870.05719.14
5.4.220.0770.06719.01
5.4.210.0870.05718.97
5.4.200.0930.04316.96
5.4.190.0770.04719.09
5.4.180.0730.05719.02
5.4.170.0730.06719.14
5.4.160.0930.05319.24
5.4.150.1100.05019.15
5.4.140.0870.06716.56
5.4.130.1000.03316.33
5.4.120.0700.05316.43
5.4.110.0930.05016.30
5.4.100.0870.06716.55
5.4.90.0930.05716.31
5.4.80.0670.06316.31
5.4.70.0100.05016.48
5.4.60.0300.03716.38
5.4.50.0000.08016.43
5.4.40.0230.03316.51
5.4.30.0000.03716.53
5.4.20.0330.03316.45

preferences:
54.61 ms | 401 KiB | 5 Q