3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace NAME_SPACE; trait Bar { public static function qux() { var_dump(self::class, static::class); return new \ReflectionFunction(function () {}); } } class Foo { use Bar; } var_dump(Foo::qux()->getName()); Bar::qux();

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.0070.01416.58
8.3.60.0100.00716.63
8.3.50.0150.00522.04
8.3.40.0070.00718.73
8.3.30.0160.00019.00
8.3.20.0000.00820.16
8.3.10.0040.00423.56
8.3.00.0060.00318.91
8.2.180.0120.00316.50
8.2.170.0090.00622.96
8.2.160.0030.01020.23
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0090.00920.84
8.2.110.0060.00319.38
8.2.100.0090.00317.91
8.2.90.0030.00619.22
8.2.80.0040.00417.97
8.2.70.0030.00617.38
8.2.60.0000.00817.80
8.2.50.0000.00818.10
8.2.40.0050.00617.96
8.2.30.0060.00318.11
8.2.20.0040.00417.68
8.2.10.0040.00418.07
8.2.00.0020.00517.66
8.1.280.0070.01425.92
8.1.270.0030.00623.87
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0030.00623.79
8.1.230.0090.00317.70
8.1.220.0000.00817.74
8.1.210.0090.00018.77
8.1.200.0000.00917.23
8.1.190.0040.00417.10
8.1.180.0030.00518.10
8.1.170.0000.00818.52
8.1.160.0080.00022.00
8.1.150.0000.00718.49
8.1.140.0040.00417.30
8.1.130.0070.00017.64
8.1.120.0030.00317.33
8.1.110.0040.00417.27
8.1.100.0000.00717.35
8.1.90.0000.00717.41
8.1.80.0070.00017.32
8.1.70.0040.00417.24
8.1.60.0060.00317.38
8.1.50.0040.00417.41
8.1.40.0050.00317.36
8.1.30.0000.00817.49
8.1.20.0000.00717.50
8.1.10.0000.00717.42
8.1.00.0000.00817.50
8.0.300.0000.00718.77
8.0.290.0030.00516.75
8.0.280.0000.00718.49
8.0.270.0030.00317.35
8.0.260.0070.00017.16
8.0.250.0030.00316.97
8.0.240.0060.00016.96
8.0.230.0030.00316.99
8.0.220.0000.00716.91
8.0.210.0030.00316.84
8.0.200.0090.00016.93
8.0.190.0040.00416.91
8.0.180.0040.00716.89
8.0.170.0000.00716.78
8.0.160.0050.00316.94
8.0.150.0040.00416.66
8.0.140.0080.00016.71
8.0.130.0060.00013.28
8.0.120.0050.00316.76
8.0.110.0000.00716.83
8.0.100.0040.00416.93
8.0.90.0040.00416.89
8.0.80.0060.01316.81
8.0.70.0000.00816.71
8.0.60.0030.00516.83
8.0.50.0040.00416.81
8.0.30.0120.00716.88
8.0.20.0160.00517.40
8.0.10.0040.00416.96
8.0.00.0100.01316.62
7.4.330.0060.00015.00
7.4.320.0040.00416.48
7.4.300.0030.00316.51
7.4.290.0030.00316.44
7.4.280.0000.00716.40
7.4.270.0000.00716.53
7.4.260.0030.00316.54
7.4.250.0040.00416.46
7.4.240.0000.00716.39
7.4.230.0030.00316.47
7.4.220.0130.00716.54
7.4.210.0100.00716.55
7.4.200.0070.00016.55
7.4.190.0030.00316.70
7.4.160.0110.00616.53
7.4.150.0110.00517.40
7.4.140.0090.00817.86
7.4.130.0150.00316.39
7.4.120.0070.01016.54
7.4.110.0110.00716.56
7.4.100.0070.01016.45
7.4.90.0100.00716.40
7.4.80.0120.01219.39
7.4.70.0150.00016.54
7.4.60.0150.00616.41
7.4.50.0030.00316.53
7.4.40.0060.01016.57
7.4.30.0100.01316.40
7.4.00.0100.00614.78
7.3.330.0050.00313.17
7.3.320.0000.00613.15
7.3.310.0000.00816.29
7.3.300.0040.00416.22
7.3.290.0060.00716.36
7.3.280.0080.00816.31
7.3.270.0120.00617.40
7.3.260.0170.00816.34
7.3.250.0170.00516.42
7.3.240.0100.01016.29
7.3.230.0170.00316.39
7.3.210.0090.01216.38
7.3.200.0060.01019.39
7.3.190.0060.01216.48
7.3.180.0000.01616.21
7.3.170.0140.00716.54
7.3.160.0070.00916.39
7.3.120.0000.01714.81
7.2.330.0120.00616.77
7.2.320.0060.01216.42
7.2.310.0100.00716.43
7.2.300.0060.01216.75
7.2.290.0130.01016.73
7.2.00.0030.00819.55
7.1.100.0110.00418.22
7.1.70.0070.00317.18
7.1.60.0060.01919.70
7.1.50.0090.00916.86
7.1.00.0030.07722.31
7.0.200.0000.00816.88
7.0.140.0000.07722.08
7.0.60.0130.04720.04
7.0.50.0000.05717.96
7.0.40.0130.05720.14
7.0.30.0300.03720.19
7.0.20.0200.04320.30
7.0.10.0100.05320.30
7.0.00.0000.05020.07
5.6.280.0030.07321.01
5.6.210.0100.08020.55
5.6.200.0100.06718.20
5.6.190.0030.08020.48
5.6.180.0400.05320.45
5.6.170.0170.05020.46
5.6.160.0100.08020.55
5.6.150.0000.06718.14
5.6.140.0070.04718.14
5.6.130.0070.05718.29
5.6.120.0100.07721.03
5.6.110.0170.07320.98
5.6.100.0070.06321.03
5.6.90.0100.06021.04
5.6.80.0130.03020.52
5.5.350.0000.08020.34
5.5.340.0130.04718.05
5.5.330.0100.06020.38
5.5.320.0430.07020.29
5.5.310.0370.05720.36
5.5.300.0030.08317.95
5.5.290.0030.05017.96
5.5.280.0130.07320.69
5.5.270.0100.08020.73
5.5.260.0070.08020.87
5.5.250.0100.06720.47
5.5.240.0230.04020.29
5.4.450.0330.04019.57
5.4.440.0300.04319.52
5.4.430.0570.04319.50
5.4.420.0270.04319.52
5.4.410.0130.04019.42
5.4.400.0130.03718.96
5.4.390.0400.05319.09
5.4.380.0270.05718.46
5.4.370.0600.06318.55
5.4.360.0300.05018.56
5.4.350.0370.05318.79
5.4.340.0270.05718.76
5.4.320.0070.03512.51
5.4.310.0070.03512.51
5.4.300.0070.04612.52
5.4.290.0110.06212.52
5.4.280.0090.04512.41
5.4.270.0120.06412.41
5.4.260.0120.04812.41
5.4.250.0080.05312.41
5.4.240.0150.04112.41
5.4.230.0120.04412.40
5.4.220.0110.04412.40
5.4.210.0090.04112.40
5.4.200.0100.04412.40
5.4.190.0050.04512.39
5.4.180.0080.03912.39
5.4.170.0090.04712.41
5.4.160.0140.04412.40
5.4.150.0160.04912.39
5.4.140.0110.05412.09
5.4.130.0090.05112.07
5.4.120.0090.05412.04
5.4.110.0100.05112.03
5.4.100.0070.05012.03
5.4.90.0170.05112.03
5.4.80.0130.05212.03
5.4.70.0060.05512.03
5.4.60.0110.05412.03
5.4.50.0130.05112.03
5.4.40.0100.05212.02
5.4.30.0120.04912.01
5.4.20.0080.04412.01
5.4.10.0080.04712.01
5.4.00.0110.03711.50
5.3.290.0060.04012.80
5.3.280.0050.05112.71
5.3.270.0050.05912.72
5.3.260.0040.05512.72
5.3.250.0070.05312.72
5.3.240.0070.05412.72
5.3.230.0100.05112.71
5.3.220.0070.05612.68
5.3.210.0150.04712.68
5.3.200.0070.06712.68
5.3.190.0110.04812.67
5.3.180.0110.05112.68
5.3.170.0070.05512.67
5.3.160.0140.05012.68
5.3.150.0090.05512.67
5.3.140.0120.05112.66
5.3.130.0110.05612.66
5.3.120.0140.05212.65
5.3.110.0130.05112.66
5.3.100.0120.05012.12
5.3.90.0110.05012.08
5.3.80.0100.04812.07
5.3.70.0090.05112.07
5.3.60.0150.04612.07
5.3.50.0090.04812.00
5.3.40.0080.04912.00
5.3.30.0080.04911.95
5.3.20.0080.04711.72
5.3.10.0140.04411.70
5.3.00.0090.04811.68
5.2.170.0090.0459.18
5.2.160.0100.0799.18
5.2.150.0190.0719.18
5.2.140.0120.0449.18
5.2.130.0370.0579.14
5.2.120.0090.0439.14
5.2.110.0060.0389.14
5.2.100.0060.0409.14
5.2.90.0090.0399.14
5.2.80.0120.0729.14
5.2.70.0270.0969.14
5.2.60.0060.0439.09
5.2.50.0090.0419.06
5.2.40.0100.0369.03
5.2.30.0050.0449.01
5.2.20.0090.0379.00
5.2.10.0070.0348.92
5.2.00.0070.0408.78
5.1.60.0060.0308.07
5.1.50.0070.0318.06
5.1.40.0050.0338.05
5.1.30.0090.0348.40
5.1.20.0070.0368.42
5.1.10.0080.0338.14
5.1.00.0050.0368.14
5.0.50.0030.0296.62
5.0.40.0040.0236.47
5.0.30.0030.0396.29
5.0.20.0030.0256.27
5.0.10.0040.0266.24
5.0.00.0070.0396.23
4.4.90.0040.0234.78
4.4.80.0020.0494.76
4.4.70.0130.0424.75
4.4.60.0070.0204.75
4.4.50.0070.0384.77
4.4.40.0030.0324.71
4.4.30.0030.0214.76
4.4.20.0050.0204.85
4.4.10.0070.0184.85
4.4.00.0050.0284.76
4.3.110.0030.0254.66
4.3.100.0030.0204.67
4.3.90.0030.0204.63
4.3.80.0050.0264.58
4.3.70.0020.0184.63
4.3.60.0050.0194.63
4.3.50.0020.0194.63
4.3.40.0040.0264.54
4.3.30.0020.0193.29
4.3.20.0040.0183.26
4.3.10.0020.0193.22
4.3.00.0030.01716.93

preferences:
52.5 ms | 401 KiB | 5 Q