3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait T { public function f() { echo 'trait'.PHP_EOL; } } class C { public function f() { echo 'class'.PHP_EOL; } } class CE extends C { use T; } $c = new C; $c->f(); $c = new CE; $c->f();

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.55
8.3.50.0080.00818.81
8.3.40.0110.00718.64
8.3.30.0000.01518.59
8.3.20.0000.00818.51
8.3.10.0090.00020.36
8.3.00.0000.00819.26
8.2.180.0070.01116.50
8.2.170.0100.00522.96
8.2.160.0060.00922.12
8.2.150.0080.00024.18
8.2.140.0060.00324.66
8.2.130.0070.00326.16
8.2.120.0000.00819.82
8.2.110.0000.00921.02
8.2.100.0060.00617.78
8.2.90.0050.00219.00
8.2.80.0030.00618.04
8.2.70.0000.00817.50
8.2.60.0080.00317.93
8.2.50.0050.00318.07
8.2.40.0040.00417.90
8.2.30.0030.00717.98
8.2.20.0040.00417.59
8.2.10.0040.00417.68
8.2.00.0050.00317.65
8.1.280.0090.00925.92
8.1.270.0040.00423.99
8.1.260.0050.00326.35
8.1.250.0060.00328.09
8.1.240.0030.00620.75
8.1.230.0040.00720.85
8.1.220.0030.00617.74
8.1.210.0000.00918.91
8.1.200.0000.00817.12
8.1.190.0030.00517.43
8.1.180.0040.00418.10
8.1.170.0060.00318.83
8.1.160.0070.00018.84
8.1.150.0050.00218.58
8.1.140.0030.00517.43
8.1.130.0000.00817.86
8.1.120.0000.00717.48
8.1.110.0040.00417.39
8.1.100.0000.00717.32
8.1.90.0070.00017.46
8.1.80.0000.00817.50
8.1.70.0080.00017.46
8.1.60.0040.00417.57
8.1.50.0070.00317.44
8.1.40.0000.00717.39
8.1.30.0000.00717.64
8.1.20.0000.00917.58
8.1.10.0020.00517.63
8.1.00.0040.00417.52
8.0.300.0000.00719.76
8.0.290.0060.00316.75
8.0.280.0000.00718.43
8.0.270.0070.00017.21
8.0.260.0040.00416.80
8.0.250.0070.00016.99
8.0.240.0030.00616.98
8.0.230.0070.00316.88
8.0.220.0030.00316.89
8.0.210.0060.00316.86
8.0.200.0060.00016.87
8.0.190.0000.00716.84
8.0.180.0030.00616.97
8.0.170.0060.00316.80
8.0.160.0000.00816.92
8.0.150.0080.00016.81
8.0.140.0030.00716.83
8.0.130.0030.00313.27
8.0.120.0050.00316.74
8.0.110.0030.00316.99
8.0.100.0000.00716.71
8.0.90.0070.00016.99
8.0.80.0140.00016.82
8.0.70.0020.00516.75
8.0.60.0020.00516.69
8.0.50.0070.00016.73
8.0.30.0120.00617.22
8.0.20.0110.00817.40
8.0.10.0050.00217.00
8.0.00.0090.01216.85
7.4.330.0000.00513.43
7.4.320.0060.00016.45
7.4.300.0000.00616.55
7.4.290.0000.00716.48
7.4.280.0080.00016.45
7.4.270.0060.00016.60
7.4.260.0030.00313.25
7.4.250.0040.00416.56
7.4.240.0040.00416.48
7.4.230.0030.00316.57
7.4.220.0060.01216.49
7.4.210.0040.01216.61
7.4.200.0070.00016.58
7.4.190.0070.00016.54
7.4.160.0090.00616.48
7.4.150.0060.01217.40
7.4.140.0050.01217.21
7.4.130.0070.01216.37
7.4.120.0030.01416.55
7.4.110.0100.01016.43
7.4.100.0070.01516.48
7.4.90.0180.00316.58
7.4.80.0130.00319.03
7.4.70.0090.01216.53
7.4.60.0140.00316.51
7.4.50.0000.00416.23
7.4.40.0070.01122.27
7.4.30.0160.00316.55
7.4.00.0000.01714.96
7.3.330.0060.00013.33
7.3.320.0000.00513.28
7.3.310.0040.00416.33
7.3.300.0070.00016.22
7.3.290.0110.00716.34
7.3.280.0090.00716.30
7.3.270.0080.00817.40
7.3.260.0060.01318.24
7.3.250.0090.01116.42
7.3.240.0100.00716.48
7.3.230.0170.00316.71
7.3.210.0030.01316.61
7.3.200.0140.00919.39
7.3.190.0070.01316.21
7.3.180.0140.00316.23
7.3.170.0080.01316.55
7.3.160.0000.01616.50
7.3.120.0000.01415.01
7.2.330.0150.00316.72
7.2.320.0140.00716.59
7.2.310.0060.01116.32
7.2.300.0090.01216.74
7.2.290.0030.01216.84
7.2.00.0100.00319.01
7.1.200.0100.00015.51
7.1.100.0040.00417.68
7.1.70.0090.00016.81
7.1.60.0110.01419.40
7.1.50.0070.01116.73
7.1.00.0030.07322.43
7.0.200.0030.00616.66
7.0.140.0030.07321.90
7.0.60.0200.06020.03
7.0.50.0070.08017.94
7.0.40.0230.07720.11
7.0.30.0100.04720.17
7.0.20.0270.04020.06
7.0.10.0370.04720.24
7.0.00.0100.04720.24
5.6.280.0070.06721.09
5.6.210.0070.03720.61
5.6.200.0100.08718.16
5.6.190.0030.07720.39
5.6.180.0330.07020.45
5.6.170.0270.06020.53
5.6.160.0070.05720.50
5.6.150.0070.05018.27
5.6.140.0070.08018.15
5.6.130.0030.05018.12
5.6.120.0170.04021.10
5.6.110.0100.06320.95
5.6.100.0070.06321.09
5.6.90.0030.08020.95
5.6.80.0070.04720.33
5.6.70.4500.04020.37
5.5.350.3770.04320.29
5.5.340.0100.07317.95
5.5.330.0070.03720.25
5.5.320.0230.03320.23
5.5.310.0230.03020.42
5.5.300.0000.05317.93
5.5.290.0030.05017.91
5.5.280.0030.06720.76
5.5.270.0100.06320.89
5.5.260.0100.07020.96
5.5.250.0070.04020.58
5.5.240.0070.05720.19
5.4.450.0300.07319.32
5.4.440.0300.04719.31
5.4.430.0270.07719.57
5.4.420.0200.04719.56
5.4.410.0300.05319.18
5.4.400.0300.07019.25
5.4.390.0230.07719.11
5.4.380.0300.04319.14
5.4.370.0270.07018.99
5.4.360.0300.03318.88
5.4.350.0330.06719.06
5.4.340.0230.07719.13
5.4.320.0270.07318.85
5.4.310.0430.06019.32
5.4.300.0230.04019.15
5.4.290.0230.03719.19
5.4.280.0230.04719.05
5.4.270.0270.06719.05
5.4.260.0300.07018.96
5.4.250.0300.05019.21
5.4.240.0300.05719.31
5.4.230.0400.05718.98
5.4.220.0370.06318.87
5.4.210.0330.06319.30
5.4.200.0300.06318.86
5.4.190.0300.06719.14
5.4.180.0430.05318.86
5.4.170.0230.06719.07
5.4.160.0400.06018.96
5.4.150.0270.05019.20
5.4.140.0270.03316.36
5.4.130.0270.03716.34
5.4.120.0300.04016.40
5.4.110.0130.05716.59
5.4.100.0270.06716.50
5.4.90.0270.04716.31
5.4.80.0200.03716.57
5.4.70.0330.06016.60
5.4.60.0270.06316.56
5.4.50.0230.04316.43
5.4.40.0270.05316.53
5.4.30.0300.07016.42
5.4.20.0270.06716.55
5.4.10.0330.06316.35
5.4.00.0270.07015.95
5.3.290.0300.06314.50
5.3.280.0300.06014.50
5.3.270.0300.07014.55
5.3.260.0370.05014.45
5.3.250.0300.06714.44
5.3.240.0270.04014.55
5.3.230.0270.06714.53
5.3.220.0270.04314.68
5.3.210.0270.04014.61
5.3.200.0200.07314.40
5.3.190.0270.07314.40
5.3.180.0370.06014.66
5.3.170.0200.05314.47
5.3.160.0300.06714.61
5.3.150.0270.06714.44
5.3.140.0270.05014.40
5.3.130.0270.07714.48
5.3.120.0330.07314.59
5.3.110.0270.05314.53
5.3.100.0400.02713.92
5.3.90.0270.04313.91
5.3.80.0300.06014.06
5.3.70.0200.06313.96
5.3.60.0430.06314.02
5.3.50.0230.06313.93
5.3.40.0270.03713.91
5.3.30.0270.05014.02
5.3.20.0300.06713.91
5.3.10.0230.07713.91
5.3.00.0200.04713.91
5.2.170.0200.05713.91
5.2.160.0230.06313.91
5.2.150.0270.05713.91
5.2.140.0370.05013.91
5.2.130.0270.05313.91
5.2.120.0200.06713.91
5.2.110.0230.03713.91
5.2.100.0170.03313.91
5.2.90.0270.03013.91
5.2.80.0170.03713.91
5.2.70.0130.04013.91
5.2.60.0330.05013.91
5.2.50.0230.05013.91
5.2.40.0170.06013.91
5.2.30.0130.05313.91
5.2.20.0130.04313.91
5.2.10.0330.03713.91
5.2.00.0300.02313.91
5.1.60.0170.04013.91
5.1.50.0230.03313.91
5.1.40.0130.04013.91
5.1.30.0200.05013.91
5.1.20.0230.03013.91
5.1.10.0200.04313.91
5.1.00.0270.04313.91
5.0.50.0170.03013.91
5.0.40.0130.03713.91
5.0.30.0100.05713.91
5.0.20.0100.02713.91
5.0.10.0100.04713.91
5.0.00.0130.06013.91
4.4.90.0100.03713.91
4.4.80.0130.03313.91
4.4.70.0100.02013.91
4.4.60.0130.03313.91
4.4.50.0100.02713.91
4.4.40.0070.05313.91
4.4.30.0070.01713.91
4.4.20.0100.03313.91
4.4.10.0100.02013.91
4.4.00.0130.03313.91
4.3.110.0070.02713.91
4.3.100.0130.03313.91
4.3.90.0070.03713.91
4.3.80.0170.04013.91
4.3.70.0070.02713.91
4.3.60.0130.02313.91
4.3.50.0100.03713.91
4.3.40.0170.02713.91
4.3.30.0070.03313.91
4.3.20.0070.02313.91
4.3.10.0030.02313.91
4.3.00.0070.01713.91

preferences:
40.65 ms | 401 KiB | 5 Q