3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait Bar { public static function dump() { var_dump('__CLASS__: ' . __CLASS__, 'self::class: ' . self::class, 'static::class: ' . static::class); } } class Foo { use Bar; } Foo::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.0130.00318.43
8.3.50.0090.00821.85
8.3.40.0000.01418.57
8.3.30.0030.01219.04
8.3.20.0030.00620.34
8.3.10.0030.00523.65
8.3.00.0080.00020.79
8.2.180.0100.01016.38
8.2.170.0110.00422.96
8.2.160.0070.00720.35
8.2.150.0050.00224.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0080.00020.80
8.2.110.0110.00019.95
8.2.100.0040.00717.63
8.2.90.0040.00419.17
8.2.80.0030.00517.97
8.2.70.0080.00417.25
8.2.60.0000.01117.93
8.2.50.0000.00918.07
8.2.40.0040.00421.18
8.2.30.0080.00018.09
8.2.20.0030.00617.49
8.2.10.0070.00017.86
8.2.00.0040.00417.60
8.1.280.0040.01425.92
8.1.270.0060.00323.77
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0060.00324.01
8.1.230.0090.00320.88
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0040.00417.35
8.1.190.0000.00817.23
8.1.180.0050.00318.10
8.1.170.0000.00818.46
8.1.160.0040.00421.94
8.1.150.0000.00718.49
8.1.140.0040.00717.43
8.1.130.0050.00317.72
8.1.120.0000.00717.41
8.1.110.0040.00417.30
8.1.100.0000.00817.37
8.1.90.0000.00717.27
8.1.80.0000.00717.28
8.1.70.0000.00817.40
8.1.60.0040.00417.52
8.1.50.0040.00417.51
8.1.40.0060.00317.43
8.1.30.0040.00417.52
8.1.20.0000.00817.47
8.1.10.0080.00017.39
8.1.00.0000.00817.48
8.0.300.0040.00418.77
8.0.290.0000.00717.16
8.0.280.0000.00818.56
8.0.270.0030.00317.13
8.0.260.0060.00017.17
8.0.250.0000.00716.84
8.0.240.0000.00616.81
8.0.230.0030.00316.81
8.0.220.0080.00016.88
8.0.210.0000.00716.77
8.0.200.0030.00316.94
8.0.190.0040.00416.93
8.0.180.0000.00716.89
8.0.170.0050.00316.89
8.0.160.0040.00416.89
8.0.150.0000.00816.71
8.0.140.0000.00716.76
8.0.130.0050.00013.25
8.0.120.0050.00316.69
8.0.110.0030.00516.84
8.0.100.0000.00716.66
8.0.90.0040.00416.84
8.0.80.0120.00916.81
8.0.70.0040.00416.84
8.0.60.0040.00416.88
8.0.50.0020.00516.93
8.0.30.0050.01416.96
8.0.20.0070.01317.40
8.0.10.0030.00416.96
8.0.00.0020.01616.75
7.4.330.0050.00015.09
7.4.320.0000.00616.57
7.4.300.0030.00616.56
7.4.290.0040.00416.39
7.4.280.0070.00416.51
7.4.270.0000.00716.43
7.4.260.0000.01016.48
7.4.250.0070.00016.34
7.4.240.0070.00016.49
7.4.230.0000.00716.32
7.4.220.0030.01616.54
7.4.210.0030.01116.39
7.4.200.0000.00716.53
7.4.190.0000.00716.46
7.4.160.0110.00516.44
7.4.150.0140.01017.40
7.4.140.0100.00817.86
7.4.130.0110.00916.45
7.4.120.0080.00816.43
7.4.110.0090.01516.37
7.4.100.0110.00616.45
7.4.90.0100.00716.50
7.4.80.0160.00019.39
7.4.70.0040.01216.47
7.4.60.0160.00016.30
7.4.50.0040.00416.55
7.4.40.0120.00616.14
7.4.30.0110.00516.41
7.4.00.0030.01314.97
7.3.330.0030.00313.25
7.3.320.0020.00213.28
7.3.310.0090.00016.11
7.3.300.0070.00016.30
7.3.290.0080.00516.24
7.3.280.0080.01116.29
7.3.270.0120.00617.40
7.3.260.0100.01316.14
7.3.250.0120.00516.46
7.3.240.0110.00616.31
7.3.230.0030.02116.39
7.3.210.0090.00916.50
7.3.200.0150.00919.39
7.3.190.0120.00616.50
7.3.180.0070.01416.36
7.3.170.0120.00516.38
7.3.160.0070.01016.60
7.3.120.0090.00814.90
7.3.110.0070.01014.63
7.3.100.0060.00814.87
7.3.90.0030.01214.93
7.3.80.0060.00514.95
7.3.70.0040.00614.76
7.3.60.0050.00814.71
7.3.50.0050.01014.67
7.3.40.0070.00814.61
7.3.30.0050.00614.63
7.3.20.0070.00516.64
7.3.10.0060.00716.38
7.3.00.0070.00816.35
7.2.330.0100.01716.46
7.2.320.0090.01216.40
7.2.310.0100.00716.50
7.2.300.0120.00316.59
7.2.290.0030.01916.27
7.2.250.0080.00814.94
7.2.240.0070.01214.97
7.2.230.0070.00815.14
7.2.220.0030.01115.03
7.2.210.0020.01114.90
7.2.200.0070.00214.92
7.2.190.0060.00714.91
7.2.180.0080.00415.04
7.2.170.0030.01014.86
7.2.60.0030.01316.82
7.2.00.0030.00619.31
7.1.330.0060.00615.61
7.1.320.0070.00315.73
7.1.310.0030.00815.83
7.1.300.0040.00715.52
7.1.290.0090.00415.45
7.1.280.0040.00715.60
7.1.270.0050.00915.75
7.1.260.0050.01015.79
7.1.200.0100.00315.63
7.1.100.0110.00018.01
7.1.70.0000.01316.87
7.1.60.0090.00319.70
7.1.50.0070.01416.49
7.1.00.0070.07322.41
7.0.200.0200.00416.40
7.0.140.0030.07322.04
7.0.60.0070.07319.87
7.0.50.0070.08017.90
7.0.40.0130.06720.02
7.0.30.0130.04320.23
7.0.20.0400.06720.08
7.0.10.0070.04020.21
7.0.00.0100.04720.19
5.6.280.0100.06721.12
5.6.210.0030.05020.44
5.6.200.0100.07718.14
5.6.190.0000.04720.55
5.6.180.0200.07320.65
5.6.170.0300.04720.52
5.6.160.0070.07720.54
5.6.150.0030.08718.16
5.6.140.0130.07318.22
5.6.130.0100.07718.28
5.6.120.0030.05321.13
5.6.110.0130.06320.88
5.6.100.0130.08021.13
5.6.90.0100.07021.10
5.6.80.0000.04320.51
5.5.350.0030.07020.49
5.5.340.0030.08318.02
5.5.330.0130.04720.43
5.5.320.0070.04720.37
5.5.310.0230.07720.23
5.5.300.0070.06018.02
5.5.290.0030.04318.08
5.5.280.0130.08020.80
5.5.270.0070.04320.73
5.5.260.0030.07020.88
5.5.250.0030.06320.68
5.5.240.3970.03320.27
5.4.450.0130.05019.48
5.4.440.0230.03319.39
5.4.430.0200.04019.64
5.4.420.0130.03719.27
5.4.410.0130.04319.42
5.4.400.0070.04019.04
5.4.390.0100.04719.31
5.4.380.0200.05018.56
5.4.370.0030.06318.58
5.4.360.0100.06018.46
5.4.350.0200.05718.80
5.4.340.0230.06318.84
5.4.320.0060.03612.52
5.4.310.0060.04312.51
5.4.300.0070.03712.52
5.4.290.0210.04312.51
5.4.280.0090.04212.41
5.4.270.0100.03512.41
5.4.260.0050.03912.41
5.4.250.0080.03812.41
5.4.240.0080.03712.41
5.4.230.0100.03712.40
5.4.220.0110.03212.40
5.4.210.0080.03412.40
5.4.200.0110.05212.40
5.4.190.0210.07112.39
5.4.180.0120.06012.40
5.4.170.0080.04112.41
5.4.160.0060.03712.40
5.4.150.0080.03712.40
5.4.140.0070.04412.09
5.4.130.0090.04012.07
5.4.120.0110.04012.03
5.4.110.0100.04612.03
5.4.100.0060.04112.03
5.4.90.0070.03812.03
5.4.80.0060.03812.03
5.4.70.0050.03812.02
5.4.60.0110.03312.03
5.4.50.0080.04012.02
5.4.40.0080.05212.01
5.4.30.0070.05012.01
5.4.20.0090.05712.01
5.4.10.0070.04512.01
5.4.00.0090.04211.50
5.3.290.0070.03912.80
5.3.280.0130.05412.71
5.3.270.0080.04112.72
5.3.260.0050.04212.72
5.3.250.0070.03712.72
5.3.240.0060.04012.72
5.3.230.0100.03812.71
5.3.220.0050.03912.68
5.3.210.0100.04712.68
5.3.200.0070.04612.68
5.3.190.0060.03912.68
5.3.180.0060.03812.67
5.3.170.0040.03812.67
5.3.160.0040.03812.67
5.3.150.0080.03512.67
5.3.140.0100.03212.66
5.3.130.0070.03812.66
5.3.120.0120.05212.65
5.3.110.0070.04912.66
5.3.100.0090.04712.12
5.3.90.0060.04512.08
5.3.80.0060.03712.07
5.3.70.0050.04112.07
5.3.60.0110.03412.06
5.3.50.0060.03812.00
5.3.40.0060.04312.00
5.3.30.0090.04911.95
5.3.20.0100.04311.73
5.3.10.0080.04311.70
5.3.00.0110.05011.68
5.2.170.0060.0469.18
5.2.160.0080.0449.18
5.2.150.0140.0629.18
5.2.140.0070.0559.18
5.2.130.0090.0439.14
5.2.120.0040.0419.14
5.2.110.0050.0479.15
5.2.100.0070.0459.14
5.2.90.0100.0469.14
5.2.80.0050.0399.14
5.2.70.0070.0309.14
5.2.60.0090.0299.09
5.2.50.0090.0419.06
5.2.40.0050.0299.03
5.2.30.0010.0339.01
5.2.20.0060.0279.00
5.2.10.0060.0288.93
5.2.00.0050.0338.78
5.1.60.0020.0258.07
5.1.50.0050.0248.06
5.1.40.0040.0248.04
5.1.30.0040.0268.40
5.1.20.0070.0248.42
5.1.10.0070.0288.14
5.1.00.0050.0308.14
5.0.50.0050.0196.62
5.0.40.0050.0216.48
5.0.30.0040.0336.29
5.0.20.0040.0206.27
5.0.10.0050.0196.24
5.0.00.0030.0316.23
4.4.90.0020.0174.78
4.4.80.0010.0174.75
4.4.70.0030.0184.76
4.4.60.0050.0194.75
4.4.50.0040.0214.77
4.4.40.0010.0304.71
4.4.30.0020.0174.76
4.4.20.0030.0154.84
4.4.10.0030.0154.85
4.4.00.0020.0254.76
4.3.110.0030.0154.66
4.3.100.0040.0134.66
4.3.90.0000.0174.64
4.3.80.0030.0244.59
4.3.70.0030.0144.63
4.3.60.0020.0174.63
4.3.50.0020.0174.62
4.3.40.0030.0244.54
4.3.30.0040.0173.29
4.3.20.0020.0183.26
4.3.10.0020.0183.22
4.3.00.0070.01751.93

preferences:
41.97 ms | 401 KiB | 5 Q