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, 'self::foo(): ' . self::qux()); } } class Foo { use Bar; public static $foo = __CLASS__; private static function qux() { return __CLASS__; } } 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.0040.01118.55
8.3.50.0090.00822.00
8.3.40.0000.01418.71
8.3.30.0140.00318.96
8.3.20.0080.00020.16
8.3.10.0040.00423.65
8.3.00.0080.00019.18
8.2.180.0110.00416.61
8.2.170.0140.00622.96
8.2.160.0070.00720.38
8.2.150.0030.00624.18
8.2.140.0090.00024.66
8.2.130.0070.00026.16
8.2.120.0080.00021.04
8.2.110.0030.00620.17
8.2.100.0120.00017.66
8.2.90.0080.00019.09
8.2.80.0000.00917.97
8.2.70.0030.00517.50
8.2.60.0060.00317.80
8.2.50.0000.00918.07
8.2.40.0080.00019.88
8.2.30.0040.00418.06
8.2.20.0040.00717.53
8.2.10.0030.00517.96
8.2.00.0040.00417.52
8.1.280.0090.00625.92
8.1.270.0030.00523.99
8.1.260.0040.00426.35
8.1.250.0060.00328.09
8.1.240.0060.00323.91
8.1.230.0070.00319.22
8.1.220.0030.00517.74
8.1.210.0050.00318.77
8.1.200.0030.00617.35
8.1.190.0040.00417.13
8.1.180.0030.00618.10
8.1.170.0000.00818.46
8.1.160.0000.00722.00
8.1.150.0040.00418.60
8.1.140.0050.00317.49
8.1.130.0040.00417.80
8.1.120.0070.00017.39
8.1.110.0030.00517.34
8.1.100.0070.00017.23
8.1.90.0050.00317.36
8.1.80.0000.00817.36
8.1.70.0040.00417.36
8.1.60.0040.00417.51
8.1.50.0040.00417.47
8.1.40.0060.00317.48
8.1.30.0050.00317.58
8.1.20.0030.00517.59
8.1.10.0040.00417.55
8.1.00.0000.00717.45
8.0.300.0000.00818.77
8.0.290.0060.00316.63
8.0.280.0000.00718.34
8.0.270.0000.00717.24
8.0.260.0030.00317.24
8.0.250.0050.00216.95
8.0.240.0070.00016.79
8.0.230.0020.00516.99
8.0.220.0030.00316.91
8.0.210.0030.00316.94
8.0.200.0000.00716.82
8.0.190.0040.00416.94
8.0.180.0040.00416.90
8.0.170.0000.00816.80
8.0.160.0040.00416.86
8.0.150.0060.00316.88
8.0.140.0030.00516.80
8.0.130.0050.00213.34
8.0.120.0070.00016.88
8.0.110.0000.00716.86
8.0.100.0040.00416.92
8.0.90.0040.00416.76
8.0.80.0150.00616.79
8.0.70.0000.00716.72
8.0.60.0030.00516.71
8.0.50.0000.00816.71
8.0.30.0050.01416.94
8.0.20.0120.00717.40
8.0.10.0000.00716.83
8.0.00.0120.00716.71
7.4.330.0030.00315.00
7.4.320.0000.00616.49
7.4.300.0000.00716.60
7.4.290.0030.00316.50
7.4.280.0000.01116.57
7.4.270.0040.00416.46
7.4.260.0030.00316.64
7.4.250.0080.00016.47
7.4.240.0030.00516.45
7.4.230.0000.00716.57
7.4.220.0030.01616.59
7.4.210.0090.00916.61
7.4.200.0030.00316.61
7.4.190.0080.00016.55
7.4.160.0080.00816.60
7.4.150.0100.00717.40
7.4.140.0100.00717.86
7.4.130.0050.01216.37
7.4.120.0100.00616.45
7.4.110.0060.01516.52
7.4.100.0090.00916.49
7.4.90.0030.01416.39
7.4.80.0030.01319.39
7.4.70.0080.00816.36
7.4.60.0070.01016.48
7.4.50.0040.00416.28
7.4.40.0060.01016.13
7.4.30.0140.00316.57
7.4.00.0060.01014.65
7.3.330.0000.00513.13
7.3.320.0000.00613.37
7.3.310.0040.00416.34
7.3.300.0000.00716.25
7.3.290.0130.00016.29
7.3.280.0050.01016.29
7.3.270.0100.00617.40
7.3.260.0130.00616.66
7.3.250.0090.00816.27
7.3.240.0150.00316.27
7.3.230.0060.01216.41
7.3.210.0060.01216.24
7.3.200.0060.01119.39
7.3.190.0110.01116.28
7.3.180.0120.00816.43
7.3.170.0140.00416.27
7.3.160.0080.00816.53
7.3.120.0080.00814.54
7.3.10.0170.00716.45
7.3.00.0170.00716.23
7.2.330.0120.00916.54
7.2.320.0070.01116.38
7.2.310.0030.01616.67
7.2.300.0050.01316.58
7.2.290.0150.00316.69
7.2.130.0130.00716.27
7.2.120.0120.00616.51
7.2.110.0130.01016.39
7.2.100.0110.00715.93
7.2.90.0160.00916.45
7.2.80.0120.01816.76
7.2.70.0130.00816.61
7.2.60.0130.01316.68
7.2.50.0160.00616.43
7.2.40.0210.00316.58
7.2.30.0110.00816.55
7.2.20.0130.00616.06
7.2.10.0200.00016.48
7.2.00.0120.00217.94
7.1.250.0160.01015.52
7.1.100.0060.00618.02
7.1.70.0020.00517.13
7.1.60.0060.01319.70
7.1.50.0030.01316.72
7.1.00.0070.07022.36
7.0.200.0050.00516.56
7.0.140.0000.08022.00
7.0.60.0030.04019.77
7.0.50.0070.07317.85
7.0.40.0070.04020.27
7.0.30.0270.05720.06
7.0.20.0270.05020.10
7.0.10.0230.04720.16
7.0.00.0170.05020.22
5.6.210.0100.08020.49
5.6.200.0070.06318.19
5.6.190.0070.06320.49
5.6.180.0130.08320.61
5.6.170.0430.07320.71
5.6.160.0100.05020.55
5.6.150.0070.07718.15
5.6.140.0070.06018.28
5.6.130.0170.04018.15
5.6.120.0100.08321.04
5.6.110.0130.08320.96
5.6.100.0270.06021.11
5.6.90.0170.06020.88
5.6.80.0070.08720.37
5.5.350.0070.08020.42
5.5.340.0030.07317.97
5.5.330.0100.04320.39
5.5.320.0470.03020.33
5.5.310.0270.04320.51
5.5.300.0070.04317.98
5.5.290.0030.05017.97
5.5.280.0030.09020.97
5.5.270.0170.07020.73
5.5.260.0170.07720.96
5.5.250.0070.05720.60
5.5.240.0000.06020.23
5.4.450.0230.03719.64
5.4.440.0100.04019.49
5.4.430.0070.04719.39
5.4.420.0100.05319.55
5.4.410.0100.04719.42
5.4.400.0030.03319.00
5.4.390.0130.03019.33
5.4.380.0130.06318.74
5.4.370.0100.06718.69
5.4.360.0130.05318.76
5.4.350.0200.05018.70
5.4.340.0100.05718.78
5.4.320.0100.04812.52
5.4.310.0090.03512.51
5.4.300.0070.03912.52
5.4.290.0070.03912.51
5.4.280.0100.04912.41
5.4.270.0110.04712.41
5.4.260.0080.05012.41
5.4.250.0100.03912.41
5.4.240.0100.03612.41
5.4.230.0080.05112.40
5.4.220.0060.04012.40
5.4.210.0090.03712.40
5.4.200.0090.04312.40
5.4.190.0070.04612.40
5.4.180.0230.07012.40
5.4.170.0140.04512.40
5.4.160.0080.04912.40
5.4.150.0060.04712.40
5.4.140.0160.03412.09
5.4.130.0070.03712.07
5.4.120.0080.03912.04
5.4.110.0080.03912.03
5.4.100.0070.04812.03
5.4.90.0090.04712.03
5.4.80.0090.04512.03
5.4.70.0080.04212.03
5.4.60.0210.07112.03
5.4.50.0060.04312.03
5.4.40.0070.03812.01
5.4.30.0060.04812.01
5.4.20.0110.05612.00
5.4.10.0090.04712.01
5.4.00.0110.04811.50
5.3.290.0050.04112.80
5.3.280.0050.05412.71
5.3.270.0100.07212.72
5.3.260.0070.05612.72
5.3.250.0090.04312.72
5.3.240.0030.04512.72
5.3.230.0050.04112.71
5.3.220.0110.03812.68
5.3.210.0080.04412.68
5.3.200.0100.05312.68
5.3.190.0080.03712.68
5.3.180.0070.03712.68
5.3.170.0090.03712.67
5.3.160.0070.03912.67
5.3.150.0080.03912.68
5.3.140.0070.03812.66
5.3.130.0090.05412.66
5.3.120.0050.05812.66
5.3.110.0070.05812.66
5.3.100.0100.05412.12
5.3.90.0070.04612.08
5.3.80.0070.04012.07
5.3.70.0080.04312.08
5.3.60.0110.05912.07
5.3.50.0060.04412.00
5.3.40.0200.08112.00
5.3.30.0090.03911.95
5.3.20.0030.04211.73
5.3.10.0070.04811.70
5.3.00.0090.04611.68
5.2.170.0090.0319.18
5.2.160.0060.0389.18
5.2.150.0100.0319.18
5.2.140.0060.0399.18
5.2.130.0050.0379.14
5.2.120.0080.0309.14
5.2.110.0100.0309.15
5.2.100.0060.0429.14
5.2.90.0050.0429.14
5.2.80.0150.0549.14
5.2.70.0050.0429.14
5.2.60.0070.0319.09
5.2.50.0080.0319.06
5.2.40.0040.0369.04
5.2.30.0050.0329.02
5.2.20.0060.0329.01
5.2.10.0090.0298.93
5.2.00.0040.0308.78
5.1.60.0030.0268.06
5.1.50.0050.0258.06
5.1.40.0060.0258.05
5.1.30.0050.0318.40
5.1.20.0070.0378.41
5.1.10.0090.0308.14
5.1.00.0060.0358.14
5.0.50.0050.0266.63
5.0.40.0020.0286.48
5.0.30.0040.0376.29
5.0.20.0070.0366.27
5.0.10.0060.0196.24
5.0.00.0050.0356.23
4.4.90.0050.0174.78
4.4.80.0030.0164.75
4.4.70.0050.0274.75
4.4.60.0040.0184.75
4.4.50.0030.0194.77
4.4.40.0030.0304.71
4.4.30.0050.0224.76
4.4.20.0060.0204.84
4.4.10.0020.0244.85
4.4.00.0030.0294.76
4.3.110.0040.0194.67
4.3.100.0030.0224.66
4.3.90.0040.0174.63
4.3.80.0020.0264.58
4.3.70.0030.0194.63
4.3.60.0030.0344.63
4.3.50.0060.0314.63
4.3.40.0060.0344.54
4.3.30.0050.0213.28
4.3.20.0040.0223.26
4.3.10.0040.0213.22
4.3.00.0030.01715.22

preferences:
47.04 ms | 400 KiB | 5 Q