3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array(74.6779,25.918,44.9589); $total = array_sum($arr); $total_percentage = 0; foreach($arr as $total_item) { $percentage = ($total_item*100)/$total; $percentage = round($percentage,2); echo $percentage; echo '<br>'; $total_percentage+=$percentage; } echo $total_percentage;

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.00616.50
8.3.50.0150.00323.01
8.3.40.0070.01019.02
8.3.30.0100.01019.25
8.3.20.0040.00420.29
8.3.10.0040.00420.52
8.3.00.0080.00019.25
8.2.180.0110.00416.63
8.2.170.0070.00722.96
8.2.160.0070.01020.35
8.2.150.0070.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00421.12
8.2.110.0070.00421.26
8.2.100.0060.00618.03
8.2.90.0060.00319.35
8.2.80.0000.00917.97
8.2.70.0060.00317.75
8.2.60.0040.00418.05
8.2.50.0080.00418.07
8.2.40.0040.00418.33
8.2.30.0040.00419.49
8.2.20.0040.00417.86
8.2.10.0040.00418.19
8.2.00.0040.00417.77
8.1.280.0070.01025.92
8.1.270.0090.00022.20
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0050.00522.19
8.1.230.0080.00419.13
8.1.220.0050.00317.79
8.1.210.0060.00318.77
8.1.200.0150.00017.13
8.1.190.0040.00417.23
8.1.180.0050.00318.10
8.1.170.0040.00418.67
8.1.160.0040.00422.00
8.1.150.0040.00418.83
8.1.140.0040.00417.57
8.1.130.0070.00017.83
8.1.120.0070.00017.57
8.1.110.0000.00717.57
8.1.100.0000.00717.55
8.1.90.0040.00417.52
8.1.80.0000.00717.44
8.1.70.0000.00817.48
8.1.60.0030.00617.63
8.1.50.0000.00717.48
8.1.40.0050.00217.40
8.1.30.0040.00417.69
8.1.20.0020.00517.77
8.1.10.0070.00017.51
8.1.00.0000.00917.37
8.0.300.0040.00420.23
8.0.290.0070.00016.88
8.0.280.0000.00718.57
8.0.270.0070.00017.38
8.0.260.0050.00217.32
8.0.250.0030.00317.06
8.0.240.0040.00417.09
8.0.230.0030.00317.01
8.0.220.0040.00416.98
8.0.210.0040.00416.94
8.0.200.0030.00317.01
8.0.190.0090.00016.89
8.0.180.0000.00716.99
8.0.170.0030.00517.03
8.0.160.0070.00016.98
8.0.150.0000.00716.84
8.0.140.0050.00216.83
8.0.130.0000.00713.45
8.0.120.0000.00816.82
8.0.110.0070.00016.80
8.0.100.0050.00316.96
8.0.90.0030.00616.76
8.0.80.0090.01316.97
8.0.70.0080.00017.03
8.0.60.0080.00016.89
8.0.50.0080.00016.91
8.0.30.0130.00817.19
8.0.20.0120.00617.40
8.0.10.0000.00716.96
8.0.00.0100.01116.95
7.4.330.0020.00215.03
7.4.320.0000.00616.70
7.4.300.0030.00316.57
7.4.290.0000.00616.50
7.4.280.0000.00716.54
7.4.270.0000.00716.64
7.4.260.0000.00816.57
7.4.250.0040.00416.63
7.4.240.0070.00016.64
7.4.230.0070.00016.45
7.4.220.0090.00916.49
7.4.210.0100.01116.54
7.4.200.0040.00316.50
7.4.150.0030.01517.40
7.4.140.0160.00417.86
7.4.130.0050.01416.69
7.4.120.0080.01316.54
7.4.110.0030.01716.59
7.4.100.0080.01116.50
7.4.90.0130.00316.53
7.4.80.0120.00619.39
7.4.70.0130.00616.43
7.4.60.0030.01316.50
7.4.50.0030.00516.34
7.4.40.0100.00716.58
7.4.30.0110.00416.63
7.4.00.0040.01014.79
7.3.330.0000.00513.28
7.3.320.0000.00513.07
7.3.310.0030.00616.34
7.3.300.0000.00816.34
7.3.290.0070.00716.34
7.3.280.0090.00916.41
7.3.270.0060.01017.40
7.3.260.0130.01016.63
7.3.250.0100.00816.47
7.3.240.0100.01216.38
7.3.230.0120.00416.57
7.3.210.0100.00716.48
7.3.200.0030.01319.39
7.3.190.0140.00416.57
7.3.180.0120.00316.65
7.3.170.0090.01416.71
7.3.160.0040.01116.69
7.3.120.0100.00914.58
7.3.110.0070.01114.69
7.3.100.0050.01014.96
7.3.90.0080.00914.71
7.3.80.0110.00315.04
7.3.70.0050.00414.72
7.3.60.0060.00814.79
7.3.50.0050.01114.69
7.3.40.0080.00714.74
7.3.30.0030.00814.66
7.3.20.0040.01116.69
7.3.10.0070.00716.76
7.3.00.0030.01016.47
7.2.330.0070.01316.48
7.2.320.0070.01016.79
7.2.310.0090.00916.67
7.2.300.0130.00316.68
7.2.290.0060.01516.77
7.2.250.0070.01314.81
7.2.240.0090.01015.01
7.2.230.0030.01315.09
7.2.220.0030.01015.01
7.2.210.0080.00615.03
7.2.200.0030.01015.06
7.2.190.0050.01215.15
7.2.180.0090.00614.99
7.2.170.0070.00414.98
7.2.60.0430.00017.01
7.1.330.0050.01015.78
7.1.320.0020.01115.87
7.1.310.0050.00915.81
7.1.300.0070.00715.63
7.1.290.0050.00815.64
7.1.280.0040.00815.86
7.1.270.0020.01015.76
7.1.260.0080.00815.80
7.1.200.0060.00615.67
7.1.70.0100.00016.90
7.1.60.0160.00919.46
7.1.50.0070.01716.89
7.1.00.0030.08722.48
7.0.200.0040.00416.79
7.0.140.0000.07722.19
7.0.60.0030.04020.02
7.0.50.0100.04317.91
7.0.40.0070.05320.40
7.0.30.0270.04020.06
7.0.20.0270.05020.32
7.0.10.0070.05020.17
7.0.00.0070.03720.18
5.6.210.0070.07020.61
5.6.200.0070.08018.22
5.6.190.0070.08320.49
5.6.180.0200.04320.60
5.6.170.0270.08020.38
5.6.160.0100.05020.59
5.6.150.0070.04018.11
5.6.140.0070.04718.11
5.6.130.0100.03318.07
5.6.120.0100.07720.89
5.6.110.0100.05321.09
5.6.100.0070.06720.98
5.6.90.0270.07020.98
5.6.80.0100.08720.40
5.6.70.4430.03720.39
5.5.350.0130.08020.46
5.5.340.0030.07018.01
5.5.330.0130.06020.13
5.5.320.0230.05020.35
5.5.310.0230.07020.17
5.5.300.0000.07317.91
5.5.290.0030.04017.90
5.5.280.0070.05020.75
5.5.270.0030.05720.95
5.5.260.0030.09020.67
5.5.250.0070.08020.59
5.5.240.0270.08020.28
5.4.450.0100.05019.57
5.4.440.0170.04319.43
5.4.430.0100.04319.24
5.4.420.0100.04019.41
5.4.410.0170.03719.00
5.4.400.0530.03719.22
5.4.390.0270.04019.08
5.4.380.0300.06018.60
5.4.370.0270.05018.71
5.4.360.0170.06318.57
5.4.350.0230.06018.50
5.4.340.0200.06018.66
5.4.320.0050.03712.46
5.4.310.0050.03812.45
5.4.300.0030.03812.46
5.4.290.0060.04612.46
5.4.280.0060.03512.35
5.4.270.0060.03712.35
5.4.260.0050.03812.36
5.4.250.0050.03812.35
5.4.240.0100.03112.36
5.4.230.0030.04112.35
5.4.220.0060.03612.34
5.4.210.0030.03812.35
5.4.200.0040.03812.35
5.4.190.0070.03412.34
5.4.180.0040.03812.34
5.4.170.0040.03712.36
5.4.160.0060.03512.35
5.4.150.0070.03512.35
5.4.140.0060.04412.03
5.4.130.0040.03712.02
5.4.120.0050.03611.97
5.4.110.0050.03711.97
5.4.100.0100.03611.97
5.4.90.0060.04911.98
5.4.80.0090.05011.97
5.4.70.0090.04111.97
5.4.60.0060.03511.96
5.4.50.0090.03411.96
5.4.40.0090.03611.96
5.4.30.0100.04211.95
5.4.20.0080.03811.95
5.4.10.0040.03611.95
5.4.00.0040.03711.45
5.3.290.0060.04012.80
5.3.280.0030.04112.71
5.3.270.0070.03812.73
5.3.260.0050.03912.72
5.3.250.0060.03712.72
5.3.240.0050.03712.72
5.3.230.0040.03912.71
5.3.220.0060.04012.68
5.3.210.0060.04112.68
5.3.200.0070.03712.68
5.3.190.0070.03612.67
5.3.180.0080.03412.68
5.3.170.0070.03712.66
5.3.160.0060.04412.67
5.3.150.0080.03412.67
5.3.140.0060.03712.66
5.3.130.0050.04812.66
5.3.120.0030.04112.66
5.3.110.0030.04012.66
5.3.100.0070.03512.12
5.3.90.0050.03712.08
5.3.80.0040.03812.08
5.3.70.0020.04012.07
5.3.60.0040.03812.06
5.3.50.0040.03812.00
5.3.40.0070.03412.00
5.3.30.0060.03511.95
5.3.20.0100.03711.73
5.3.10.0080.04011.70
5.3.00.0080.04011.68
5.2.170.0070.0379.20
5.2.160.0070.0279.20
5.2.150.0060.0309.20
5.2.140.0020.0349.19
5.2.130.0050.0319.16
5.2.120.0030.0319.16
5.2.110.0040.0339.16
5.2.100.0080.0259.16
5.2.90.0020.0339.16
5.2.80.0030.0359.16
5.2.70.0050.0309.16
5.2.60.0040.0309.11
5.2.50.0050.0289.08
5.2.40.0040.0289.05
5.2.30.0050.0289.03
5.2.20.0060.0359.02
5.2.10.0070.0368.97
5.2.00.0070.0258.83
5.1.60.0080.0198.11
5.1.50.0010.0278.11
5.1.40.0030.0258.09
5.1.30.0090.0298.44
5.1.20.0030.0278.46
5.1.10.0030.0268.18
5.1.00.0040.0258.18
5.0.50.0010.0226.66
5.0.40.0030.0196.53
5.0.30.0040.0306.34
5.0.20.0030.0196.32
5.0.10.0040.0186.30
5.0.00.0020.0316.29
4.4.90.0040.0144.77
4.4.80.0020.0164.75
4.4.70.0010.0174.75
4.4.60.0040.0144.75
4.4.50.0030.0154.77
4.4.40.0020.0264.70
4.4.30.0040.0144.76
4.4.20.0050.0134.85
4.4.10.0020.0164.84
4.4.00.0060.0224.76
4.3.110.0020.0164.67
4.3.100.0020.0174.66
4.3.90.0050.0144.64
4.3.80.0020.0254.59
4.3.70.0000.0174.63
4.3.60.0030.0144.62
4.3.50.0030.0154.63
4.3.40.0030.0254.54
4.3.30.0020.0173.35
4.3.20.0040.0143.33
4.3.10.0030.0153.29
4.3.00.0070.01714.95

preferences:
46.63 ms | 401 KiB | 5 Q