3v4l.org

run code in 300+ PHP versions simultaneously
<?php function xpnd($scientific, $precision){ # expand from scientific notation if(is_int($scientific)){ #don't convert integers return $scientific; } return sprintf("%.".$precision."F", $scientific); } echo "1 - ".bcdiv(0.000967, 2, 10).PHP_EOL; echo "2 - ".(40075036/86164.098903691);

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.61
8.3.50.0090.01422.01
8.3.40.0070.00718.42
8.3.30.0120.00319.13
8.3.20.0030.00620.21
8.3.10.0050.00323.48
8.3.00.0050.00319.02
8.2.180.0110.00316.75
8.2.170.0070.00722.96
8.2.160.0100.00720.58
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0050.00220.89
8.2.110.0050.00522.08
8.2.100.0040.00817.66
8.2.90.0040.00419.09
8.2.80.0030.00517.97
8.2.70.0060.00317.50
8.2.60.0050.00317.68
8.2.50.0000.00818.07
8.2.40.0040.00419.88
8.2.30.0000.00718.19
8.2.20.0080.00019.46
8.2.10.0070.00018.00
8.2.00.0090.00017.68
8.1.280.0060.00925.92
8.1.270.0080.00023.96
8.1.260.0060.00326.35
8.1.250.0080.00028.09
8.1.240.0030.00622.13
8.1.230.0110.00019.09
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0070.00417.23
8.1.190.0090.00017.11
8.1.180.0030.00618.10
8.1.170.0060.00318.57
8.1.160.0040.00422.01
8.1.150.0000.00718.60
8.1.140.0040.00417.36
8.1.130.0030.00317.86
8.1.120.0040.00417.33
8.1.110.0020.00517.31
8.1.100.0020.00517.41
8.1.90.0050.00217.42
8.1.80.0000.00917.41
8.1.70.0000.00717.38
8.1.60.0080.00017.50
8.1.50.0040.00417.46
8.1.40.0000.00717.38
8.1.30.0040.00417.59
8.1.20.0000.00817.63
8.1.10.0000.00817.47
8.1.00.0020.00517.48
8.0.300.0040.00418.77
8.0.290.0030.00517.05
8.0.280.0030.00318.27
8.0.270.0060.00317.20
8.0.260.0000.00617.20
8.0.250.0070.00016.88
8.0.240.0000.00716.82
8.0.230.0000.00716.76
8.0.220.0040.00416.86
8.0.210.0030.00316.74
8.0.200.0060.00016.91
8.0.190.0040.00416.88
8.0.180.0040.00416.90
8.0.170.0060.00316.73
8.0.160.0040.00416.71
8.0.150.0070.00016.84
8.0.140.0040.00416.82
8.0.130.0000.00513.28
8.0.120.0040.00416.78
8.0.110.0070.00016.83
8.0.100.0000.00716.79
8.0.90.0000.00716.90
8.0.80.0100.00516.86
8.0.70.0000.00816.74
8.0.60.0000.00716.61
8.0.50.0050.00216.62
8.0.30.0090.01416.96
8.0.20.0120.00617.40
8.0.10.0040.00416.92
8.0.00.0040.01816.53
7.4.330.0060.00015.00
7.4.320.0060.00016.46
7.4.300.0000.00616.52
7.4.290.0030.00316.38
7.4.280.0040.00316.43
7.4.270.0070.00016.38
7.4.260.0000.00716.50
7.4.250.0040.00416.52
7.4.240.0020.00516.37
7.4.230.0030.00316.38
7.4.220.0040.01416.55
7.4.210.0040.01216.41
7.4.200.0000.00816.41
7.4.190.0000.00716.43
7.4.160.0030.01016.32
7.4.150.0110.00717.40
7.4.140.0110.00717.86
7.4.130.0140.00316.49
7.4.120.0070.01116.45
7.4.110.0130.00416.45
7.4.100.0180.00616.65
7.4.90.0130.00316.36
7.4.80.0100.00719.39
7.4.70.0120.00616.30
7.4.60.0130.00316.53
7.4.50.0060.00316.15
7.4.40.0100.01016.57
7.4.30.0030.01416.54
7.4.00.0000.01414.72
7.3.330.0030.00313.13
7.3.320.0030.00313.16
7.3.310.0070.00016.27
7.3.300.0030.00316.24
7.3.290.0030.01716.25
7.3.280.0040.01316.23
7.3.270.0090.00917.40
7.3.260.0120.00816.43
7.3.250.0080.01016.45
7.3.240.0120.00616.33
7.3.230.0060.01016.58
7.3.210.0070.01016.28
7.3.200.0110.00719.39
7.3.190.0070.01016.51
7.3.180.0060.00916.17
7.3.170.0030.01316.50
7.3.160.0060.00916.26
7.3.120.0030.01414.42
7.3.10.0110.00016.41
7.3.00.0000.01116.57
7.2.330.0100.01116.34
7.2.320.0070.01516.51
7.2.310.0090.00916.79
7.2.300.0110.00916.31
7.2.290.0140.00416.66
7.2.130.0060.00616.93
7.2.120.0000.01216.91
7.2.110.0000.01116.82
7.2.100.0070.00716.89
7.2.90.0080.00417.07
7.2.80.0000.01517.01
7.2.70.0100.00016.89
7.2.60.0070.00716.72
7.2.50.0070.00716.76
7.2.40.0070.00316.63
7.2.30.0030.00916.73
7.2.20.0000.01116.95
7.2.10.0080.00416.74
7.2.00.0030.00818.17
7.1.250.0100.00015.44
7.1.200.0060.00615.83
7.1.100.0030.01318.15
7.1.70.0030.00317.13
7.1.60.0070.01619.46
7.1.50.0030.01716.88
7.1.00.0170.06322.35
7.0.200.0030.00616.70
7.0.140.0030.06722.18
7.0.60.0030.08720.03
7.0.50.0030.08017.83
7.0.40.0030.04320.09
7.0.30.0270.08020.30
7.0.20.0370.04720.23
7.0.10.0170.07020.10
7.0.00.0030.04720.05
5.6.280.0100.06721.07
5.6.210.0100.06720.55
5.6.200.0100.05018.16
5.6.190.0070.04320.50
5.6.180.0330.04320.61
5.6.170.0500.06320.62
5.6.160.0130.03720.52
5.6.150.0000.05018.18
5.6.140.0100.08018.23
5.6.130.0030.06018.17
5.6.120.0100.06021.01
5.6.110.0130.08020.99
5.6.100.0070.07720.96
5.6.90.0030.06020.98
5.6.80.0070.07020.41
5.5.350.0100.08720.41
5.5.340.0070.07318.09
5.5.330.0070.04720.21
5.5.320.0230.08020.27
5.5.310.0230.04020.34
5.5.300.0100.06317.99
5.5.290.0000.08717.98
5.5.280.0000.05020.88
5.5.270.0000.05720.63
5.5.260.0030.08720.76
5.5.250.0100.07720.68
5.5.240.0100.07020.15
5.4.450.0200.06319.56
5.4.440.0700.05719.39
5.4.430.0130.05319.52
5.4.420.1270.06719.66
5.4.410.0900.06719.18
5.4.400.0430.04719.24
5.4.390.0770.06318.98
5.4.380.0370.06018.54
5.4.370.0300.06718.83
5.4.360.0330.05718.48
5.4.350.0300.06018.44
5.4.340.0170.07318.54
5.4.320.0050.03712.50
5.4.310.0040.04112.50
5.4.300.0060.03712.50
5.4.290.0070.03812.50
5.4.280.0050.03712.39
5.4.270.0080.04812.40
5.4.260.0090.05612.40
5.4.250.0120.05312.40
5.4.240.0090.04912.40
5.4.230.0130.05212.39
5.4.220.0100.04912.39
5.4.210.0130.04612.39
5.4.200.0070.05012.39
5.4.190.0130.04312.39
5.4.180.0080.05012.39
5.4.170.0100.04912.39
5.4.160.0090.04812.39
5.4.150.0090.05012.39
5.4.140.0070.05412.07
5.4.130.0080.04712.05
5.4.120.0130.09212.02
5.4.110.0140.08212.01
5.4.100.0060.05012.01
5.4.90.0100.05012.02
5.4.80.0120.03912.01
5.4.70.0100.05112.00
5.4.60.0070.05012.01
5.4.50.0100.04812.01
5.4.40.0060.04912.00
5.4.30.0110.04612.00
5.4.20.0060.04111.99
5.4.10.0090.05212.00
5.4.00.0070.03911.48
5.3.290.0070.05112.80
5.3.280.0060.04112.71
5.3.270.0040.04512.72
5.3.260.0100.04112.72
5.3.250.0150.04212.71
5.3.240.0070.04112.72
5.3.230.0090.04512.71
5.3.220.0060.04412.68
5.3.210.0060.04212.68
5.3.200.0070.04012.68
5.3.190.0100.04812.68
5.3.180.0090.05012.67
5.3.170.0130.04712.67
5.3.160.0090.04912.68
5.3.150.0150.04612.67
5.3.140.0130.04412.66
5.3.130.0090.04612.66
5.3.120.0110.04512.66
5.3.110.0110.04612.65
5.3.100.0100.04312.12
5.3.90.0040.04612.10
5.3.80.0060.04812.09
5.3.70.0090.03912.09
5.3.60.0070.03912.08
5.3.50.0060.04112.03
5.3.40.0040.04112.03
5.3.30.0060.03811.98
5.3.20.0050.04111.76
5.3.10.0100.03311.73
5.3.00.0070.04411.72
5.2.170.0050.0349.22
5.2.160.0120.0309.21
5.2.150.0050.0339.22
5.2.140.0080.0309.21
5.2.130.0070.0309.18
5.2.120.0070.0299.18
5.2.110.0130.0289.19
5.2.100.0120.0379.17
5.2.90.0060.0389.18
5.2.80.0080.0419.17
5.2.70.0090.0409.17
5.2.60.0080.0399.13
5.2.50.0090.0389.10
5.2.40.0100.0339.07
5.2.30.0040.0449.04
5.2.20.0070.0389.04
5.2.10.0080.0348.96
5.2.00.0060.0418.82
5.1.60.0050.0428.11
5.1.50.0100.0348.11
5.1.40.0070.0378.07
5.1.30.0090.0398.43
5.1.20.0080.0388.45
5.1.10.0080.0358.18
5.1.00.0060.0398.18
5.0.50.0050.0286.65
5.0.40.0050.0286.52
5.0.30.0050.0416.32
5.0.20.0040.0276.31
5.0.10.0030.0306.29
5.0.00.0050.0386.29
4.4.90.0000.0264.78
4.4.80.0050.0214.76
4.4.70.0000.0254.75
4.4.60.0050.0204.76
4.4.50.0040.0214.77
4.4.40.0030.0344.71
4.4.30.0030.0224.76
4.4.20.0030.0234.84
4.4.10.0040.0214.85
4.4.00.0060.0304.76
4.3.110.0060.0204.67
4.3.100.0020.0234.66
4.3.90.0050.0184.63
4.3.80.0040.0314.58
4.3.70.0050.0184.63
4.3.60.0070.0184.63
4.3.50.0030.0234.63
4.3.40.0050.0314.53
4.3.30.0060.0193.34
4.3.20.0040.0203.31
4.3.10.0030.0223.28
4.3.00.0030.0237.63

preferences:
46.87 ms | 401 KiB | 5 Q