3v4l.org

run code in 300+ PHP versions simultaneously
<?php $t1 = microtime(true); $i = 1000; $a; while ($i--) { $a = 12.23 + 45.1 * (0.5 - 0.21); } echo (microtime(true) - $t1) * 1000000;
Output for 7.2.2, 7.2.13, 7.3.11, 7.4.1
22.88818359375
Output for 7.4.0
17.166137695312
Output for 7.2.0, 7.2.26, 7.3.13
23.126602172852
Output for 7.1.3, 7.3.12
28.848648071289
Output for 7.3.3, 7.3.10
25.98762512207
Output for 7.3.9
17.881393432617
Output for 7.3.8
29.087066650391
Output for 7.0.3, 7.3.7
33.855438232422
Output for 7.3.5 - 7.3.6
16.927719116211
Output for 7.2.20, 7.3.4
22.172927856445
Output for 7.2.21, 7.3.0, 7.3.2
20.980834960938
Output for 7.3.1
24.080276489258
Output for 7.1.13, 7.2.19, 7.2.25
25.033950805664
Output for 7.2.15, 7.2.24
27.894973754883
Output for 7.0.28, 7.0.32, 7.1.33, 7.2.23
46.968460083008
Output for 7.2.16, 7.2.22
26.941299438477
Output for 7.2.3 - 7.2.4, 7.2.11 - 7.2.12, 7.2.18
21.934509277344
Output for 7.2.17
41.961669921875
Output for 5.3.16, 7.0.6, 7.1.6, 7.2.14
40.054321289062
Output for 7.2.1, 7.2.6, 7.2.10
32.901763916016
Output for 7.0.23, 7.1.0, 7.1.4 - 7.1.5, 7.1.8, 7.1.15, 7.1.21, 7.1.24, 7.2.9
30.040740966797
Output for 7.2.8
35.04753112793
Output for 7.2.7
28.133392333984
Output for 7.0.12, 7.0.21, 7.0.25, 7.1.10, 7.2.5
36.001205444336
Output for 7.1.32
44.107437133789
Output for 5.3.22, 7.1.18, 7.1.25, 7.1.31
45.061111450195
Output for 5.1.6, 5.2.4, 7.1.30
52.928924560547
Output for 7.1.29
38.14697265625
Output for 7.1.28
68.187713623047
Output for 7.1.23, 7.1.27
31.948089599609
Output for 7.0.4, 7.0.24, 7.1.9, 7.1.26
30.994415283203
Output for 7.0.22, 7.1.2, 7.1.22
37.908554077148
Output for 7.0.13, 7.1.14, 7.1.20
34.093856811523
Output for 5.3.18, 5.3.26, 7.1.19
47.922134399414
Output for 7.1.17
34.809112548828
Output for 7.1.16
37.193298339844
Output for 7.1.12
77.009201049805
Output for 7.0.30, 7.1.11
29.802322387695
Output for 5.3.11, 5.3.19, 5.3.24, 7.1.7
63.896179199219
Output for 5.2.14, 7.1.1
82.015991210938
Output for 5.3.3, 7.0.33
61.988830566406
Output for 7.0.31
67.949295043945
Output for 7.0.29
75.817108154297
Output for 5.2.7, 7.0.27
55.074691772461
Output for 7.0.26
36.954879760742
Output for 7.0.20
49.114227294922
Output for 7.0.19
33.140182495117
Output for 7.0.18
46.014785766602
Output for 5.3.2, 7.0.17
68.902969360352
Output for 5.2.5, 5.3.20 - 5.3.21, 5.3.25, 7.0.16
61.03515625
Output for 7.0.15
91.075897216797
Output for 7.0.14
73.909759521484
Output for 5.5.34, 5.6.4, 7.0.11
108.00361633301
Output for 5.1.1, 5.2.15, 5.3.9, 7.0.10
66.995620727539
Output for 5.1.4, 7.0.9
60.081481933594
Output for 7.0.8
56.028366088867
Output for 5.3.14, 7.0.7
65.088272094727
Output for 7.0.5
48.87580871582
Output for 5.2.1, 5.2.11, 5.3.5, 7.0.2
51.021575927734
Output for 7.0.1
78.201293945312
Output for 7.0.0
38.862228393555
Output for 5.6.40
172.85346984863
Output for 5.6.39
163.07830810547
Output for 5.6.38
303.03001403809
Output for 5.5.22, 5.5.32, 5.6.37
149.01161193848
Output for 5.6.36
190.01960754395
Output for 5.4.17, 5.6.35
261.06834411621
Output for 5.4.26, 5.4.44, 5.6.34
133.99124145508
Output for 5.6.33
221.96769714355
Output for 5.6.32
121.8318939209
Output for 5.6.31
128.03077697754
Output for 5.6.30
215.05355834961
Output for 5.4.18, 5.5.3, 5.6.1, 5.6.29
113.96408081055
Output for 5.5.29, 5.6.9, 5.6.28
110.14938354492
Output for 5.6.27
203.84788513184
Output for 5.4.39, 5.6.26
157.11784362793
Output for 5.4.43, 5.6.25
141.85905456543
Output for 5.5.0, 5.6.24
211.95411682129
Output for 5.3.4, 5.6.23
110.86463928223
Output for 5.6.21 - 5.6.22
143.05114746094
Output for 5.4.13, 5.6.20
105.14259338379
Output for 5.6.8, 5.6.19
108.95729064941
Output for 5.6.18
158.07151794434
Output for 5.4.16, 5.6.17
200.03318786621
Output for 5.5.4, 5.6.16
102.99682617188
Output for 5.5.5, 5.6.15
118.97087097168
Output for 5.6.2, 5.6.14
180.95970153809
Output for 5.5.10, 5.6.12 - 5.6.13
107.0499420166
Output for 5.6.11
138.0443572998
Output for 5.4.38, 5.6.10
174.04556274414
Output for 5.6.7
128.98445129395
Output for 5.4.0, 5.4.22, 5.6.6
190.97328186035
Output for 5.4.45, 5.6.5
164.03198242188
Output for 5.6.3
178.09867858887
Output for 5.5.17, 5.6.0
173.09188842773
Output for 5.5.38
200.98686218262
Output for 5.5.11 - 5.5.12, 5.5.24, 5.5.37
103.95050048828
Output for 5.5.18, 5.5.36
227.92816162109
Output for 5.5.15, 5.5.35
123.02398681641
Output for 5.5.33
188.11225891113
Output for 5.4.24, 5.5.31
175.95291137695
Output for 5.5.30
196.93374633789
Output for 5.5.28
131.84547424316
Output for 5.5.27
132.08389282227
Output for 5.5.26
192.88063049316
Output for 5.5.25
204.08630371094
Output for 5.5.23
154.97207641602
Output for 5.5.21
212.19253540039
Output for 5.5.20
111.81831359863
Output for 5.5.19
118.01719665527
Output for 5.5.16
197.17216491699
Output for 5.5.14
104.90417480469
Output for 5.5.13
121.11663818359
Output for 5.5.9
159.97886657715
Output for 5.5.8
147.10426330566
Output for 5.5.7
139.95170593262
Output for 5.5.6
222.92137145996
Output for 5.5.2
159.02519226074
Output for 5.5.1
226.97448730469
Output for 5.4.42
224.11346435547
Output for 5.4.19, 5.4.41
226.02081298828
Output for 5.4.40
160.93254089355
Output for 5.4.29, 5.4.32, 5.4.37
112.05673217773
Output for 5.4.36
319.00405883789
Output for 5.4.35
149.96528625488
Output for 5.4.34
167.8466796875
Output for 5.4.33
176.90658569336
Output for 5.4.31
195.98007202148
Output for 5.4.30
164.98565673828
Output for 5.4.28
197.8874206543
Output for 5.4.27
255.82313537598
Output for 5.4.25
252.00843811035
Output for 5.4.23
246.04797363281
Output for 5.4.1, 5.4.21
186.92016601562
Output for 5.4.20
245.09429931641
Output for 5.4.15
187.87384033203
Output for 5.4.14
255.10787963867
Output for 5.4.12
232.21969604492
Output for 5.4.11
280.85708618164
Output for 5.4.10
281.09550476074
Output for 5.4.9
117.06352233887
Output for 5.4.8
278.94973754883
Output for 5.4.7
144.00482177734
Output for 5.4.6
274.8966217041
Output for 5.4.5
114.91775512695
Output for 5.4.4
187.15858459473
Output for 5.4.3
113.01040649414
Output for 5.4.2
165.93933105469
Output for 5.2.17, 5.3.27, 5.3.29
62.942504882812
Output for 5.3.23, 5.3.28
42.915344238281
Output for 5.3.17
71.048736572266
Output for 5.3.15
43.153762817383
Output for 5.3.7, 5.3.10, 5.3.13
50.067901611328
Output for 5.3.12
57.93571472168
Output for 5.3.8
53.882598876953
Output for 5.3.6
53.167343139648
Output for 5.3.1
49.829483032227
Output for 5.2.10, 5.3.0
54.121017456055
Output for 5.2.16
95.844268798828
Output for 5.1.2, 5.2.12 - 5.2.13
76.055526733398
Output for 5.2.9
87.02278137207
Output for 5.2.8
101.08947753906
Output for 5.2.6
74.148178100586
Output for 5.2.3
81.062316894531
Output for 5.2.2
82.969665527344
Output for 5.2.0
84.877014160156
Output for 5.1.5
89.883804321289
Output for 5.1.3
85.115432739258
Output for 5.1.0
51.975250244141
Output for 5.0.5
Notice: Undefined variable: a in /in/qAX2i on line 5 154.97207641602
Output for 5.0.4
Notice: Undefined variable: a in /in/qAX2i on line 5 144.95849609375
Output for 5.0.3
Notice: Undefined variable: a in /in/qAX2i on line 5 161.88621520996
Output for 5.0.2
Notice: Undefined variable: a in /in/qAX2i on line 5 154.97207641602
Output for 5.0.1
Notice: Undefined variable: a in /in/qAX2i on line 5 195.98007202148
Output for 5.0.0
Notice: Undefined variable: a in /in/qAX2i on line 5 141.14379882812
Output for 4.4.9
Notice: Undefined variable: a in /in/qAX2i on line 5 210.00000000002
Output for 4.4.8
Notice: Undefined variable: a in /in/qAX2i on line 5 238.99999999999
Output for 4.4.7
Notice: Undefined variable: a in /in/qAX2i on line 5 222
Output for 4.4.6
Notice: Undefined variable: a in /in/qAX2i on line 5 187.99999999997
Output for 4.4.5
Notice: Undefined variable: a in /in/qAX2i on line 5 223.00000000008
Output for 4.4.4
Notice: Undefined variable: a in /in/qAX2i on line 5 164.99999999997
Output for 4.4.3
Notice: Undefined variable: a in /in/qAX2i on line 5 214.99999999997
Output for 4.4.2
Notice: Undefined variable: a in /in/qAX2i on line 5 183.00000000004
Output for 4.3.11, 4.4.1
Notice: Undefined variable: a in /in/qAX2i on line 5 230.00000000001
Output for 4.4.0
Notice: Undefined variable: a in /in/qAX2i on line 5 233.00000000001
Output for 4.3.10
Notice: Undefined variable: a in /in/qAX2i on line 5 147.99999999998
Output for 4.3.9
Notice: Undefined variable: a in /in/qAX2i on line 5 172.99999999998
Output for 4.3.8
Notice: Undefined variable: a in /in/qAX2i on line 5 209.99999999993
Output for 4.3.7
Notice: Undefined variable: a in /in/qAX2i on line 5 229.99999999995
Output for 4.3.6
Notice: Undefined variable: a in /in/qAX2i on line 5 125.99999999996
Output for 4.3.5
Notice: Undefined variable: a in /in/qAX2i on line 5 198.00000000003
Output for 4.3.4
Notice: Undefined variable: a in /in/qAX2i on line 5 234.99999999999
Output for 4.3.3
Notice: Undefined variable: a in /in/qAX2i on line 5 219
Output for 4.3.2
Notice: Undefined variable: a in /in/qAX2i on line 5 265.00000000002
Output for 4.3.1
Notice: Undefined variable: a in /in/qAX2i on line 5 225.99999999995
Output for 4.3.0
Notice: Undefined variable: a in /in/qAX2i on line 5 215.99999999999

preferences:
261.01 ms | 401 KiB | 325 Q