3v4l.org

run code in 300+ PHP versions simultaneously
<?php //29783 Innistrad Champion of the Parish 2.75 3.17 0 2.22 5 2.54 6 function _AVG($args){ /*$count = func_num_args(); $args = func_get_args();*/ $count = count($args); $sum = array_sum($args); return bcdiv($sum,$count,2); } $avg = _AVG(array(3.17,2.22,2.54)); echo 'AVG: '. $avg."\n"; $addmtg = bcadd($avg,3.17,2); echo 'addmtg: '.$addmtg."\n"; $mul95 = bcmul($addmtg,0.95,2); echo 'mul95: '.$mul95."\n"; $div2 = bcdiv($mul95,2,2); echo 'div2: '.$div2;

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.0110.00716.63
8.3.50.0110.00822.12
8.3.40.0060.00918.67
8.3.30.0000.01518.82
8.3.20.0070.00720.34
8.3.10.0050.00323.64
8.3.00.0040.00420.84
8.2.180.0060.01216.38
8.2.170.0110.00422.96
8.2.160.0130.00020.43
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00422.07
8.2.110.0030.00722.09
8.2.100.0030.00717.91
8.2.90.0040.00419.05
8.2.80.0080.00017.97
8.2.70.0060.00317.63
8.2.60.0040.00418.03
8.2.50.0030.00518.07
8.2.40.0040.00417.97
8.2.30.0050.00217.95
8.2.20.0030.00517.63
8.2.10.0100.00017.68
8.2.00.0040.00417.64
8.1.280.0110.00425.92
8.1.270.0060.00322.21
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0000.00923.91
8.1.230.0070.00319.15
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0000.01017.36
8.1.190.0080.00017.41
8.1.180.0000.00818.10
8.1.170.0070.00318.64
8.1.160.0050.00222.02
8.1.150.0040.00418.69
8.1.140.0030.00617.55
8.1.130.0030.00317.81
8.1.120.0000.00717.47
8.1.110.0000.00817.45
8.1.100.0030.00417.48
8.1.90.0030.00517.50
8.1.80.0030.00317.46
8.1.70.0000.00717.39
8.1.60.0000.00917.49
8.1.50.0000.00817.48
8.1.40.0030.00617.36
8.1.30.0000.00717.43
8.1.20.0060.00317.61
8.1.10.0040.00417.44
8.1.00.0000.00917.34
8.0.300.0000.00718.77
8.0.290.0070.00017.18
8.0.280.0070.00018.36
8.0.270.0000.00717.11
8.0.260.0050.00316.69
8.0.250.0070.00016.95
8.0.240.0040.00416.96
8.0.230.0040.00416.83
8.0.220.0000.00716.96
8.0.210.0050.00316.88
8.0.200.0060.00016.97
8.0.190.0080.00016.84
8.0.180.0070.00016.90
8.0.170.0050.00516.96
8.0.160.0070.00016.93
8.0.150.0000.00716.84
8.0.140.0040.00416.79
8.0.130.0030.00313.37
8.0.120.0000.00816.74
8.0.110.0000.00716.82
8.0.100.0040.00416.96
8.0.90.0040.00416.84
8.0.80.0100.01016.87
8.0.70.0050.00216.91
8.0.60.0040.00416.86
8.0.50.0000.00816.89
8.0.30.0090.01016.91
8.0.20.0090.01217.40
8.0.10.0030.00616.96
8.0.00.0100.00916.71
7.4.330.0000.00615.00
7.4.320.0000.00716.48
7.4.300.0030.00316.51
7.4.290.0070.00016.61
7.4.280.0030.00316.40
7.4.270.0040.00416.52
7.4.260.0070.00016.39
7.4.250.0040.00416.58
7.4.240.0000.00716.59
7.4.230.0080.00016.61
7.4.220.0090.00916.63
7.4.210.0080.01016.60
7.4.200.0000.00716.60
7.4.190.0070.00016.64
7.4.160.0130.00316.63
7.4.150.0130.00617.40
7.4.140.0110.00717.86
7.4.130.0110.00816.65
7.4.120.0130.00816.54
7.4.110.0100.00616.38
7.4.100.0090.00916.57
7.4.90.0160.00016.55
7.4.80.0120.00619.39
7.4.70.0110.00616.50
7.4.60.0130.01016.52
7.4.50.0040.00016.39
7.4.40.0070.01022.77
7.4.30.0080.00816.45
7.4.00.0030.01214.82
7.3.330.0000.00613.30
7.3.320.0050.00013.17
7.3.310.0000.00716.18
7.3.300.0000.00616.29
7.3.290.0070.00716.21
7.3.280.0080.01216.28
7.3.270.0130.00617.40
7.3.260.0040.01516.59
7.3.250.0110.00716.57
7.3.240.0140.00716.37
7.3.230.0110.00716.39
7.3.210.0100.00716.55
7.3.200.0090.00819.39
7.3.190.0100.00716.47
7.3.180.0100.00716.28
7.3.170.0040.01316.33
7.3.160.0130.00316.36
7.3.120.0090.00614.54
7.3.10.0070.01316.82
7.3.00.0160.00616.39
7.2.330.0100.00716.60
7.2.320.0110.00516.86
7.2.310.0140.00916.42
7.2.300.0110.00516.79
7.2.290.0110.00916.70
7.2.130.0210.01216.61
7.2.120.0410.00616.75
7.2.110.0200.01016.61
7.2.100.0250.00016.50
7.2.90.0190.01116.57
7.2.80.0400.00717.09
7.2.70.0130.00516.32
7.2.60.0290.01116.78
7.2.50.0070.00716.45
7.2.40.0070.00716.50
7.2.30.0150.00716.48
7.2.20.0390.00316.27
7.2.10.0150.00916.34
7.2.00.0080.00517.99
7.1.250.0100.01015.18
7.1.200.0000.01015.78
7.1.100.0040.00718.17
7.1.70.0070.01016.96
7.1.60.0120.00919.29
7.1.50.0120.01216.86
7.1.00.0070.07322.45
7.0.200.0070.00316.85
7.0.140.0070.06322.09
7.0.60.0070.03720.00
7.0.50.0030.04017.87
7.0.40.0130.07720.30
7.0.30.0300.05720.23
7.0.20.0200.04020.10
7.0.10.0100.04720.16
7.0.00.0070.08320.25
5.6.280.0030.07721.13
5.6.210.0170.07320.55
5.6.200.0100.08018.24
5.6.190.0030.04320.50
5.6.180.0070.08020.45
5.6.170.0330.07020.40
5.6.160.0100.08020.44
5.6.150.0070.08318.18
5.6.140.0070.05318.28
5.6.130.0030.05718.30
5.6.120.0070.07021.01
5.6.110.0070.05721.12
5.6.100.0130.05020.95
5.6.90.0070.07020.97
5.6.80.0100.07720.39
5.6.70.0400.05720.44
5.5.350.0030.08020.31
5.5.340.0070.07318.03
5.5.330.0000.07320.21
5.5.320.0070.07720.31
5.5.310.0270.06020.34
5.5.300.0130.03318.03
5.5.290.0030.08317.95
5.5.280.0030.04720.89
5.5.270.0070.06320.96
5.5.260.0070.06720.77
5.5.250.0100.06720.61
5.5.240.0100.07720.06
5.4.450.1100.05019.28
5.4.440.0870.05019.28
5.4.430.0700.05719.54
5.4.420.0830.05719.28
5.4.410.0800.05719.31
5.4.400.0570.06319.26
5.4.390.0570.06018.95
5.4.380.0230.05018.75
5.4.370.0400.05018.81
5.4.360.0330.05318.52
5.4.350.0270.05318.47
5.4.340.0200.05318.70
5.4.320.0110.04112.51
5.4.310.0080.03812.50
5.4.300.0060.03712.50
5.4.290.0070.04212.50
5.4.280.0040.03712.39
5.4.270.0060.04012.40
5.4.260.0070.05412.39
5.4.250.0050.03812.39
5.4.240.0090.03912.40
5.4.230.0060.03912.39
5.4.220.0110.03512.39
5.4.210.0070.03812.39
5.4.200.0110.04312.39
5.4.190.0180.04112.38
5.4.180.0180.04312.39
5.4.170.0140.04912.39
5.4.160.0120.05112.39
5.4.150.0190.04712.39
5.4.140.0240.03812.07
5.4.130.0160.04212.06
5.4.120.0170.04212.02
5.4.110.0130.04312.02
5.4.100.0120.04612.02
5.4.90.0170.04212.02
5.4.80.0150.04312.01
5.4.70.0160.04112.01
5.4.60.0190.03812.01
5.4.50.0140.04212.01
5.4.40.0100.04612.00
5.4.30.0160.04511.99
5.4.20.0130.04412.00
5.4.10.0170.04011.99
5.4.00.0250.06211.48
5.3.290.0040.04612.80
5.3.280.0090.03812.71
5.3.270.0160.04412.73
5.3.260.0200.04212.72
5.3.250.0160.04312.72
5.3.240.0140.04612.72
5.3.230.0180.04512.71
5.3.220.0120.05012.68
5.3.210.0300.06812.68
5.3.200.0180.04312.68
5.3.190.0200.04212.68
5.3.180.0140.04912.67
5.3.170.0170.05112.66
5.3.160.0160.04612.67
5.3.150.0440.10712.67
5.3.140.0170.04712.66
5.3.130.0120.04912.66
5.3.120.0170.04612.66
5.3.110.0160.04912.66
5.3.100.0250.06712.13
5.3.90.0170.04212.11
5.3.80.0200.04312.09
5.3.70.0160.04512.10
5.3.60.0300.06012.07
5.3.50.0180.04112.03
5.3.40.0160.04312.03
5.3.30.0150.04412.00
5.3.20.0160.04611.77
5.3.10.0170.04011.74
5.3.00.0140.04311.71
5.2.170.0140.0369.23
5.2.160.0220.0259.22
5.2.150.0170.0309.23
5.2.140.0130.0359.23
5.2.130.0090.0399.19
5.2.120.0100.0389.18
5.2.110.0100.0389.19
5.2.100.0140.0339.19
5.2.90.0130.0349.19
5.2.80.0120.0359.17
5.2.70.0070.0409.17
5.2.60.0150.0329.13
5.2.50.0110.0379.09
5.2.40.0280.0819.08
5.2.30.0170.0339.05
5.2.20.0100.0399.05
5.2.10.0440.0688.96
5.2.00.0160.0358.81
5.1.60.0150.0268.11
5.1.50.0160.0588.10
5.1.40.0150.0288.09
5.1.30.0130.0318.43
5.1.20.0170.0288.46
5.1.10.0140.0328.18
5.1.00.0120.0318.18
5.0.50.0120.0236.66
5.0.40.0300.0646.52
5.0.30.0090.0376.34
5.0.20.0100.0276.32
5.0.10.0080.0266.29
5.0.00.0070.0406.29
4.4.90.0320.0584.78
4.4.80.0090.0184.76
4.4.70.0100.0214.75
4.4.60.0240.0454.76
4.4.50.0480.0754.77
4.4.40.0180.0534.71
4.4.30.0090.0174.76
4.4.20.0080.0234.85
4.4.10.0090.0214.85
4.4.00.0100.0344.76
4.3.110.0070.0214.67
4.3.100.0110.0214.67
4.3.90.0120.0154.64
4.3.80.0250.0754.58
4.3.70.0100.0184.63
4.3.60.0060.0234.63
4.3.50.0070.0204.62
4.3.40.0080.0304.54
4.3.30.0030.0223.33
4.3.20.0070.0213.32
4.3.10.0230.0663.28
4.3.00.0000.01713.14

preferences:
49.32 ms | 400 KiB | 5 Q