3v4l.org

run code in 300+ PHP versions simultaneously
<?php $timestart = microtime( true ); $class = 'css'; $item = array( 'foo', 'bar', 'baz' ); for($i=0;$i<1000000;$i++){ $str = sprintf( "<a class='button button-secondary%s' href='themes.php?page=%s'$></a>", $class, $item[2], $item[0] ); } $timeend = microtime( true ); $timetotal = $timeend - $timestart; $r = number_format( $timetotal, 3 ); echo $r;
Output for 7.2.0
0.247
Output for 7.1.7
0.192
Output for 7.1.6
0.261
Output for 7.1.5
0.235
Output for 7.1.0
0.295
Output for 7.0.20
0.194
Output for 7.0.14
0.249
Output for 5.6.7, 7.0.6
0.231
Output for 7.0.5
0.224
Output for 7.0.4
0.195
Output for 7.0.3
0.226
Output for 7.0.2
0.239
Output for 7.0.1
0.212
Output for 7.0.0
0.225
Output for 5.6.28
0.006
Output for 5.6.21
0.276
Output for 5.6.20
0.311
Output for 5.5.26, 5.6.19
0.297
Output for 5.6.18
0.304
Output for 5.6.17
0.274
Output for 5.6.16
0.284
Output for 5.6.15
0.315
Output for 5.6.14
0.323
Output for 5.6.13
0.292
Output for 5.6.12
0.293
Output for 5.4.42, 5.6.11
0.325
Output for 5.6.10
0.331
Output for 5.6.9
0.372
Output for 5.5.25, 5.6.8
0.335
Output for 5.5.32, 5.5.35
0.312
Output for 5.5.34
0.348
Output for 5.5.24, 5.5.33
0.309
Output for 5.5.31
0.321
Output for 5.5.30
0.342
Output for 5.5.29
0.377
Output for 5.4.38, 5.5.28
0.306
Output for 5.5.27
0.328
Output for 5.4.45
0.294
Output for 5.4.44
0.296
Output for 5.4.40, 5.4.43
0.320
Output for 5.4.41
0.333
Output for 5.4.39
0.329
Output for 5.4.37
0.373
Output for 5.4.36
0.298
Output for 5.4.35
0.787
Output for 5.4.34
0.932
Output for 5.4.32
0.484
Output for 5.4.31
0.517
Output for 5.4.30
0.468
Output for 5.4.29
0.487
Output for 5.4.28
0.618
Output for 5.4.27
0.513
Output for 5.4.3, 5.4.26
0.572
Output for 5.4.25
0.556
Output for 5.4.24
0.629
Output for 5.4.23
0.605
Output for 5.4.22
0.648
Output for 5.4.21
0.595
Output for 5.4.20
0.621
Output for 5.4.19
0.709
Output for 5.4.18
0.575
Output for 5.4.17
0.689
Output for 5.4.16
0.678
Output for 5.4.15
0.536
Output for 5.4.14
0.597
Output for 5.4.13
0.662
Output for 5.4.12
0.651
Output for 5.4.11
0.628
Output for 5.4.10
0.739
Output for 5.4.9
0.632
Output for 5.4.8
0.610
Output for 5.4.7
0.731
Output for 5.4.6
0.633
Output for 5.4.5
0.625
Output for 5.4.4
0.661
Output for 5.4.2
0.631
Output for 5.4.1
0.671
Output for 5.4.0
0.695

preferences:
57.06 ms | 513 KiB | 5 Q