3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(json_encode([0.00000000120023021301])); $a = (string) 0.00000000120023021301; var_dump($a); $b = 0.00000000120023021301; var_dump(number_format($b);

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)
5.4.280.0140.04512.36
5.4.270.0130.04912.36
5.4.260.0080.05612.36
5.4.250.0100.05212.36
5.4.240.0090.05612.36
5.4.230.0110.05512.35
5.4.220.0090.04512.35
5.4.210.0090.03712.36
5.4.200.0080.05512.36
5.4.190.0100.04612.35
5.4.180.0070.03612.35
5.4.170.0050.04312.36
5.4.160.0090.04412.35
5.4.150.0050.04312.35
5.4.140.0150.04312.04
5.4.130.0110.04612.02
5.4.120.0080.04011.98
5.4.110.0100.05111.98
5.4.100.0160.04311.98
5.4.90.0050.04211.98
5.4.80.0060.05011.98
5.4.70.0110.04911.98
5.4.60.0190.05611.98
5.4.50.0220.06911.98
5.4.40.0110.05411.97
5.4.30.0110.05411.96
5.4.20.0140.05511.96
5.4.10.0120.05811.96
5.4.00.0120.05411.46
5.3.280.0090.06212.71
5.3.270.0070.06312.72
5.3.260.0210.09912.71
5.3.250.0200.08912.72
5.3.240.0120.06712.72
5.3.230.0080.04912.71
5.3.220.0140.04912.68
5.3.210.0140.07312.68
5.3.200.0110.04512.68
5.3.190.0070.04012.68
5.3.180.0110.03712.68
5.3.170.0170.04612.66
5.3.160.0120.04912.67
5.3.150.0110.03712.68
5.3.140.0090.03812.66
5.3.130.0080.04312.65
5.3.120.0080.03912.66
5.3.110.0060.04312.66
5.3.100.0060.04012.12
5.3.90.0080.03912.09
5.3.80.0080.04012.07
5.3.70.0140.06912.08
5.3.60.0070.04912.06
5.3.50.0080.04412.00
5.3.40.0080.04012.00
5.3.30.0090.03711.94
5.3.20.0090.03711.70
5.3.10.0070.03911.67
5.3.00.0070.03911.65
5.2.170.0040.0349.15
5.2.160.0080.0329.15
5.2.150.0060.0379.15
5.2.140.0090.0389.15
5.2.130.0080.0289.11
5.2.120.0110.0299.12
5.2.110.0100.0299.12
5.2.100.0060.0309.11
5.2.90.0070.0319.11
5.2.80.0060.0359.11
5.2.70.0070.0329.11
5.2.60.0050.0349.05
5.2.50.0050.0359.03
5.2.40.0140.0459.00
5.2.30.0090.0538.98
5.2.20.0140.0428.97
5.2.10.0110.0508.90
5.2.00.0130.0418.76
5.1.60.0090.0328.04
5.1.50.0130.0388.04
5.1.40.0150.0568.02
5.1.30.0090.0378.38
5.1.20.0100.0578.39
5.1.10.0110.0338.12
5.1.00.0080.0558.12
5.0.50.0050.0256.60
5.0.40.0040.0266.46
5.0.30.0050.0486.27
5.0.20.0110.0356.24
5.0.10.0080.0286.22
5.0.00.0050.0356.21
4.4.90.0060.0214.78
4.4.80.0050.0334.76
4.4.70.0040.0234.75
4.4.60.0070.0224.75
4.4.50.0060.0174.77
4.4.40.0060.0264.71
4.4.30.0050.0264.76
4.4.20.0030.0244.84
4.4.10.0140.0284.85
4.4.00.0030.0304.75
4.3.110.0070.0154.66
4.3.100.0050.0164.67
4.3.90.0030.0174.64
4.3.80.0050.0254.58
4.3.70.0090.0124.63
4.3.60.0020.0184.63
4.3.50.0030.0184.63
4.3.40.0040.0354.54
4.3.30.0050.0233.28
4.3.20.0050.0233.26
4.3.10.0040.0233.21
4.3.00.0000.0236.69

preferences:
140.64 ms | 1394 KiB | 7 Q