3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait Too { function bar() { $a = function () { var_dump(__CLASS__); }; $a(); $a = function () { var_dump(get_class()); }; $a(); if (isset($this)) { $a = function () { var_dump(get_class($this)); }; $a(); } } } class Foo { use Too; } $f = new Foo; echo "Between\n"; $f->bar(); echo "Between\n"; $f::bar(); echo "Between\n"; Foo::bar();

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.70.0040.01116.58
8.3.60.0130.00616.75
8.3.50.0090.01022.92
8.3.40.0030.01518.66
8.3.30.0090.00918.86
8.3.20.0070.00020.35
8.3.10.0040.00423.65
8.3.00.0090.00019.38
8.2.180.0060.01018.29
8.2.170.0070.00722.96
8.2.160.0070.00720.37
8.2.150.0070.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0000.00721.10
8.2.110.0030.00622.08
8.2.100.0080.00418.09
8.2.90.0040.00419.11
8.2.80.0000.00817.97
8.2.70.0090.00017.75
8.2.60.0030.00618.05
8.2.50.0080.00018.07
8.2.40.0040.00418.03
8.2.30.0050.00318.06
8.2.20.0030.00617.73
8.2.10.0040.00418.07
8.2.00.0070.00017.73
8.1.280.0130.00325.92
8.1.270.0040.00423.75
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0080.00022.19
8.1.230.0040.00719.16
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0070.00317.25
8.1.190.0040.00417.35
8.1.180.0030.00618.10
8.1.170.0040.00418.54
8.1.160.0040.00422.02
8.1.150.0040.00418.95
8.1.140.0070.00017.51
8.1.130.0050.00217.74
8.1.120.0000.00717.40
8.1.110.0000.00817.32
8.1.100.0000.00817.41
8.1.90.0040.00417.36
8.1.80.0050.00217.51
8.1.70.0070.00017.41
8.1.60.0000.00817.63
8.1.50.0000.00817.55
8.1.40.0000.00817.41
8.1.30.0040.00417.62
8.1.20.0040.00417.69
8.1.10.0060.00317.63
8.1.00.0030.00617.54
8.0.300.0060.00318.77
8.0.290.0070.00016.88
8.0.280.0030.00518.41
8.0.270.0000.00717.17
8.0.260.0000.00617.15
8.0.250.0000.00717.04
8.0.240.0060.00317.01
8.0.230.0030.00317.02
8.0.220.0030.00316.93
8.0.210.0030.00316.84
8.0.200.0000.00616.94
8.0.190.0000.00716.86
8.0.180.0000.00916.93
8.0.170.0000.00716.91
8.0.160.0040.00416.84
8.0.150.0070.00016.88
8.0.140.0000.00816.82
8.0.130.0030.00313.39
8.0.120.0000.00816.85
8.0.110.0040.00416.85
8.0.100.0040.00416.84
8.0.90.0070.00016.91
8.0.80.0060.00917.02
8.0.70.0050.00316.84
8.0.60.0000.00816.76
8.0.50.0030.00517.02
8.0.30.0100.01417.03
8.0.20.0110.00917.40
8.0.10.0000.00816.97
8.0.00.0110.00816.82
7.4.330.0030.00215.12
7.4.320.0030.00316.65
7.4.300.0070.00016.41
7.4.290.0030.00316.56
7.4.280.0080.00016.64
7.4.270.0030.00516.59
7.4.260.0030.00316.54
7.4.250.0070.00016.57
7.4.240.0030.00316.54
7.4.230.0040.00416.51
7.4.220.0110.00716.55
7.4.210.0130.00616.47
7.4.200.0050.00316.58
7.4.160.0130.01016.55
7.4.150.0150.00217.40
7.4.140.0100.00817.86
7.4.130.0060.01216.59
7.4.120.0120.00716.54
7.4.110.0060.01216.45
7.4.100.0130.00316.60
7.4.90.0090.00916.34
7.4.80.0120.00619.39
7.4.70.0110.00616.51
7.4.60.0100.00716.65
7.4.50.0000.00416.24
7.4.40.0140.00316.44
7.4.30.0060.01116.36
7.4.00.0140.00114.92
7.3.330.0050.00313.33
7.3.320.0060.00013.45
7.3.310.0000.00716.32
7.3.300.0000.00816.44
7.3.290.0140.00016.45
7.3.280.0080.01116.43
7.3.270.0230.00417.40
7.3.260.0090.01016.48
7.3.250.0080.00816.51
7.3.240.0140.00416.40
7.3.230.0080.00816.39
7.3.210.0150.00316.51
7.3.200.0040.01319.39
7.3.190.0120.00916.35
7.3.180.0090.00616.29
7.3.170.0120.00616.53
7.3.160.0130.01016.34
7.3.120.0090.00915.05
7.3.110.0070.00714.45
7.3.100.0090.00614.78
7.3.90.0040.00514.75
7.3.80.0060.00614.71
7.3.70.0070.00714.86
7.3.60.0060.00314.61
7.3.50.0040.01114.67
7.3.40.0030.00914.76
7.3.30.0030.01214.66
7.3.20.0000.00916.77
7.3.10.0070.00716.64
7.3.00.0090.00316.38
7.2.330.0070.01116.77
7.2.320.0200.00316.73
7.2.310.0110.01116.42
7.2.300.0060.01116.64
7.2.290.0120.00616.80
7.2.250.0090.00915.18
7.2.240.0060.01314.96
7.2.230.0110.00414.87
7.2.220.0030.00915.18
7.2.210.0130.00015.23
7.2.200.0040.01115.01
7.2.190.0070.00714.72
7.2.180.0060.00614.76
7.2.170.0100.00314.99
7.2.60.0070.00716.73
7.2.00.0040.00819.68
7.1.330.0040.01115.61
7.1.320.0060.00915.63
7.1.310.0040.00815.91
7.1.300.0080.00415.38
7.1.290.0040.00415.54
7.1.280.0100.00015.84
7.1.270.0030.00915.92
7.1.260.0030.00915.64
7.1.200.0030.00615.98
7.1.100.0030.00718.24
7.1.70.0060.00316.94
7.1.60.0090.01619.40
7.1.50.0140.01017.02
7.1.00.0030.07722.45
7.0.200.0100.00016.78
7.0.140.0000.07721.95
7.0.100.0030.07320.04
7.0.90.0100.07319.94
7.0.80.0130.06719.88
7.0.70.0100.07319.89
7.0.60.0130.07020.07
7.0.50.0030.08720.33
7.0.40.0030.09320.20
7.0.30.0070.08320.04
7.0.20.0130.07320.09
7.0.10.0100.08320.03
7.0.00.0070.08720.10
5.6.280.0070.07021.00
5.6.250.0130.07020.64
5.6.240.0030.08320.64
5.6.230.0030.06020.72
5.6.220.0030.05320.69
5.6.210.0100.07720.68
5.6.200.0100.08021.13
5.6.190.0170.07320.96
5.6.180.0130.08021.14
5.6.170.0100.08321.04
5.6.160.0070.07021.18
5.6.150.0070.04021.04
5.6.140.0000.05320.97
5.6.130.0000.04721.07
5.6.120.0070.04021.15
5.6.110.0030.04321.08
5.6.100.0130.04720.96
5.6.90.0100.03720.96
5.6.80.0100.08320.50
5.6.70.0100.05720.41
5.6.60.0130.05720.33
5.6.50.0030.04020.49
5.6.40.0100.04720.30
5.6.30.0030.06020.40
5.6.20.0070.04020.38
5.6.10.0100.04320.48
5.6.00.0130.05720.44
5.5.380.0100.07320.46
5.5.370.0070.08320.41
5.5.360.0100.08320.50
5.5.350.0000.09020.46
5.5.340.0130.07020.65
5.5.330.0100.07720.93
5.5.320.0230.08020.93
5.5.310.0100.05720.92
5.5.300.0030.04720.91
5.5.290.0130.03320.74
5.5.280.0070.04720.85
5.5.270.0100.04020.86
5.5.260.0000.04720.84
5.5.250.0030.04320.68
5.5.240.0130.07320.18
5.5.230.0030.04020.19
5.5.220.0030.07320.28
5.5.210.0100.07720.28
5.5.200.0070.04720.29
5.5.190.0100.06020.15
5.5.180.0030.04020.23
5.5.160.0100.06020.31
5.5.150.0030.04320.25
5.5.140.0030.05720.27
5.5.130.0070.05720.31
5.5.120.0030.04020.25
5.5.110.0170.07320.09
5.5.100.0030.05320.15
5.5.90.0100.03720.16
5.5.80.0170.05720.06
5.5.70.0000.04319.98
5.5.60.0000.04320.02
5.5.50.0070.04020.15
5.5.40.0000.04020.02
5.5.30.0030.04720.06
5.5.20.0070.04319.95
5.5.10.0100.06720.05
5.5.00.0030.06020.13
5.4.450.0000.04319.37
5.4.440.0070.04019.45
5.4.430.0070.04019.20
5.4.420.0100.05019.45
5.4.410.0170.06019.23
5.4.400.0070.05019.13
5.4.390.0130.05019.18
5.4.380.0070.07019.13
5.4.370.0070.03718.95
5.4.360.0130.05319.04
5.4.350.0100.04719.20
5.4.340.0100.03718.85
5.4.320.0000.06019.21
5.4.310.0130.05019.21
5.4.300.0130.06319.12
5.4.290.0070.06718.95
5.4.280.0100.07019.13
5.4.270.0000.05319.13
5.4.260.0070.06018.95
5.4.250.0030.03719.20
5.4.240.0100.04018.87
5.4.230.0030.07719.04
5.4.220.0100.06719.18
5.4.210.0030.04019.22
5.4.200.0000.05318.88
5.4.190.0070.05318.84
5.4.180.0030.04019.23
5.4.170.0130.07019.11
5.4.160.0100.03019.02
5.4.150.0100.07319.13
5.4.140.0030.06716.28
5.4.130.0000.08016.23
5.4.120.0000.08316.46
5.4.110.0000.07716.54
5.4.100.0130.07016.48
5.4.90.0100.07016.38
5.4.80.0130.07016.39
5.4.70.0170.06716.36
5.4.60.0100.07316.41
5.4.50.0030.08316.47
5.4.40.0030.07716.42
5.4.30.0100.07316.38
5.4.20.0100.06716.41
5.4.10.0130.06716.41
5.4.00.0000.07315.70
5.3.290.0030.04314.64
5.3.280.0000.04014.44
5.3.270.0130.03314.43
5.3.260.0030.06314.60
5.3.250.0030.04714.61
5.3.240.0070.06014.60
5.3.230.0200.07014.59
5.3.220.0030.08314.55
5.3.210.0100.07314.44
5.3.200.0200.05714.41
5.3.190.0070.08014.43
5.3.180.0030.06714.42
5.3.170.0100.06314.57
5.3.160.0130.06314.56
5.3.150.0000.05714.39
5.3.140.0170.06314.40
5.3.130.0100.07014.42
5.3.120.0070.07314.55
5.3.110.0070.07714.55
5.3.100.0070.04714.03
5.3.90.0030.08013.87
5.3.80.0030.07314.00
5.3.70.0000.07713.87
5.3.60.0000.08013.99
5.3.50.0070.04013.90
5.3.40.0030.07713.90
5.3.30.0070.07313.91
5.3.20.0070.06713.70
5.3.10.0030.07313.66
5.3.00.0100.06713.59
5.2.170.0100.05711.68
5.2.160.0100.05311.68
5.2.150.0130.05711.68
5.2.140.0030.04311.68
5.2.130.0070.06011.68
5.2.120.0030.06011.68
5.2.110.0000.06311.68
5.2.100.0100.05311.68
5.2.90.0030.06011.68
5.2.80.0030.06311.68
5.2.70.0030.04711.68
5.2.60.0070.05011.68
5.2.50.0100.05311.68
5.2.40.0030.06311.68
5.2.30.0070.05711.68
5.2.20.0070.06011.68
5.2.10.0100.05011.68
5.2.00.0100.05311.68
5.1.60.0000.05011.68
5.1.50.0070.05011.68
5.1.40.0100.03711.68
5.1.30.0070.05711.68
5.1.20.0030.05311.68
5.1.10.0070.05311.68
5.1.00.0070.04311.68
5.0.50.0030.03311.68
5.0.40.0030.03711.68
5.0.30.0100.05711.68
5.0.20.0070.04011.68
5.0.10.0070.04011.68
5.0.00.0070.05011.68
4.4.90.0070.03011.68
4.4.80.0070.03311.68
4.4.70.0030.03311.68
4.4.60.0030.03311.68
4.4.50.0000.02711.68
4.4.40.0070.05011.68
4.4.30.0000.03011.68
4.4.20.0030.03011.68
4.4.10.0030.03711.68
4.4.00.0000.05711.68
4.3.110.0070.03311.68
4.3.100.0000.03711.68
4.3.90.0030.03311.68
4.3.80.0030.04711.68
4.3.70.0030.03311.68
4.3.60.0000.02711.68
4.3.50.0030.03311.68
4.3.40.0000.05311.68
4.3.30.0000.03711.68
4.3.20.0070.03311.68
4.3.10.0030.03311.68
4.3.00.0000.04011.68

preferences:
49.97 ms | 402 KiB | 5 Q