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 () { return __METHOD__; }); } } 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.60.0130.01016.75
8.3.50.0110.00821.99
8.3.40.0120.00318.89
8.3.30.0140.00019.04
8.3.20.0090.00020.38
8.3.10.0080.00023.52
8.3.00.0070.00019.14
8.2.180.0070.01416.50
8.2.170.0120.00322.96
8.2.160.0100.00320.52
8.2.150.0000.00724.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0070.00720.90
8.2.110.0090.00022.11
8.2.100.0070.00319.40
8.2.90.0040.00419.17
8.2.80.0060.00317.97
8.2.70.0000.00817.50
8.2.60.0030.00717.80
8.2.50.0080.00018.07
8.2.40.0070.00617.94
8.2.30.0040.00418.13
8.2.20.0000.00817.64
8.2.10.0000.00817.88
8.2.00.0030.00617.68
8.1.280.0140.00725.92
8.1.270.0040.00423.91
8.1.260.0040.00426.35
8.1.250.0030.00528.09
8.1.240.0030.00723.97
8.1.230.0080.00319.14
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0050.00817.23
8.1.190.0080.00017.23
8.1.180.0040.00418.10
8.1.170.0040.00418.59
8.1.160.0000.00721.89
8.1.150.0000.00718.57
8.1.140.0040.00417.39
8.1.130.0030.00317.66
8.1.120.0000.00717.34
8.1.110.0040.00417.41
8.1.100.0030.00317.45
8.1.90.0030.00317.32
8.1.80.0000.00817.40
8.1.70.0070.00017.27
8.1.60.0030.00617.47
8.1.50.0040.00417.37
8.1.40.0000.00817.46
8.1.30.0080.00017.52
8.1.20.0050.00317.52
8.1.10.0040.00417.40
8.1.00.0040.00417.33
8.0.300.0000.00818.77
8.0.290.0000.00816.63
8.0.280.0000.00718.45
8.0.270.0070.00017.24
8.0.260.0030.00317.25
8.0.250.0070.00016.83
8.0.240.0000.00616.93
8.0.230.0040.00416.99
8.0.220.0030.00316.80
8.0.210.0030.00316.91
8.0.200.0080.00016.95
8.0.190.0040.00416.84
8.0.180.0060.00316.88
8.0.170.0050.00316.81
8.0.160.0030.00416.74
8.0.150.0030.00316.79
8.0.140.0030.00616.71
8.0.130.0060.00013.25
8.0.120.0040.00416.70
8.0.110.0070.00016.85
8.0.100.0080.00016.73
8.0.90.0000.00716.77
8.0.80.0090.00916.82
8.0.70.0000.00816.71
8.0.60.0040.00416.68
8.0.50.0000.00716.83
8.0.30.0120.00716.95
8.0.20.0080.01117.40
8.0.10.0050.00316.82
8.0.00.0110.00816.80
7.4.330.0020.00215.00
7.4.320.0000.00716.41
7.4.300.0000.00716.54
7.4.290.0060.00016.48
7.4.280.0040.00416.47
7.4.270.0000.00716.34
7.4.260.0000.00716.45
7.4.250.0030.00516.41
7.4.240.0050.00216.49
7.4.230.0000.00816.51
7.4.220.0120.00616.45
7.4.210.0060.00916.47
7.4.200.0070.00016.31
7.4.190.0000.00716.24
7.4.160.0090.00916.35
7.4.150.0120.00617.40
7.4.140.0140.00617.86
7.4.130.0110.00916.74
7.4.120.0110.00816.43
7.4.110.0070.01116.53
7.4.100.0090.00916.61
7.4.90.0120.00616.37
7.4.80.0110.01019.39
7.4.70.0100.00716.59
7.4.60.0090.00616.30
7.4.50.0060.00316.50
7.4.40.0030.01316.52
7.4.30.0130.01016.33
7.4.00.0060.00815.17
7.3.330.0040.00413.13
7.3.320.0000.00513.07
7.3.310.0000.00716.34
7.3.300.0030.00316.18
7.3.290.0030.01216.38
7.3.280.0090.00816.26
7.3.270.0060.01217.40
7.3.260.0090.01216.27
7.3.250.0070.01016.61
7.3.240.0120.00616.43
7.3.230.0060.01216.45
7.3.210.0100.00716.25
7.3.200.0040.01919.39
7.3.190.0090.00916.38
7.3.180.0120.00416.38
7.3.170.0080.00816.38
7.3.160.0170.00716.52
7.3.120.0070.01015.04
7.2.330.0000.01816.80
7.2.320.0140.00316.71
7.2.310.0060.01416.41
7.2.300.0060.01016.77
7.2.290.0180.00516.79
7.2.00.0030.00919.38
7.1.100.0060.00318.22
7.1.70.0000.00817.15
7.1.60.0030.01319.70
7.1.50.0250.00334.70
7.1.00.0030.07722.37
7.0.200.0040.00416.75
7.0.140.0030.07022.08
7.0.60.0130.04719.93
7.0.50.0100.07017.73
7.0.40.0070.04720.02
7.0.30.0270.03320.03
7.0.20.0370.06720.17
7.0.10.0170.05720.30
7.0.00.0100.06020.24
5.6.280.0070.07020.85
5.6.210.0070.08020.77
5.6.200.0170.04018.24
5.6.190.0030.08020.50
5.6.180.0270.04020.61
5.6.170.0370.05320.41
5.6.160.0070.05020.50
5.6.150.0070.03318.29
5.6.140.0070.08018.11
5.6.130.0030.04018.11
5.6.120.0130.06320.98
5.6.110.0070.07021.15
5.6.100.0070.06021.05
5.6.90.0100.04720.99
5.6.80.0100.05720.39
5.5.350.0030.04020.31
5.5.340.0100.06718.05
5.5.330.0100.04020.47
5.5.320.0330.07720.26
5.5.310.0270.07020.34
5.5.300.0030.08717.98
5.5.290.0030.08718.01
5.5.280.0030.06020.98
5.5.270.0070.08020.95
5.5.260.0070.03720.89
5.5.250.0070.06320.78
5.5.240.4300.03320.24
5.4.450.0130.05019.46
5.4.440.0070.04319.55
5.4.430.1200.05019.57
5.4.420.0970.04319.27
5.4.410.0230.02319.33
5.4.400.0200.03718.98
5.4.390.0170.04319.24
5.4.380.0300.05718.75
5.4.370.0830.05018.57
5.4.360.0170.06018.75
5.4.350.0470.04718.49
5.4.340.0330.05318.76
5.4.320.0070.03412.52
5.4.310.0030.05212.52
5.4.300.0100.05112.51
5.4.290.0040.06012.51
5.4.280.0090.05212.41
5.4.270.0110.04912.41
5.4.260.0110.06012.41
5.4.250.0090.05412.41
5.4.240.0060.05412.41
5.4.230.0080.05412.40
5.4.220.0120.05112.40
5.4.210.0100.05112.40
5.4.200.0060.05712.40
5.4.190.0120.05012.39
5.4.180.0080.05512.39
5.4.170.0100.05112.40
5.4.160.0090.05412.40
5.4.150.0130.04812.40
5.4.140.0080.05612.09
5.4.130.0090.05212.07
5.4.120.0080.05612.03
5.4.110.0080.05912.03
5.4.100.0080.05312.03
5.4.90.0090.05712.04
5.4.80.0080.05512.03
5.4.70.0110.05612.03
5.4.60.0070.06012.03
5.4.50.0140.06912.03
5.4.40.0080.05512.01
5.4.30.0080.05412.01
5.4.20.0120.05212.00
5.4.10.0130.05412.01
5.4.00.0130.05211.51
5.3.290.0070.03612.80
5.3.280.0080.05912.71
5.3.270.0090.06112.72
5.3.260.0080.06312.72
5.3.250.0080.05912.72
5.3.240.0060.05812.72
5.3.230.0070.05712.71
5.3.220.0120.05912.68
5.3.210.0100.06512.68
5.3.200.0110.05012.68
5.3.190.0060.05312.68
5.3.180.0080.05312.67
5.3.170.0080.05412.67
5.3.160.0090.05612.67
5.3.150.0090.05512.68
5.3.140.0100.05312.66
5.3.130.0120.05412.66
5.3.120.0050.06012.66
5.3.110.0140.06612.66
5.3.100.0130.05312.12
5.3.90.0100.05512.08
5.3.80.0060.05312.07
5.3.70.0110.05012.08
5.3.60.0070.05312.07
5.3.50.0080.04612.00
5.3.40.0080.05912.00
5.3.30.0090.05711.94
5.3.20.0130.04911.72
5.3.10.0100.05611.70
5.3.00.0060.05711.68
5.2.170.0100.0609.19
5.2.160.0050.0669.18
5.2.150.0100.0489.18
5.2.140.0080.0429.17
5.2.130.0100.0559.14
5.2.120.0120.0829.14
5.2.110.0070.0419.15
5.2.100.0060.0409.14
5.2.90.0040.0439.14
5.2.80.0100.0399.14
5.2.70.0110.0419.14
5.2.60.0070.0449.09
5.2.50.0080.0429.06
5.2.40.0080.0579.03
5.2.30.0070.0409.01
5.2.20.0090.0439.00
5.2.10.0070.0368.93
5.2.00.0060.0398.78
5.1.60.0040.0358.07
5.1.50.0050.0338.06
5.1.40.0060.0328.05
5.1.30.0070.0358.40
5.1.20.0090.0378.42
5.1.10.0130.0778.14
5.1.00.0180.0848.14
5.0.50.0050.0296.62
5.0.40.0080.0266.48
5.0.30.0080.0406.29
5.0.20.0030.0336.27
5.0.10.0080.0276.24
5.0.00.0080.0356.23
4.4.90.0030.0214.78
4.4.80.0060.0184.75
4.4.70.0050.0224.76
4.4.60.0040.0204.75
4.4.50.0040.0214.77
4.4.40.0060.0314.71
4.4.30.0090.0224.76
4.4.20.0030.0234.85
4.4.10.0060.0204.85
4.4.00.0040.0334.76
4.3.110.0030.0234.66
4.3.100.0060.0194.66
4.3.90.0060.0204.63
4.3.80.0100.0454.58
4.3.70.0050.0294.63
4.3.60.0050.0204.63
4.3.50.0130.0394.62
4.3.40.0090.0474.54
4.3.30.0020.0223.29
4.3.20.0030.0293.26
4.3.10.0060.0433.22
4.3.00.0030.01716.93

preferences:
44.73 ms | 401 KiB | 5 Q