3v4l.org

run code in 300+ PHP versions simultaneously
<?php class TestParent { use TestTrait; } class Test extends TestParent { public function __construct() { $this->pri; } } trait TestTrait { public $pub = 0; protected $pro = 0; private $pri = 0; private function privateFunc() { } public function publicFunc() { } protected function protectedFunc() { } }

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.0090.00618.43
8.3.50.0120.01022.09
8.3.40.0070.00718.52
8.3.30.0100.00318.96
8.3.20.0070.00020.33
8.3.10.0060.00321.72
8.3.00.0040.00422.45
8.2.180.0140.00418.41
8.2.170.0110.00322.96
8.2.160.0100.00322.25
8.2.150.0060.00324.18
8.2.140.0000.00724.66
8.2.130.0000.00726.16
8.2.120.0060.00317.63
8.2.110.0090.00019.21
8.2.100.0080.00417.50
8.2.90.0040.00419.09
8.2.80.0030.00517.97
8.2.70.0040.00417.38
8.2.60.0050.00517.80
8.2.50.0040.00418.07
8.2.40.0050.00320.91
8.2.30.0040.00417.98
8.2.20.0020.00517.55
8.2.10.0020.00517.95
8.2.00.0070.00017.98
8.1.280.0070.00725.92
8.1.270.0170.00320.20
8.1.260.0000.00726.35
8.1.250.0030.00528.09
8.1.240.0060.00322.18
8.1.230.0040.00717.64
8.1.220.0080.00317.74
8.1.210.0030.00518.77
8.1.200.0000.01117.35
8.1.190.0060.00317.10
8.1.180.0060.00318.10
8.1.170.0040.00418.63
8.1.160.0040.00422.05
8.1.150.0050.00318.82
8.1.140.0040.00417.32
8.1.130.0070.00017.62
8.1.120.0070.00017.44
8.1.110.0000.00717.39
8.1.100.0050.00317.44
8.1.90.0040.00417.38
8.1.80.0070.00017.38
8.1.70.0030.00617.34
8.1.60.0030.00617.48
8.1.50.0060.00317.34
8.1.40.0040.00417.35
8.1.30.0140.00017.40
8.1.20.0030.00617.65
8.1.10.0020.00517.43
8.1.00.0000.00817.28
8.0.300.0050.00218.77
8.0.290.0070.00016.63
8.0.280.0070.00018.28
8.0.270.0080.00017.19
8.0.260.0000.00717.20
8.0.250.0070.00016.89
8.0.240.0070.00016.86
8.0.230.0070.00016.77
8.0.220.0070.00016.78
8.0.210.0030.00316.82
8.0.200.0050.00316.75
8.0.190.0020.00516.91
8.0.180.0030.00516.87
8.0.170.0080.00016.87
8.0.160.0040.00416.82
8.0.150.0000.00716.73
8.0.140.0100.00016.84
8.0.130.0000.00513.26
8.0.120.0080.00016.77
8.0.110.0050.00316.82
8.0.100.0000.00816.89
8.0.90.0000.00716.89
8.0.80.0090.00616.79
8.0.70.0000.00816.86
8.0.60.0040.00416.68
8.0.50.0040.00416.89
8.0.30.0100.00817.02
8.0.20.0090.00917.40
8.0.10.0040.00416.98
8.0.00.0100.00816.70
7.4.330.0040.00415.08
7.4.320.0030.00316.54
7.4.300.0000.00616.48
7.4.290.0060.00316.39
7.4.280.0070.00016.52
7.4.270.0040.00416.33
7.4.260.0040.00416.50
7.4.250.0050.00316.50
7.4.240.0030.00416.43
7.4.230.0030.00316.51
7.4.220.0070.01316.47
7.4.210.0150.00016.64
7.4.200.0000.00816.32
7.4.160.0030.01316.54
7.4.150.0120.00617.40
7.4.140.0100.01017.86
7.4.130.0130.00516.36
7.4.120.0130.00516.45
7.4.110.0130.00616.57
7.4.100.0050.01416.47
7.4.90.0130.01016.39
7.4.80.0030.01319.39
7.4.70.0040.01316.36
7.4.60.0060.01316.36
7.4.50.0060.00316.49
7.4.40.0120.01116.53
7.4.30.0150.00316.47
7.4.00.0170.00014.71
7.3.330.0050.00013.25
7.3.320.0000.00513.04
7.3.310.0060.00316.21
7.3.300.0070.00016.16
7.3.290.0110.00416.22
7.3.280.0080.01016.21
7.3.270.0100.00717.40
7.3.260.0130.00316.34
7.3.250.0090.00816.37
7.3.240.0100.00716.49
7.3.230.0090.00916.46
7.3.210.0130.00316.48
7.3.200.0110.01319.39
7.3.190.0040.01516.51
7.3.180.0090.01216.32
7.3.170.0100.00616.29
7.3.160.0090.00916.16
7.2.330.0110.00716.24
7.2.320.0120.01216.44
7.2.310.0160.00016.50
7.2.300.0060.01216.23
7.2.290.0040.01816.27
7.2.00.0000.01419.36
7.1.100.0060.00617.40
7.1.70.0030.00616.74
7.1.60.0110.00719.19
7.1.50.0090.01216.88
7.1.00.0000.08022.42
7.0.200.0030.00316.67
7.0.60.0000.04319.94
7.0.50.0000.04317.90
7.0.40.0170.07720.21
7.0.30.0230.07020.34
7.0.20.0030.05320.08
7.0.10.0100.07720.17
7.0.00.0070.08720.25
5.6.280.0030.06320.90
5.6.210.0100.07020.76
5.6.200.0000.04318.19
5.6.190.0070.08720.47
5.6.180.3030.04320.33
5.6.170.0230.04320.47
5.6.160.0030.06320.44
5.6.150.0000.05318.15
5.6.140.0100.07718.25
5.6.130.0100.05718.18
5.6.120.0130.07321.13
5.6.110.0030.06720.89
5.6.100.0130.03721.00
5.6.90.0100.08021.08
5.6.80.0070.03720.39
5.6.70.0230.07720.48
5.5.350.0270.07720.41
5.5.340.0030.08018.04
5.5.330.0070.05020.25
5.5.320.0300.06020.38
5.5.310.0200.05720.34
5.5.300.0100.05017.97
5.5.290.0070.05017.98
5.5.280.0000.04320.81
5.5.270.0070.05720.66
5.5.260.0100.07720.90
5.5.250.0130.05320.80
5.5.240.0400.06020.37
5.4.450.0700.05719.57
5.4.440.0730.06719.40
5.4.430.0970.05719.69
5.4.420.1130.05719.61
5.4.410.0630.06019.05
5.4.400.0900.05019.26
5.4.390.0800.05719.26
5.4.380.0800.06319.25
5.4.370.0870.07319.36
5.4.360.0930.09019.25
5.4.350.0700.05718.98
5.4.340.0800.06319.05
5.4.320.0670.05719.13
5.4.310.0570.07319.15
5.4.300.0800.04719.13
5.4.290.0700.05319.05
5.4.280.0670.06019.22
5.4.270.0700.05719.25
5.4.260.0700.05319.14
5.4.250.0800.05319.26
5.4.240.0800.06019.04
5.4.230.0900.04719.24
5.4.220.0930.04019.29
5.4.210.0770.05318.93
5.4.200.1070.06016.94
5.4.190.0900.05319.13
5.4.180.0930.05019.01
5.4.170.0870.05019.08
5.4.160.0870.05719.02
5.4.150.1000.05719.27
5.4.140.0730.06316.57
5.4.130.0930.05016.77
5.4.120.1130.06016.56
5.4.110.0800.06016.48
5.4.100.0670.05716.49
5.4.90.0970.04016.77
5.4.80.0800.05716.46
5.4.70.0800.06016.46
5.4.60.0900.05716.46
5.4.50.0830.05716.54
5.4.40.1000.05016.33
5.4.30.0830.06316.48
5.4.20.0970.05016.55
5.4.10.0900.05316.68
5.4.00.0930.06015.76
5.3.290.0930.05714.57
5.3.280.0900.04314.52
5.3.270.0970.06014.74
5.3.260.0870.06014.49
5.3.250.0730.06014.82
5.3.240.0930.05714.59
5.3.230.1070.06014.60
5.3.220.0800.05314.46
5.3.210.0770.05314.56
5.3.200.0730.06014.46
5.3.190.0870.06314.55
5.3.180.0930.05714.47
5.3.170.0930.05714.70
5.3.160.1070.06014.64
5.3.150.1030.04714.46
5.3.140.0870.05014.54
5.3.130.0900.06714.50
5.3.120.0770.06014.40
5.3.110.0770.07014.63
5.3.100.0870.04713.94
5.3.90.0800.04714.02
5.3.80.0930.05314.23
5.3.70.0770.05714.03
5.3.60.0670.05714.00
5.3.50.1100.05013.84
5.3.40.0970.05313.86
5.3.30.0700.04713.80
5.3.20.0900.04713.60
5.3.10.0730.05013.66
5.3.00.0800.05313.54
5.2.170.0800.04011.05
5.2.160.0530.04711.19
5.2.150.0670.04311.15
5.2.140.0730.03311.05
5.2.130.0630.04011.00
5.2.120.0700.04711.32
5.2.110.0570.04711.18
5.2.100.0800.03311.05
5.2.90.0870.04011.18
5.2.80.0830.04311.09
5.2.70.0570.04311.10
5.2.60.0570.04710.95
5.2.50.0600.04311.09
5.2.40.0670.03711.21
5.2.30.0500.04310.90
5.2.20.0630.03310.85
5.2.10.0830.05311.08
5.2.00.0670.04010.71
5.1.60.0470.0439.86
5.1.50.0400.0379.82
5.1.40.0700.04010.13
5.1.30.0700.04010.39
5.1.20.0630.05010.24
5.1.10.0530.0439.95
5.1.00.0700.03010.04
5.0.50.0330.0278.54
5.0.40.0300.0278.33
5.0.30.0330.0408.05
5.0.20.0600.0308.09
5.0.10.0170.0338.05
5.0.00.0430.0408.30
4.4.90.0330.0235.88
4.4.80.0330.0205.82
4.4.70.0230.0135.83
4.4.60.0370.0205.92
4.4.50.0430.0275.77
4.4.40.0400.0405.85
4.4.30.0330.0205.82
4.4.20.0230.0235.93
4.4.10.0400.0235.89
4.4.00.0470.0475.88
4.3.110.0330.0235.75
4.3.100.0470.0175.68
4.3.90.0200.0275.73
4.3.80.0370.0375.65
4.3.70.0370.0235.65
4.3.60.0330.0175.65
4.3.50.0330.0235.67
4.3.40.0270.0475.67
4.3.30.0170.0204.50
4.3.20.0100.0234.50
4.3.10.0130.0234.43
4.3.00.0100.0236.89

preferences:
61.1 ms | 401 KiB | 5 Q