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(): ' . Foo::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.0110.00418.18
8.3.50.0080.00922.13
8.3.40.0170.00318.75
8.3.30.0110.00418.92
8.3.20.0040.00420.29
8.3.10.0040.00423.52
8.3.00.0040.00419.16
8.2.180.0070.01116.38
8.2.170.0070.00722.96
8.2.160.0100.00320.46
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0030.00720.91
8.2.110.0090.00020.40
8.2.100.0120.00017.53
8.2.90.0060.00619.05
8.2.80.0080.00017.97
8.2.70.0080.00017.50
8.2.60.0080.00017.80
8.2.50.0080.00018.07
8.2.40.0000.00819.95
8.2.30.0040.00418.30
8.2.20.0090.00017.59
8.2.10.0040.00418.01
8.2.00.0040.00417.68
8.1.280.0070.00725.92
8.1.270.0040.00423.84
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0100.01023.84
8.1.230.0030.00920.97
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0070.00317.23
8.1.190.0000.00817.23
8.1.180.0000.00818.10
8.1.170.0030.00618.48
8.1.160.0040.00421.94
8.1.150.0040.00418.49
8.1.140.0040.00417.38
8.1.130.0040.00417.85
8.1.120.0070.00017.32
8.1.110.0070.00017.38
8.1.100.0030.00317.44
8.1.90.0070.00017.30
8.1.80.0040.00417.36
8.1.70.0050.00517.30
8.1.60.0030.00617.54
8.1.50.0030.00517.46
8.1.40.0000.00717.45
8.1.30.0000.00717.55
8.1.20.0000.00717.59
8.1.10.0040.00417.41
8.1.00.0000.00817.41
8.0.300.0040.00418.77
8.0.290.0070.00016.63
8.0.280.0030.00318.45
8.0.270.0030.00317.24
8.0.260.0060.00017.36
8.0.250.0000.00716.84
8.0.240.0070.00016.85
8.0.230.0030.00516.98
8.0.220.0000.00716.77
8.0.210.0050.00216.80
8.0.200.0050.00216.97
8.0.190.0040.00416.96
8.0.180.0070.00016.96
8.0.170.0050.00316.83
8.0.160.0030.00316.84
8.0.150.0030.00516.76
8.0.140.0000.00716.68
8.0.130.0030.00313.20
8.0.120.0040.00416.73
8.0.110.0000.00716.74
8.0.100.0030.00416.79
8.0.90.0040.00416.71
8.0.80.0060.01016.79
8.0.70.0040.00416.86
8.0.60.0000.00716.65
8.0.50.0070.00016.75
8.0.30.0130.00917.21
8.0.20.0020.01817.40
8.0.10.0000.00716.75
8.0.00.0090.01016.86
7.4.330.0060.00015.01
7.4.320.0030.00316.35
7.4.300.0060.00016.45
7.4.290.0060.00016.55
7.4.280.0060.00316.49
7.4.270.0000.00716.55
7.4.260.0000.00716.33
7.4.250.0040.00416.48
7.4.240.0030.00316.53
7.4.230.0000.00716.54
7.4.220.0140.00716.63
7.4.210.0120.00316.51
7.4.200.0050.00316.61
7.4.190.0070.00016.64
7.4.160.0000.01516.38
7.4.150.0090.00917.40
7.4.140.0090.01117.86
7.4.130.0050.01216.43
7.4.120.0120.00716.42
7.4.110.0070.01316.49
7.4.100.0030.01416.41
7.4.90.0110.00716.39
7.4.80.0040.01219.39
7.4.70.0060.00916.46
7.4.60.0180.00316.41
7.4.50.0000.00816.41
7.4.40.0160.00016.64
7.4.30.0090.00616.59
7.4.00.0070.01014.78
7.3.330.0000.00513.27
7.3.320.0050.00013.18
7.3.310.0050.00216.39
7.3.300.0030.00316.12
7.3.290.0030.01316.37
7.3.280.0110.00416.32
7.3.270.0150.00317.40
7.3.260.0000.02316.36
7.3.250.0130.00716.38
7.3.240.0120.01216.51
7.3.230.0090.00316.39
7.3.210.0120.00616.33
7.3.200.0060.01019.39
7.3.190.0070.01116.17
7.3.180.0060.01316.55
7.3.170.0060.01016.27
7.3.160.0080.01116.23
7.3.120.0080.00414.54
7.3.10.0110.00816.37
7.3.00.0100.00515.99
7.2.330.0090.00916.37
7.2.320.0110.00616.64
7.2.310.0000.01716.38
7.2.300.0080.00816.70
7.2.290.0120.00916.59
7.2.130.0110.00816.66
7.2.120.0090.00816.45
7.2.110.0150.00616.49
7.2.100.0080.01016.44
7.2.90.0100.00916.34
7.2.80.0110.00716.47
7.2.70.0130.00616.46
7.2.60.0080.00816.65
7.2.50.0110.00716.65
7.2.40.0160.00416.64
7.2.30.0140.00316.58
7.2.20.0090.00816.42
7.2.10.0090.00616.42
7.2.00.0140.00717.32
7.1.250.0090.00815.37
7.1.200.0060.00615.60
7.1.100.0140.00718.42
7.1.70.0000.00817.15
7.1.60.0040.01119.70
7.1.50.0070.01616.81
7.1.00.0000.07722.44
7.0.200.0000.00716.53
7.0.140.0000.07722.08
7.0.110.0100.04019.97
7.0.100.0030.05319.92
7.0.90.0030.04319.82
7.0.80.0170.02319.89
7.0.70.0030.03720.05
7.0.60.0070.03719.64
7.0.50.0070.04020.07
7.0.40.0070.07019.66
7.0.30.0070.03319.69
7.0.20.0070.07319.84
7.0.10.0070.06719.64
7.0.00.0100.05319.86
5.6.280.0000.07721.13
5.6.260.0030.05020.70
5.6.250.0030.04020.70
5.6.240.0100.03720.71
5.6.230.0070.03720.58
5.6.220.0100.03720.62
5.6.210.0030.04320.64
5.6.200.0070.05020.71
5.6.190.0130.05720.71
5.6.180.0100.05020.66
5.6.170.0130.07320.56
5.6.160.0070.08320.61
5.6.150.0000.09020.66
5.6.140.0070.08020.71
5.6.130.0070.03320.62
5.6.120.0100.08020.52
5.6.110.0130.05720.64
5.6.100.0170.07020.60
5.6.90.0070.08320.65
5.6.80.0100.06719.99
5.6.70.0070.03719.85
5.6.60.0070.04320.00
5.6.50.0100.03720.00
5.6.40.0130.06720.07
5.6.30.0030.04320.07
5.6.20.0000.08319.98
5.6.10.0030.04319.93
5.6.00.0100.08020.04
5.5.380.0030.03317.59
5.5.370.0070.03017.72
5.5.360.0030.03717.50
5.5.350.0000.03717.59
5.5.340.0170.03318.09
5.5.330.0030.06318.23
5.5.320.0000.08318.22
5.5.310.0200.04717.88
5.5.300.0070.07318.12
5.5.290.0070.06318.19
5.5.280.0100.07317.93
5.5.270.0170.07317.82
5.5.260.0070.03317.95
5.5.250.0070.08017.74
5.5.240.0130.06017.31
5.5.230.0000.08017.48
5.5.220.0170.07017.59
5.5.210.0100.07017.47
5.5.200.0170.03717.59
5.5.190.0070.05717.42
5.5.180.0030.04017.18
5.5.160.0030.06317.57
5.5.150.0100.03317.18
5.5.140.0030.04017.25
5.5.130.0170.07317.57
5.5.120.0170.03717.25
5.5.110.0170.06717.43
5.5.100.0000.04017.38
5.5.90.0070.06017.35
5.5.80.0100.07017.40
5.5.70.0100.06717.29
5.5.60.0100.02717.21
5.5.50.0070.07017.17
5.5.40.0100.07717.34
5.5.30.0070.06317.12
5.5.20.0070.05017.14
5.5.10.0000.07317.29
5.5.00.0000.05017.06
5.4.450.0000.04719.28
5.4.440.0000.03719.33
5.4.430.0000.03719.33
5.4.420.0100.07019.31
5.4.410.0070.05019.15
5.4.400.0070.06019.19
5.4.390.0030.05719.14
5.4.380.0170.05719.00
5.4.370.0130.05019.14
5.4.360.0000.04318.99
5.4.350.0030.04319.19
5.4.340.0030.04019.01
5.4.320.0100.03319.01
5.4.310.0100.04319.01
5.4.300.0100.03318.98
5.4.290.0070.04019.18
5.4.280.0100.06019.22
5.4.270.0130.03019.05
5.4.260.0100.03319.25
5.4.250.0100.05719.22
5.4.240.0000.07018.94
5.4.230.0070.06319.02
5.4.220.0000.07318.98
5.4.210.0170.06018.98
5.4.200.0000.04319.10
5.4.190.0030.07319.23
5.4.180.0100.03719.02
5.4.170.0000.04019.17
5.4.160.0030.04718.93
5.4.150.0100.05719.01
5.4.140.0070.03716.48
5.4.130.0000.06316.61
5.4.120.0100.07016.40
5.4.110.0030.04716.62
5.4.100.0070.03316.37
5.4.90.0030.07316.63
5.4.80.0070.03316.54
5.4.70.0030.07016.55
5.4.60.0030.03716.55
5.4.50.0070.05016.54
5.4.40.0030.03316.62
5.4.30.0030.07016.54
5.4.20.0030.03316.54
5.4.10.0100.04016.48
5.4.00.0130.06316.01
5.3.290.0130.06314.77
5.3.280.0000.05014.49
5.3.270.0070.05714.39
5.3.260.0070.03314.70
5.3.250.0030.04014.40
5.3.240.0030.04014.51
5.3.230.0030.06314.49
5.3.220.0000.07314.41
5.3.210.0170.06014.51
5.3.200.0000.05314.49
5.3.190.0130.06014.49
5.3.180.0070.03714.46
5.3.170.0130.06014.47
5.3.160.0030.03314.58
5.3.150.0000.04314.48
5.3.140.0000.03314.62
5.3.130.0030.07314.55
5.3.120.0000.04314.33
5.3.110.0100.06314.43
5.3.100.0030.06014.07
5.3.90.0100.02313.92
5.3.80.0030.06314.03
5.3.70.0070.03013.91
5.3.60.0000.04314.07
5.3.50.0030.03714.04
5.3.40.0070.02713.88
5.3.30.0100.05713.97
5.3.20.0030.05713.54
5.3.10.0070.04313.71
5.3.00.0030.07713.64
5.2.170.0100.05312.62
5.2.160.0070.02012.62
5.2.150.0000.04712.62
5.2.140.0030.02312.62
5.2.130.0100.06012.62
5.2.120.0070.04012.62
5.2.110.0070.02712.62
5.2.100.0030.02312.62
5.2.90.0100.03712.62
5.2.80.0000.03712.62
5.2.70.0000.02712.62
5.2.60.0070.02312.62
5.2.50.0030.04312.62
5.2.40.0000.03712.62
5.2.30.0000.06012.62
5.2.20.0070.05012.62
5.2.10.0030.05012.62
5.2.00.0000.03012.62
5.1.60.0030.05312.62
5.1.50.0000.05312.62
5.1.40.0070.03712.62
5.1.30.0070.02012.62
5.1.20.0070.02312.62
5.1.10.0070.04712.62
5.1.00.0100.04712.62
5.0.50.0030.03012.62
5.0.40.0070.03712.62
5.0.30.0030.05012.62
5.0.20.0000.04312.62
5.0.10.0030.04012.62
5.0.00.0030.03012.62
4.4.90.0000.03712.62
4.4.80.0100.00712.62
4.4.70.0000.03012.62
4.4.60.0000.01312.62
4.4.50.0000.03712.62
4.4.40.0000.03712.62
4.4.30.0070.02712.62
4.4.20.0000.02712.62
4.4.10.0030.03712.62
4.4.00.0070.04712.62
4.3.110.0000.03312.62
4.3.100.0000.01712.62
4.3.90.0030.01312.62
4.3.80.0000.03312.62
4.3.70.0070.01012.62
4.3.60.0000.01312.62
4.3.50.0030.03312.62
4.3.40.0030.03312.62
4.3.30.0000.03312.62
4.3.20.0000.02312.62
4.3.10.0000.03012.62
4.3.00.0000.02312.62

preferences:
37.89 ms | 401 KiB | 5 Q