3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public $prop1=1, $prop2=22,$prop3=333,$prop4=4444; } $t = new Test; echo count( (array) $t);

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.0100.01018.43
8.3.50.0120.00321.08
8.3.40.0040.01118.73
8.3.30.0090.00620.12
8.3.20.0050.00320.23
8.3.10.0030.00522.09
8.3.00.0040.00422.52
8.2.180.0090.00616.50
8.2.170.0120.00322.96
8.2.160.0040.01120.38
8.2.150.0050.00324.18
8.2.140.0050.00324.66
8.2.130.0110.00726.16
8.2.120.0080.00019.66
8.2.110.0060.00322.21
8.2.100.0110.00019.28
8.2.90.0000.00819.26
8.2.80.0000.00919.42
8.2.70.0080.00017.63
8.2.60.0030.00618.04
8.2.50.0000.00918.07
8.2.40.0000.00718.22
8.2.30.0050.00317.93
8.2.20.0080.00017.62
8.2.10.0040.00417.56
8.2.00.0040.00417.66
8.1.280.0130.00725.92
8.1.270.0030.00520.27
8.1.260.0000.00826.35
8.1.250.0070.00028.09
8.1.240.0040.00423.91
8.1.230.0030.00719.05
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0030.00617.35
8.1.190.0060.00317.39
8.1.180.0070.00018.65
8.1.170.0060.00318.50
8.1.160.0000.00722.13
8.1.150.0040.00418.65
8.1.140.0000.00717.45
8.1.130.0030.00317.83
8.1.120.0030.00317.49
8.1.110.0050.00217.48
8.1.100.0040.00417.45
8.1.90.0030.00317.34
8.1.80.0050.00317.43
8.1.70.0030.00317.34
8.1.60.0040.00417.55
8.1.50.0040.00417.41
8.1.40.0000.00717.39
8.1.30.0030.00517.64
8.1.20.0040.00417.54
8.1.10.0040.00417.53
8.1.00.0000.00717.40
8.0.300.0000.00718.77
8.0.290.0040.00417.05
8.0.280.0070.00018.30
8.0.270.0000.00817.24
8.0.260.0000.00716.85
8.0.250.0030.00316.88
8.0.240.0070.00016.97
8.0.230.0000.00716.79
8.0.220.0000.00716.67
8.0.210.0030.00316.71
8.0.200.0060.00016.91
8.0.190.0040.00416.92
8.0.180.0000.00716.84
8.0.170.0070.00016.93
8.0.160.0050.00316.94
8.0.150.0050.00216.73
8.0.140.0050.00316.87
8.0.130.0030.00313.34
8.0.120.0040.00416.79
8.0.110.0040.00416.95
8.0.100.0040.00416.95
8.0.90.0030.00316.79
8.0.80.0040.01116.85
8.0.70.0000.00716.70
8.0.60.0050.00216.95
8.0.50.0040.00416.94
8.0.30.0080.01217.21
8.0.20.0110.00817.40
8.0.10.0070.00016.80
8.0.00.0100.00816.74
7.4.330.0000.00515.00
7.4.320.0030.00316.44
7.4.300.0000.00716.54
7.4.290.0040.00416.57
7.4.280.0030.00316.38
7.4.270.0000.00616.58
7.4.260.0100.00016.46
7.4.250.0000.00716.36
7.4.240.0000.00716.59
7.4.230.0000.00716.40
7.4.220.0070.01716.70
7.4.210.0050.00916.54
7.4.200.0000.00816.70
7.4.190.0050.00216.72
7.4.160.0130.00316.65
7.4.150.0040.01717.40
7.4.140.0120.00617.86
7.4.130.0100.00716.52
7.4.120.0110.00816.51
7.4.110.0070.01116.34
7.4.100.0110.01416.50
7.4.90.0060.01616.58
7.4.80.0030.01319.39
7.4.70.0140.00316.46
7.4.60.0080.00916.66
7.4.50.0040.00416.62
7.4.40.0090.00622.77
7.4.30.0100.01016.44
7.4.00.0070.01014.70
7.3.330.0000.00513.24
7.3.320.0020.00213.10
7.3.310.0030.00316.19
7.3.300.0000.00616.17
7.3.290.0080.00616.19
7.3.280.0040.01116.26
7.3.270.0090.01317.40
7.3.260.0160.00316.62
7.3.250.0070.01216.36
7.3.240.0090.01216.50
7.3.230.0080.00816.55
7.3.210.0040.01416.34
7.3.200.0030.01719.39
7.3.190.0090.01316.55
7.3.180.0070.01016.49
7.3.170.0110.00616.27
7.3.160.0090.00616.26
7.3.120.0070.01014.76
7.2.330.0140.00416.74
7.2.320.0060.01516.64
7.2.310.0090.00916.60
7.2.300.0090.00616.43
7.2.290.0060.00916.64
7.2.00.0000.01219.49
7.1.100.0000.01318.20
7.1.70.0140.00417.21
7.1.60.0000.02219.40
7.1.50.0100.01416.94
7.1.00.0100.04722.31
7.0.200.0070.00716.72
7.0.140.0000.07022.00
7.0.60.0070.03719.92
7.0.50.0000.04317.72
7.0.40.0070.04020.09
7.0.30.0270.05720.23
7.0.20.0270.07020.13
7.0.10.0330.04320.11
7.0.00.0070.04720.25
5.6.280.0070.07021.09
5.6.210.0070.05020.72
5.6.200.0100.08018.25
5.6.190.0070.04020.33
5.6.180.4200.04020.34
5.6.170.0400.08020.39
5.6.160.0070.08320.48
5.6.150.0030.05318.15
5.6.140.0100.07018.17
5.6.130.0130.03718.26
5.6.120.0100.05720.99
5.6.110.0130.06320.99
5.6.100.0130.08021.11
5.6.90.0070.08020.96
5.6.80.0070.06720.50
5.6.70.0130.07020.38
5.5.350.0130.08320.35
5.5.340.0030.04318.05
5.5.330.0130.05720.32
5.5.320.0230.06720.36
5.5.310.0270.05020.34
5.5.300.0170.07018.06
5.5.290.0030.08717.94
5.5.280.0030.06020.68
5.5.270.0100.03720.84
5.5.260.0130.08020.76
5.5.250.0070.07720.61
5.5.240.0070.08720.18
5.4.450.0770.05719.20
5.4.440.0730.05319.70
5.4.430.0430.06719.61
5.4.420.0900.05719.47
5.4.410.0800.05719.50
5.4.400.0230.06018.77
5.4.390.0330.05318.74
5.4.380.0330.05018.76
5.4.370.0130.07018.63
5.4.360.0070.05718.59
5.4.350.0080.04112.02
5.4.340.0080.03512.01
5.4.320.0110.03712.50
5.4.310.0120.03812.49
5.4.300.0090.04412.50
5.4.290.0100.03612.50
5.4.280.0220.07212.36
5.4.270.0120.04812.36
5.4.260.0170.04712.37
5.4.250.0130.05012.37
5.4.240.0110.04812.36
5.4.230.0110.05112.36
5.4.220.0140.04712.36
5.4.210.0120.04812.35
5.4.200.0110.05112.36
5.4.190.0140.04612.36
5.4.180.0130.04512.36
5.4.170.0110.05012.36
5.4.160.0120.04612.36
5.4.150.0100.05712.36
5.4.140.0130.05112.04
5.4.130.0140.04712.03
5.4.120.0100.05311.98
5.4.110.0100.05111.98
5.4.100.0130.04711.98
5.4.90.0080.05411.98
5.4.80.0040.08811.98
5.4.70.0100.05011.98
5.4.60.0090.04811.98
5.4.50.0140.04711.97
5.4.40.0080.05411.97
5.4.30.0110.05411.96
5.4.20.0100.05411.96
5.4.10.0120.05111.96
5.4.00.0100.05611.45
5.3.290.0040.04212.80
5.3.280.0100.05612.71
5.3.270.0090.05612.72
5.3.260.0140.05112.72
5.3.250.0110.05212.72
5.3.240.0070.05512.72
5.3.230.0120.05012.71
5.3.220.0130.05012.68
5.3.210.0100.06112.68
5.3.200.0070.05312.68
5.3.190.0100.05112.68
5.3.180.0080.05312.68
5.3.170.0160.04812.67
5.3.160.0100.05212.67
5.3.150.0140.04812.67
5.3.140.0080.05412.66
5.3.130.0130.05012.66
5.3.120.0130.05712.66
5.3.110.0140.04912.65
5.3.100.0130.04512.12
5.3.90.0150.04612.09
5.3.80.0080.04712.08
5.3.70.0040.05112.07
5.3.60.0100.06412.07
5.3.50.0090.05012.00
5.3.40.0140.05312.00
5.3.30.0090.05611.95
5.3.20.0130.05911.73
5.3.10.0090.03911.70
5.3.00.0080.04211.69
5.2.170.0110.0299.18
5.2.160.0080.0319.18
5.2.150.0080.0319.18
5.2.140.0080.0429.18
5.2.130.0090.0389.13
5.2.120.0070.0399.14
5.2.110.0110.0519.14
5.2.100.0090.0389.14
5.2.90.0100.0319.14
5.2.80.0070.0319.14
5.2.70.0060.0329.14
5.2.60.0060.0329.09
5.2.50.0090.0299.06
5.2.40.0110.0259.04
5.2.30.0060.0319.02
5.2.20.0040.0328.99
5.2.10.0060.0298.91
5.2.00.0040.0328.78
5.1.60.0020.0368.06
5.1.50.0030.0288.06
5.1.40.0060.0348.04
5.1.30.0080.0358.39
5.1.20.0040.0288.42
5.1.10.0070.0258.14
5.1.00.0080.0328.14
5.0.50.0130.0466.62
5.0.40.0070.0276.47
5.0.30.0100.0446.29
5.0.20.0050.0266.25
5.0.10.0040.0276.23
5.0.00.0100.0546.22
4.4.90.0060.0194.78
4.4.80.0030.0214.76
4.4.70.0030.0204.76
4.4.60.0040.0194.75
4.4.50.0010.0234.77
4.4.40.0040.0314.71
4.4.30.0060.0234.76
4.4.20.0080.0334.85
4.4.10.0060.0284.85
4.4.00.0080.0344.76
4.3.110.0080.0224.67
4.3.100.0050.0254.67
4.3.90.0040.0234.63
4.3.80.0030.0364.58
4.3.70.0090.0234.63
4.3.60.0070.0354.63
4.3.50.0090.0374.63
4.3.40.0100.0484.54
4.3.30.0050.0193.29
4.3.20.0040.0203.27
4.3.10.0050.0213.23
4.3.00.0100.0206.81

preferences:
43.32 ms | 401 KiB | 5 Q