3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = 4 / (sin(30*pi/180) + sin(40*pi/180) + sin(50*pi/180) + sin(60*pi/180)) var_dump($x);

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.06512.36
5.4.270.0140.05112.37
5.4.260.0170.04612.37
5.4.250.0100.05612.36
5.4.240.0090.05312.37
5.4.230.0140.05012.36
5.4.220.0340.10012.36
5.4.210.0200.04912.36
5.4.200.0220.05312.36
5.4.190.0160.05512.36
5.4.180.0140.05512.35
5.4.170.0150.06112.36
5.4.160.0110.03612.36
5.4.150.0060.06112.35
5.4.140.0190.05512.04
5.4.130.0130.05712.03
5.4.120.0160.05811.99
5.4.110.0050.05911.99
5.4.100.0220.06111.99
5.4.90.0110.05711.99
5.4.80.0200.12211.98
5.4.70.0140.06011.98
5.4.60.0130.06811.98
5.4.50.0100.05911.98
5.4.40.0160.05611.97
5.4.30.0110.05211.97
5.4.20.0080.04711.96
5.4.10.0160.05011.97
5.4.00.0100.04611.46
5.3.280.0130.05112.71
5.3.270.0130.05812.72
5.3.260.0140.07712.72
5.3.250.0110.05712.72
5.3.240.0070.05612.71
5.3.230.0110.05312.70
5.3.220.0170.04412.68
5.3.210.0120.04412.68
5.3.200.0150.06412.68
5.3.190.0110.05012.68
5.3.180.0120.04112.67
5.3.170.0110.03612.67
5.3.160.0060.04812.67
5.3.150.0070.05612.67
5.3.140.0070.03512.66
5.3.130.0070.04212.66
5.3.120.0070.04212.65
5.3.110.0070.04212.66
5.3.100.0090.04512.12
5.3.90.0060.04012.08
5.3.80.0120.04512.07
5.3.70.0090.03912.08
5.3.60.0070.03812.06
5.3.50.0060.04012.00
5.3.40.0060.03912.00
5.3.30.0110.03211.94
5.3.20.0130.04311.71
5.3.10.0090.04511.67
5.3.00.0210.06111.66
5.2.170.0060.0379.15
5.2.160.0050.0329.15
5.2.150.0060.0449.15
5.2.140.0060.0439.14
5.2.130.0100.0389.11
5.2.120.0090.0399.12
5.2.110.0060.0439.11
5.2.100.0120.0359.12
5.2.90.0080.0389.13
5.2.80.0070.0419.11
5.2.70.0100.0339.11
5.2.60.0070.0319.06
5.2.50.0060.0329.04
5.2.40.0070.0339.00
5.2.30.0040.0368.99
5.2.20.0070.0378.97
5.2.10.0230.0588.91
5.2.00.0100.0628.77
5.1.60.0070.0398.05
5.1.50.0130.0388.05
5.1.40.0130.0468.04
5.1.30.0090.0468.38
5.1.20.0040.0398.40
5.1.10.0070.0348.13
5.1.00.0080.0358.13
5.0.50.0030.0356.60
5.0.40.0050.0316.47
5.0.30.0080.0486.27
5.0.20.0120.0386.25
5.0.10.0080.0316.23
5.0.00.0080.0446.21
4.4.90.0050.0244.78
4.4.80.0090.0374.76
4.4.70.0040.0264.75
4.4.60.0070.0224.75
4.4.50.0060.0244.77
4.4.40.0040.0384.71
4.4.30.0040.0184.76
4.4.20.0070.0184.84
4.4.10.0040.0254.85
4.4.00.0040.0354.76
4.3.110.0050.0254.67
4.3.100.0050.0234.67
4.3.90.0040.0224.63
4.3.80.0030.0314.59
4.3.70.0070.0214.63
4.3.60.0060.0204.63
4.3.50.0050.0214.63
4.3.40.0050.0344.53
4.3.30.0060.0193.27
4.3.20.0040.0223.26
4.3.10.0040.0233.22
4.3.00.0030.0206.90

preferences:
143.8 ms | 1394 KiB | 7 Q