3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait foo { public $prop = "foo"; } class bar { use foo; public $prop = "bar"; public function show() { echo $this->prop; } } $x = new bar; $x->show();

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.0040.01116.75
8.3.50.0090.00822.00
8.3.40.0040.01118.64
8.3.30.0170.00319.01
8.3.20.0040.00420.30
8.3.10.0080.00023.43
8.3.00.0070.00317.50
8.2.180.0040.01116.50
8.2.170.0080.00622.96
8.2.160.0070.00720.51
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0030.01026.16
8.2.120.0040.00422.29
8.2.110.0060.00322.17
8.2.100.0100.00317.78
8.2.90.0000.00819.09
8.2.80.0080.00017.97
8.2.70.0030.00617.38
8.2.60.0070.00217.68
8.2.50.0030.00518.07
8.2.40.0000.00817.84
8.2.30.0080.00017.96
8.2.20.0040.00417.67
8.2.10.0000.00819.78
8.2.00.0000.00817.60
8.1.280.0150.00325.92
8.1.270.0040.00423.66
8.1.260.0050.00326.35
8.1.250.0000.00728.09
8.1.240.0090.00023.91
8.1.230.0110.00019.08
8.1.220.0030.00517.74
8.1.210.0030.00518.77
8.1.200.0030.00617.10
8.1.190.0030.00517.40
8.1.180.0040.00418.10
8.1.170.0040.00418.64
8.1.160.0040.00422.08
8.1.150.0040.00418.58
8.1.140.0050.00217.33
8.1.130.0070.00017.78
8.1.120.0060.00317.45
8.1.110.0030.00517.27
8.1.100.0000.00717.42
8.1.90.0040.00417.42
8.1.80.0040.00417.40
8.1.70.0040.00417.33
8.1.60.0040.00417.53
8.1.50.0030.00517.44
8.1.40.0060.00317.47
8.1.30.0000.00817.46
8.1.20.0070.00017.43
8.1.10.0050.00217.36
8.1.00.0040.00417.32
8.0.300.0040.00419.27
8.0.290.0000.00816.93
8.0.280.0030.00318.32
8.0.270.0030.00317.20
8.0.260.0040.00417.18
8.0.250.0000.00716.86
8.0.240.0030.00316.98
8.0.230.0000.00716.93
8.0.220.0000.00716.78
8.0.210.0000.00716.77
8.0.200.0070.00016.86
8.0.190.0030.00717.00
8.0.180.0000.00716.91
8.0.170.0040.00416.80
8.0.160.0000.00816.86
8.0.150.0000.00716.82
8.0.140.0040.00416.87
8.0.130.0030.00313.36
8.0.120.0040.00416.74
8.0.110.0000.00716.90
8.0.100.0070.00016.77
8.0.90.0020.00516.79
8.0.80.0030.01316.88
8.0.70.0070.00016.84
8.0.60.0040.00416.71
8.0.50.0040.00416.90
8.0.30.0110.00716.95
8.0.20.0080.01117.40
8.0.10.0000.00716.84
8.0.00.0100.00916.82
7.4.330.0000.00515.03
7.4.320.0060.00016.43
7.4.300.0030.00316.45
7.4.290.0000.00716.50
7.4.280.0030.00316.45
7.4.270.0070.00016.53
7.4.260.0030.00316.44
7.4.250.0000.00716.52
7.4.240.0050.00216.49
7.4.230.0000.00716.52
7.4.220.0070.01016.45
7.4.210.0090.00716.56
7.4.200.0000.00716.34
7.4.190.0000.00716.58
7.4.160.0070.01016.39
7.4.150.0080.00817.40
7.4.140.0060.01117.86
7.4.130.0090.01216.35
7.4.120.0090.00916.42
7.4.110.0150.00616.30
7.4.100.0120.00616.36
7.4.90.0120.00616.54
7.4.80.0030.01619.39
7.4.70.0110.00616.39
7.4.60.0100.00716.30
7.4.50.0050.00316.45
7.4.40.0030.01322.77
7.4.30.0060.01016.41
7.4.00.0060.01015.07
7.3.330.0030.00313.22
7.3.320.0000.00613.21
7.3.310.0070.00016.15
7.3.300.0000.00716.23
7.3.290.0060.01016.21
7.3.280.0070.00916.22
7.3.270.0110.00717.40
7.3.260.0130.00316.33
7.3.250.0100.00716.20
7.3.240.0100.00916.48
7.3.230.0110.00616.39
7.3.210.0090.00916.35
7.3.200.0140.00719.39
7.3.190.0120.00616.27
7.3.180.0070.01316.32
7.3.170.0100.00716.30
7.3.160.0110.00616.52
7.3.120.0110.00614.65
7.3.110.0100.00814.75
7.3.100.0030.01314.90
7.3.90.0090.01014.83
7.3.80.0040.01014.57
7.3.70.0060.00614.60
7.3.60.0110.00314.66
7.3.50.0070.00814.80
7.3.40.0040.00914.64
7.3.30.0050.00714.75
7.3.20.0070.00716.72
7.3.10.0050.00816.57
7.3.00.0050.00516.51
7.2.330.0100.00716.39
7.2.320.0160.00716.16
7.2.310.0100.01016.67
7.2.300.0130.01016.43
7.2.290.0110.00616.59
7.2.250.0040.01114.52
7.2.240.0100.01014.76
7.2.230.0100.00514.69
7.2.220.0050.00914.81
7.2.210.0040.01115.03
7.2.200.0060.00514.81
7.2.190.0050.00914.73
7.2.180.0020.01514.98
7.2.170.0050.00814.91
7.2.160.0060.00614.92
7.2.150.0070.00716.52
7.2.140.0040.01116.57
7.2.130.0000.01216.69
7.2.120.0090.00016.82
7.2.110.0030.01016.65
7.2.100.0080.00616.71
7.2.90.0000.01316.84
7.2.80.0070.00416.85
7.2.70.0060.01216.89
7.2.60.0050.00916.81
7.2.50.0070.01116.53
7.2.40.0170.00016.80
7.2.30.0100.01016.99
7.2.20.0070.01316.67
7.2.10.0030.01016.80
7.2.00.0120.00617.91
7.1.330.0090.00715.56
7.1.320.0070.01115.67
7.1.310.0060.00415.65
7.1.300.0050.01015.82
7.1.290.0020.01115.69
7.1.280.0020.01415.77
7.1.270.0030.00815.76
7.1.260.0050.00815.68
7.1.250.0040.00815.73
7.1.200.0100.00015.51
7.1.100.0060.00318.11
7.1.70.0110.00316.77
7.1.60.0110.01419.46
7.1.50.0210.01434.61
7.1.00.0130.06722.51
7.0.200.0000.00716.69
7.0.140.0030.07321.92
7.0.60.0030.07719.91
7.0.50.0070.07317.85
7.0.40.0000.09020.04
7.0.30.0300.06020.17
7.0.20.0300.06320.06
7.0.10.0130.08020.12
7.0.00.0170.07720.22
5.6.280.0070.07021.11
5.6.210.0170.06320.77
5.6.200.0100.07718.18
5.6.190.0100.07020.77
5.6.180.0130.05320.46
5.6.170.0300.05320.47
5.6.160.0000.07020.49
5.6.150.0100.07318.28
5.6.140.0100.07018.15
5.6.130.0030.07718.16
5.6.120.0070.04720.98
5.6.110.0030.04021.02
5.6.100.0030.08021.11
5.6.90.0000.04321.11
5.6.80.0030.08020.41
5.6.70.4270.02720.40
5.5.350.0100.03020.41
5.5.340.0130.08018.02
5.5.330.0070.07720.40
5.5.320.0330.07320.39
5.5.310.0430.07020.37
5.5.300.0070.05718.02
5.5.290.0030.08318.02
5.5.280.0100.08320.65
5.5.270.0070.08320.80
5.5.260.0170.07720.89
5.5.250.0030.04020.61
5.5.240.0230.03720.24
5.4.450.0100.05719.38
5.4.440.0930.05319.18
5.4.430.0870.04719.54
5.4.420.0900.05319.47
5.4.410.0030.06019.20
5.4.400.0770.04719.14
5.4.390.0930.07719.00
5.4.380.0400.04718.75
5.4.370.0770.05718.72
5.4.360.0370.05018.47
5.4.350.0230.06018.72
5.4.340.0230.05718.50
5.4.320.0040.03912.50
5.4.310.0080.03512.50
5.4.300.0060.03712.50
5.4.290.0090.04812.48
5.4.280.0080.03712.38
5.4.270.0080.03812.38
5.4.260.0090.05312.38
5.4.250.0060.04612.38
5.4.240.0040.03912.38
5.4.230.0040.04012.37
5.4.220.0070.03912.37
5.4.210.0090.03212.37
5.4.200.0060.03812.37
5.4.190.0090.04512.37
5.4.180.0090.04112.37
5.4.170.0090.05012.38
5.4.160.0100.04812.37
5.4.150.0060.03912.38
5.4.140.0070.03712.05
5.4.130.0030.04012.05
5.4.120.0120.04912.00
5.4.110.0080.04812.00
5.4.100.0080.03412.00
5.4.90.0110.03411.99
5.4.80.0060.03712.00
5.4.70.0070.03511.99
5.4.60.0100.03611.99
5.4.50.0060.04712.00
5.4.40.0040.03911.98
5.4.30.0110.04711.98
5.4.20.0070.04911.98
5.4.10.0030.03911.98
5.4.00.0050.03711.47
5.3.290.0040.04112.80
5.3.280.0080.04012.71
5.3.270.0070.03912.72
5.3.260.0060.04012.72
5.3.250.0030.04212.72
5.3.240.0090.04112.72
5.3.230.0090.04212.71
5.3.220.0060.03912.68
5.3.210.0100.03812.68
5.3.200.0120.03312.68
5.3.190.0080.04812.68
5.3.180.0120.04412.67
5.3.170.0120.05412.67
5.3.160.0090.05212.67
5.3.150.0090.04112.68
5.3.140.0100.03912.66
5.3.130.0100.04912.66
5.3.120.0080.04112.66
5.3.110.0050.04912.66
5.3.100.0080.04212.11
5.3.90.0050.04112.08
5.3.80.0070.04112.07
5.3.70.0150.07012.07
5.3.60.0110.04712.06
5.3.50.0070.05312.00
5.3.40.0080.05212.00
5.3.30.0110.05111.95
5.3.20.0070.05011.73
5.3.10.0120.06611.70
5.3.00.0140.09111.68
5.2.170.0220.0939.18
5.2.160.0080.0399.18
5.2.150.0070.0449.18
5.2.140.0200.0839.18
5.2.130.0100.0319.14
5.2.120.0080.0419.14
5.2.110.0040.0339.14
5.2.100.0060.0309.14
5.2.90.0080.0339.14
5.2.80.0070.0359.14
5.2.70.0110.0279.14
5.2.60.0060.0329.09
5.2.50.0100.0289.06
5.2.40.0070.0299.04
5.2.30.0100.0329.01
5.2.20.0050.0319.00
5.2.10.0070.0288.93
5.2.00.0090.0338.79
5.1.60.0050.0268.07
5.1.50.0040.0278.06
5.1.40.0040.0268.05
5.1.30.0060.0268.40
5.1.20.0040.0298.42
5.1.10.0080.0328.14
5.1.00.0090.0338.14
5.0.50.0040.0236.63
5.0.40.0070.0256.48
5.0.30.0060.0446.29
5.0.20.0060.0256.26
5.0.10.0050.0286.24
5.0.00.0030.0346.23
4.4.90.0060.0164.78
4.4.80.0070.0164.75
4.4.70.0020.0174.75
4.4.60.0020.0174.76
4.4.50.0030.0164.77
4.4.40.0040.0274.71
4.4.30.0030.0184.75
4.4.20.0030.0174.85
4.4.10.0050.0164.85
4.4.00.0090.0294.75
4.3.110.0130.0454.67
4.3.100.0050.0144.66
4.3.90.0040.0174.63
4.3.80.0030.0284.58
4.3.70.0030.0234.63
4.3.60.0060.0214.63
4.3.50.0060.0214.63
4.3.40.0050.0254.54
4.3.30.0030.0223.28
4.3.20.0080.0313.26
4.3.10.0060.0223.22
4.3.00.0000.01710.31

preferences:
46.66 ms | 401 KiB | 5 Q