3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait T1 { private function foo() { echo "foo"; } private function foo1() { } } trait T2 { use T1; } class A { use T2; public function f() { echo "f"; $this->foo(); } } (new A)->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.70.0040.01118.18
8.3.60.0080.00618.27
8.3.50.0100.01022.11
8.3.40.0090.00618.84
8.3.30.0070.00718.93
8.3.20.0070.00020.21
8.3.10.0050.00321.91
8.3.00.0000.00719.18
8.2.190.0120.00618.15
8.2.180.0120.00918.11
8.2.170.0070.01322.96
8.2.160.0100.00722.26
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0000.00719.54
8.2.110.0030.00620.39
8.2.100.0060.00617.59
8.2.90.0040.00417.75
8.2.80.0040.00418.65
8.2.70.0060.00317.80
8.2.60.0060.00317.91
8.2.50.0050.00318.10
8.2.40.0030.00519.17
8.2.30.0040.00418.00
8.2.20.0060.00317.68
8.2.10.0070.00018.06
8.2.00.0040.00417.62
8.1.280.0100.01025.92
8.1.270.0030.00518.93
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0000.00922.01
8.1.230.0070.00717.58
8.1.220.0060.00317.74
8.1.210.0000.00818.77
8.1.200.0030.00717.22
8.1.190.0060.00317.11
8.1.180.0070.00018.10
8.1.170.0040.00418.51
8.1.160.0030.00522.01
8.1.150.0040.00418.83
8.1.140.0040.00417.39
8.1.130.0000.00717.75
8.1.120.0050.00217.31
8.1.110.0040.00317.45
8.1.100.0040.00417.35
8.1.90.0000.00717.45
8.1.80.0000.00717.35
8.1.70.0000.00717.28
8.1.60.0030.00617.48
8.1.50.0050.00317.34
8.1.40.0050.00317.44
8.1.30.0030.00517.44
8.1.20.0040.00417.62
8.1.10.0000.00717.40
8.1.00.0000.00717.51
8.0.300.0040.00418.77
8.0.290.0030.00616.75
8.0.280.0030.00318.44
8.0.270.0020.00517.31
8.0.260.0000.00817.17
8.0.250.0070.00016.95
8.0.240.0000.00716.93
8.0.230.0030.00416.95
8.0.220.0030.00316.71
8.0.210.0040.00416.70
8.0.200.0000.00616.95
8.0.190.0040.00416.96
8.0.180.0030.00316.72
8.0.170.0040.00416.83
8.0.160.0000.00716.87
8.0.150.0000.00716.83
8.0.140.0040.00416.77
8.0.130.0030.00313.27
8.0.120.0000.00816.81
8.0.110.0000.00816.82
8.0.100.0030.00516.86
8.0.90.0040.00416.66
8.0.80.0040.01116.71
8.0.70.0070.00016.85
8.0.60.0030.00416.85
8.0.50.0020.00516.72
8.0.30.0130.01117.15
8.0.20.0080.01117.40
8.0.10.0000.00816.82
8.0.00.0100.00716.78
7.4.330.0050.00215.03
7.4.320.0000.00616.45
7.4.300.0030.00316.45
7.4.290.0030.00316.44
7.4.280.0000.00716.46
7.4.270.0020.00516.56
7.4.260.0030.00616.51
7.4.250.0040.00416.34
7.4.240.0000.00716.45
7.4.230.0000.00716.34
7.4.220.0120.01116.61
7.4.210.0130.00716.41
7.4.200.0030.00316.60
7.4.160.0090.01216.26
7.4.150.0090.00917.40
7.4.140.0080.00917.86
7.4.130.0080.01016.55
7.4.120.0140.00616.39
7.4.110.0130.01016.31
7.4.100.0130.00316.36
7.4.90.0140.00316.44
7.4.80.0040.01519.39
7.4.70.0060.01016.37
7.4.60.0130.00716.32
7.4.50.0000.00616.57
7.4.40.0150.00616.25
7.4.30.0140.00416.44
7.4.00.0030.00914.93
7.3.330.0050.00013.19
7.3.320.0030.00313.32
7.3.310.0030.00316.27
7.3.300.0040.00416.10
7.3.290.0090.00516.22
7.3.280.0110.00616.20
7.3.270.0110.00717.40
7.3.260.0080.00916.30
7.3.250.0130.00616.21
7.3.240.0100.00716.16
7.3.230.0110.01116.39
7.3.210.0170.00016.41
7.3.200.0000.02019.39
7.3.190.0040.01216.57
7.3.180.0140.00716.28
7.3.170.0070.01416.45
7.3.160.0080.00816.19
7.3.10.0070.00716.42
7.3.00.0050.00716.67
7.2.330.0100.01016.40
7.2.320.0070.01416.27
7.2.310.0120.00616.29
7.2.300.0090.00916.59
7.2.290.0160.00616.29
7.2.130.0090.00616.61
7.2.120.0080.00316.67
7.2.110.0070.00716.85
7.2.100.0030.01016.74
7.2.90.0020.00816.67
7.2.80.0040.01116.79
7.2.70.0070.00716.74
7.2.60.0110.00416.69
7.2.50.0060.00716.90
7.2.40.0090.00516.78
7.2.30.0030.01216.74
7.2.20.0120.00216.58
7.2.10.0100.00516.79
7.2.00.0060.00817.61
7.1.250.0050.00815.66
7.1.100.0170.01015.95
7.1.70.0030.01317.13
7.1.60.0100.01419.46
7.1.50.0130.01016.83
7.1.00.0070.07322.29
7.0.200.0000.00716.48
7.0.140.0000.04322.21
7.0.60.0100.04019.91
7.0.50.0070.03717.87
7.0.40.0100.07020.23
7.0.30.0170.04720.33
7.0.20.0370.07720.33
7.0.10.0130.07720.06
7.0.00.0030.04320.23
5.6.280.0000.07721.01
5.6.210.0100.06720.70
5.6.200.0030.05318.18
5.6.190.0070.06720.64
5.6.180.0270.04020.34
5.6.170.0430.06720.45
5.6.160.0070.08020.46
5.6.150.0000.04718.19
5.6.140.0100.07718.20
5.6.130.0100.03718.24
5.6.120.0000.09321.13
5.6.110.0100.07321.12
5.6.100.0030.09321.02
5.6.90.0000.09321.13
5.6.80.0030.04020.54
5.5.350.0000.04720.43
5.5.340.0070.03717.98
5.5.330.0100.07020.47
5.5.320.0400.07320.20
5.5.310.0300.08020.51
5.5.300.0130.07017.95
5.5.290.0170.06318.08
5.5.280.0070.04020.80
5.5.270.0130.06720.80
5.5.260.0100.07020.73
5.5.250.0070.05020.62
5.5.240.4330.03020.16
5.4.450.0530.06719.18
5.4.440.0600.05019.60
5.4.430.0070.05719.68
5.4.420.0170.05319.41
5.4.410.0170.04719.52
5.4.400.0130.05019.22
5.4.390.0330.03718.70
5.4.380.0270.05018.57
5.4.370.0270.04718.51
5.4.360.0200.05018.72
5.4.350.0030.06718.47
5.4.340.0230.05018.78
5.4.320.0270.04718.71
5.4.310.0270.04318.84
5.4.300.0200.05018.44
5.4.290.0200.06318.46
5.4.280.0130.07318.78
5.4.270.0200.06718.74
5.4.260.0130.05718.69
5.4.250.0030.07318.46
5.4.240.0170.06018.77
5.4.230.0300.05318.56
5.4.220.0200.05718.45
5.4.210.0100.07018.80
5.4.200.0170.06016.70
5.4.190.0270.06718.68
5.4.180.0230.07318.76
5.4.170.0270.07018.70
5.4.160.0300.06318.54
5.4.150.0330.06018.72
5.4.140.0230.06316.22
5.4.130.0200.06316.24
5.4.120.0170.05716.44
5.4.110.0170.06716.30
5.4.100.0200.07016.30
5.4.90.0130.07316.45
5.4.80.0200.06716.28
5.4.70.0100.06016.30
5.4.60.0300.05016.20
5.4.50.0300.05316.39
5.4.40.0170.06716.23
5.4.30.0130.05316.36
5.4.20.0170.07316.22
5.4.10.0300.04716.40
5.4.00.0200.06315.75
5.3.290.0300.04314.59
5.3.280.0230.05014.51
5.3.270.0330.05014.68
5.3.260.0130.08014.68
5.3.250.0130.07714.52
5.3.240.0270.07314.61
5.3.230.0170.05314.59
5.3.220.0100.06014.52
5.3.210.0130.06014.49
5.3.200.0130.05714.54
5.3.190.0030.08314.60
5.3.180.0170.07014.59
5.3.170.0230.04714.65
5.3.160.0200.04714.55
5.3.150.0330.05714.52
5.3.140.0130.07714.48
5.3.130.0270.06314.46
5.3.120.0130.06714.64
5.3.110.0270.04714.46
5.3.100.0230.05314.02
5.3.90.0270.06314.05
5.3.80.0200.07014.11
5.3.70.0230.06713.94
5.3.60.0270.06014.09
5.3.50.0070.06713.87
5.3.40.0130.06313.84
5.3.30.0200.07313.98
5.3.20.0370.05013.79
5.3.10.0230.06313.64
5.3.00.0330.05713.55
5.2.170.0170.04011.11
5.2.160.0130.04011.20
5.2.150.0200.03711.07
5.2.140.0100.05011.05
5.2.130.0070.04711.16
5.2.120.0270.02711.13
5.2.110.0100.04711.07
5.2.100.0130.04011.05
5.2.90.0230.03711.08
5.2.80.0230.04011.03
5.2.70.0100.04711.15
5.2.60.0000.05711.20
5.2.50.0170.03710.98
5.2.40.0100.05311.14
5.2.30.0070.04311.02
5.2.20.0070.04711.03
5.2.10.0100.04311.01
5.2.00.0070.04310.76
5.1.60.0130.0309.98
5.1.50.0130.03010.13
5.1.40.0070.0379.95
5.1.30.0070.04310.45
5.1.20.0130.04010.38
5.1.10.0130.04010.06
5.1.00.0200.03010.20
5.0.50.0070.0278.63
5.0.40.0070.0278.42
5.0.30.0100.0538.19
5.0.20.0030.0308.17
5.0.10.0030.0338.20
5.0.00.0030.0478.15
4.4.90.0070.0205.86
4.4.80.0070.0205.86
4.4.70.0070.0235.80
4.4.60.0100.0235.89
4.4.50.0130.0175.90
4.4.40.0030.0405.91
4.4.30.0100.0205.90
4.4.20.0130.0135.92
4.4.10.0030.0236.01
4.4.00.0030.0375.94
4.3.110.0030.0235.84
4.3.100.0030.0235.83
4.3.90.0030.0235.91
4.3.80.0030.0375.79
4.3.70.0070.0205.77
4.3.60.0100.0175.79
4.3.50.0070.0205.76
4.3.40.0030.0435.84
4.3.30.0070.0274.56
4.3.20.0000.0334.56
4.3.10.0030.0304.46
4.3.00.0070.02312.54

preferences:
50.24 ms | 401 KiB | 5 Q