3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Main { private $N; public function run() { $this->N = 7777; $string = ''; for ( $i = $this->N; $i --> 0; ) { $string .= ' '; } } public function getTime() { $mtime = microtime(); $mtime = explode( ' ', $mtime ); $mtime = $mtime[1] + $mtime[0]; return $mtime; } } $Main = new Main(); $start = $Main->getTime(); $Main->run(); $end = $Main->getTime(); echo "Method execution took " . ( $end - $start ) . " seconds";
Output for 7.3.0
Method execution took 0.00053310394287109 seconds
Output for 7.2.13
Method execution took 0.00047111511230469 seconds
Output for 7.1.6, 7.2.12
Method execution took 0.00066208839416504 seconds
Output for 7.2.11
Method execution took 0.00026202201843262 seconds
Output for 7.2.10
Method execution took 0.00082802772521973 seconds
Output for 7.2.9
Method execution took 0.014819860458374 seconds
Output for 7.2.8
Method execution took 0.00033283233642578 seconds
Output for 7.2.7
Method execution took 0.00068306922912598 seconds
Output for 7.2.6
Method execution took 0.00062680244445801 seconds
Output for 7.2.5
Method execution took 0.00066614151000977 seconds
Output for 7.0.5, 7.2.4
Method execution took 0.00038886070251465 seconds
Output for 7.2.3
Method execution took 0.00040102005004883 seconds
Output for 7.2.2
Method execution took 0.00027012825012207 seconds
Output for 7.2.1
Method execution took 0.00099396705627441 seconds
Output for 7.2.0
Method execution took 0.00071001052856445 seconds
Output for 7.1.25
Method execution took 0.00058794021606445 seconds
Output for 7.1.24
Method execution took 0.0005500316619873 seconds
Output for 7.1.23
Method execution took 0.00054097175598145 seconds
Output for 7.1.22
Method execution took 0.00055503845214844 seconds
Output for 7.1.21
Method execution took 0.00071096420288086 seconds
Output for 7.1.20
Method execution took 0.00049400329589844 seconds
Output for 7.1.19
Method execution took 0.0006101131439209 seconds
Output for 7.1.18
Method execution took 0.00054502487182617 seconds
Output for 7.1.17
Method execution took 0.00049591064453125 seconds
Output for 7.1.16
Method execution took 0.00037598609924316 seconds
Output for 7.1.15
Method execution took 0.00082993507385254 seconds
Output for 7.1.14
Method execution took 0.00054407119750977 seconds
Output for 7.1.13
Method execution took 0.00055193901062012 seconds
Output for 7.1.12
Method execution took 0.00061702728271484 seconds
Output for 7.1.11
Method execution took 0.0008080005645752 seconds
Output for 7.1.10
Method execution took 0.0013799667358398 seconds
Output for 7.1.9
Method execution took 0.00070309638977051 seconds
Output for 7.1.8
Method execution took 0.00059604644775391 seconds
Output for 7.1.7
Method execution took 0.0005640983581543 seconds
Output for 7.1.5
Method execution took 0.00062322616577148 seconds
Output for 7.1.4
Method execution took 0.0004429817199707 seconds
Output for 7.1.3
Method execution took 0.00040698051452637 seconds
Output for 7.1.2
Method execution took 0.00036406517028809 seconds
Output for 7.1.1
Method execution took 0.00085616111755371 seconds
Output for 7.1.0
Method execution took 0.00053906440734863 seconds
Output for 7.0.33
Method execution took 0.00058603286743164 seconds
Output for 7.0.32
Method execution took 0.00070381164550781 seconds
Output for 7.0.31
Method execution took 0.00038290023803711 seconds
Output for 7.0.30
Method execution took 0.00046110153198242 seconds
Output for 7.0.29
Method execution took 0.00073790550231934 seconds
Output for 7.0.23, 7.0.28
Method execution took 0.00039196014404297 seconds
Output for 7.0.27
Method execution took 0.0014622211456299 seconds
Output for 7.0.26
Method execution took 0.00045299530029297 seconds
Output for 7.0.25
Method execution took 0.0010600090026855 seconds
Output for 7.0.24
Method execution took 0.00072002410888672 seconds
Output for 7.0.22
Method execution took 0.00053715705871582 seconds
Output for 7.0.21
Method execution took 0.00066494941711426 seconds
Output for 7.0.20
Method execution took 0.00042819976806641 seconds
Output for 7.0.19
Method execution took 0.00070095062255859 seconds
Output for 7.0.18
Method execution took 0.00064706802368164 seconds
Output for 7.0.17
Method execution took 0.00064611434936523 seconds
Output for 7.0.16
Method execution took 0.00043606758117676 seconds
Output for 7.0.15
Method execution took 0.00060391426086426 seconds
Output for 7.0.14
Method execution took 0.00058484077453613 seconds
Output for 7.0.13
Method execution took 0.00087404251098633 seconds
Output for 7.0.12
Method execution took 0.012508869171143 seconds
Output for 7.0.11
Method execution took 0.00069189071655273 seconds
Output for 7.0.10
Method execution took 0.00058293342590332 seconds
Output for 7.0.9
Method execution took 0.0011260509490967 seconds
Output for 7.0.8
Method execution took 0.00093293190002441 seconds
Output for 7.0.7
Method execution took 0.00043296813964844 seconds
Output for 7.0.6
Method execution took 0.00062990188598633 seconds
Output for 7.0.4
Method execution took 0.00044012069702148 seconds
Output for 7.0.3
Method execution took 0.0010089874267578 seconds
Output for 7.0.2
Method execution took 0.00055694580078125 seconds
Output for 7.0.1
Method execution took 0.00040912628173828 seconds
Output for 7.0.0
Method execution took 0.00063490867614746 seconds
Output for 5.6.38
Method execution took 0.00098896026611328 seconds
Output for 5.6.37
Method execution took 0.0014019012451172 seconds
Output for 5.4.18, 5.6.36
Method execution took 0.0019030570983887 seconds
Output for 5.6.35
Method execution took 0.0021250247955322 seconds
Output for 5.6.34
Method execution took 0.001633882522583 seconds
Output for 5.6.33
Method execution took 0.0019159317016602 seconds
Output for 5.6.32
Method execution took 0.0014960765838623 seconds
Output for 5.6.31
Method execution took 0.0011849403381348 seconds
Output for 5.6.30
Method execution took 0.0011031627655029 seconds
Output for 5.6.29
Method execution took 0.0016028881072998 seconds
Output for 5.6.28
Method execution took 0.0011858940124512 seconds
Output for 5.6.27
Method execution took 0.0013778209686279 seconds
Output for 5.6.26
Method execution took 0.0010302066802979 seconds
Output for 5.6.25
Method execution took 0.00091004371643066 seconds
Output for 5.6.24
Method execution took 0.0011329650878906 seconds
Output for 5.6.23
Method execution took 0.0010511875152588 seconds
Output for 5.6.22
Method execution took 0.0011529922485352 seconds
Output for 5.6.21
Method execution took 0.0010180473327637 seconds
Output for 5.6.20
Method execution took 0.00078511238098145 seconds
Output for 5.6.19
Method execution took 0.0018081665039062 seconds
Output for 5.6.18
Method execution took 0.00084090232849121 seconds
Output for 5.6.17
Method execution took 0.0015261173248291 seconds
Output for 5.6.16
Method execution took 0.00094890594482422 seconds
Output for 5.6.15
Method execution took 0.00087285041809082 seconds
Output for 5.6.14
Method execution took 0.00086307525634766 seconds
Output for 5.6.13
Method execution took 0.00095009803771973 seconds
Output for 5.6.12
Method execution took 0.0011169910430908 seconds
Output for 5.6.11
Method execution took 0.0017440319061279 seconds
Output for 5.6.10
Method execution took 0.0008997917175293 seconds
Output for 5.4.29, 5.6.9
Method execution took 0.0011038780212402 seconds
Output for 5.6.8
Method execution took 0.00080990791320801 seconds
Output for 5.6.7
Method execution took 0.00089597702026367 seconds
Output for 5.6.6
Method execution took 0.0016369819641113 seconds
Output for 5.6.5
Method execution took 0.00081896781921387 seconds
Output for 5.6.4
Method execution took 0.0009920597076416 seconds
Output for 5.6.3
Method execution took 0.0011551380157471 seconds
Output for 5.6.2
Method execution took 0.0012719631195068 seconds
Output for 5.6.1
Method execution took 0.00094294548034668 seconds
Output for 5.6.0
Method execution took 0.0014700889587402 seconds
Output for 5.5.38
Method execution took 0.0010991096496582 seconds
Output for 5.5.37
Method execution took 0.0016798973083496 seconds
Output for 5.5.36
Method execution took 0.00098109245300293 seconds
Output for 5.5.35
Method execution took 0.0012359619140625 seconds
Output for 5.5.34
Method execution took 0.0008399486541748 seconds
Output for 5.5.33
Method execution took 0.0011711120605469 seconds
Output for 5.5.32
Method execution took 0.0010559558868408 seconds
Output for 5.5.31
Method execution took 0.00084400177001953 seconds
Output for 5.5.30
Method execution took 0.0025331974029541 seconds
Output for 5.5.29
Method execution took 0.001147985458374 seconds
Output for 5.5.28
Method execution took 0.0076260566711426 seconds
Output for 5.5.27
Method execution took 0.0016160011291504 seconds
Output for 5.5.26
Method execution took 0.00080394744873047 seconds
Output for 5.5.25
Method execution took 0.00084996223449707 seconds
Output for 5.5.24
Method execution took 0.0017499923706055 seconds
Output for 5.4.14, 5.5.23
Method execution took 0.0012218952178955 seconds
Output for 5.5.22
Method execution took 0.001399040222168 seconds
Output for 5.5.21
Method execution took 0.00086498260498047 seconds
Output for 5.5.20
Method execution took 0.0011270046234131 seconds
Output for 5.5.19
Method execution took 0.0020921230316162 seconds
Output for 5.5.18
Method execution took 0.0008540153503418 seconds
Output for 5.5.17
Method execution took 0.0011701583862305 seconds
Output for 5.5.16
Method execution took 0.0013210773468018 seconds
Output for 5.5.15
Method execution took 0.0010409355163574 seconds
Output for 5.5.14
Method execution took 0.00079488754272461 seconds
Output for 5.5.13
Method execution took 0.0011379718780518 seconds
Output for 5.5.12
Method execution took 0.0016229152679443 seconds
Output for 5.5.11
Method execution took 0.0016958713531494 seconds
Output for 5.5.10
Method execution took 0.0011470317840576 seconds
Output for 5.5.9
Method execution took 0.0015270709991455 seconds
Output for 5.5.8
Method execution took 0.0010778903961182 seconds
Output for 5.5.7
Method execution took 0.0016210079193115 seconds
Output for 5.5.3, 5.5.6
Method execution took 0.0016100406646729 seconds
Output for 5.5.5
Method execution took 0.0023229122161865 seconds
Output for 5.5.4
Method execution took 0.0019521713256836 seconds
Output for 5.5.2
Method execution took 0.001309871673584 seconds
Output for 5.5.1
Method execution took 0.000885009765625 seconds
Output for 5.5.0
Method execution took 0.0010750293731689 seconds
Output for 5.4.45
Method execution took 0.00084519386291504 seconds
Output for 5.4.44
Method execution took 0.0010640621185303 seconds
Output for 5.4.43
Method execution took 0.0012400150299072 seconds
Output for 5.4.42
Method execution took 0.0016429424285889 seconds
Output for 5.4.41
Method execution took 0.0017430782318115 seconds
Output for 5.4.40
Method execution took 0.0015377998352051 seconds
Output for 5.4.39
Method execution took 0.0012259483337402 seconds
Output for 5.4.38
Method execution took 0.0011029243469238 seconds
Output for 5.4.37
Method execution took 0.0021028518676758 seconds
Output for 5.4.36
Method execution took 0.00086402893066406 seconds
Output for 5.4.35
Method execution took 0.0019619464874268 seconds
Output for 5.4.34
Method execution took 0.0020489692687988 seconds
Output for 5.4.33
Method execution took 0.0017220973968506 seconds
Output for 5.4.32
Method execution took 0.00079202651977539 seconds
Output for 5.4.31
Method execution took 0.0013859272003174 seconds
Output for 5.4.30
Method execution took 0.0011289119720459 seconds
Output for 5.4.28
Method execution took 0.0010490417480469 seconds
Output for 5.4.27
Method execution took 0.00082111358642578 seconds
Output for 5.4.26
Method execution took 0.00096893310546875 seconds
Output for 5.4.25
Method execution took 0.00076413154602051 seconds
Output for 5.4.24
Method execution took 0.0012021064758301 seconds
Output for 5.4.23
Method execution took 0.0013511180877686 seconds
Output for 5.4.22
Method execution took 0.00083303451538086 seconds
Output for 5.4.21
Method execution took 0.0011429786682129 seconds
Output for 5.4.20
Method execution took 0.00088596343994141 seconds
Output for 5.4.19
Method execution took 0.0019741058349609 seconds
Output for 5.4.17
Method execution took 0.00079989433288574 seconds
Output for 5.4.16
Method execution took 0.0010840892791748 seconds
Output for 5.4.15
Method execution took 0.00089502334594727 seconds
Output for 5.4.13
Method execution took 0.00095701217651367 seconds
Output for 5.4.12
Method execution took 0.0011518001556396 seconds
Output for 5.2.5, 5.4.11
Method execution took 0.0022580623626709 seconds
Output for 5.4.10
Method execution took 0.0017769336700439 seconds
Output for 5.4.9
Method execution took 0.0016601085662842 seconds
Output for 5.4.8
Method execution took 0.0015420913696289 seconds
Output for 5.4.7
Method execution took 0.001431941986084 seconds
Output for 5.4.6
Method execution took 0.00089621543884277 seconds
Output for 5.4.5
Method execution took 0.0023999214172363 seconds
Output for 5.4.4
Method execution took 0.0014691352844238 seconds
Output for 5.4.3
Method execution took 0.00105881690979 seconds
Output for 5.4.2
Method execution took 0.0012679100036621 seconds
Output for 5.4.1
Method execution took 0.001183032989502 seconds
Output for 5.4.0
Method execution took 0.0020101070404053 seconds
Output for 5.3.29
Method execution took 0.0010221004486084 seconds
Output for 5.3.28
Method execution took 0.0010030269622803 seconds
Output for 5.3.27
Method execution took 0.0010051727294922 seconds
Output for 5.3.26
Method execution took 0.0019161701202393 seconds
Output for 5.3.25
Method execution took 0.0020020008087158 seconds
Output for 5.3.24
Method execution took 0.0022361278533936 seconds
Output for 5.3.23
Method execution took 0.0018370151519775 seconds
Output for 5.3.22
Method execution took 0.0020811557769775 seconds
Output for 5.3.21
Method execution took 0.0021021366119385 seconds
Output for 5.3.20
Method execution took 0.0015771389007568 seconds
Output for 5.3.19
Method execution took 0.0020570755004883 seconds
Output for 5.3.18
Method execution took 0.0012280941009521 seconds
Output for 5.3.17
Method execution took 0.0015461444854736 seconds
Output for 5.3.16
Method execution took 0.0010921955108643 seconds
Output for 5.3.15
Method execution took 0.0011851787567139 seconds
Output for 5.3.14
Method execution took 0.0017380714416504 seconds
Output for 5.3.13
Method execution took 0.0017330646514893 seconds
Output for 5.3.12
Method execution took 0.00074410438537598 seconds
Output for 5.3.11
Method execution took 0.00078606605529785 seconds
Output for 5.3.10
Method execution took 0.0014090538024902 seconds
Output for 5.3.9
Method execution took 0.0021500587463379 seconds
Output for 5.3.8
Method execution took 0.0016942024230957 seconds
Output for 5.3.7
Method execution took 0.0012290477752686 seconds
Output for 5.3.6
Method execution took 0.0025360584259033 seconds
Output for 5.3.5
Method execution took 0.0019559860229492 seconds
Output for 5.3.4
Method execution took 0.0022110939025879 seconds
Output for 5.3.3
Method execution took 0.0018091201782227 seconds
Output for 5.3.2
Method execution took 0.00098419189453125 seconds
Output for 5.3.1
Method execution took 0.0012900829315186 seconds
Output for 5.3.0
Method execution took 0.0010972023010254 seconds
Output for 5.2.17
Method execution took 0.0014731884002686 seconds
Output for 5.2.16
Method execution took 0.0015170574188232 seconds
Output for 5.2.15
Method execution took 0.0012180805206299 seconds
Output for 5.2.14
Method execution took 0.000946044921875 seconds
Output for 5.2.13
Method execution took 0.0025930404663086 seconds
Output for 5.2.12
Method execution took 0.0012249946594238 seconds
Output for 5.2.11
Method execution took 0.0009310245513916 seconds
Output for 5.2.10
Method execution took 0.0013771057128906 seconds
Output for 5.2.9
Method execution took 0.0015790462493896 seconds
Output for 5.2.8
Method execution took 0.0014631748199463 seconds
Output for 5.2.7
Method execution took 0.0016531944274902 seconds
Output for 5.2.6
Method execution took 0.0012781620025635 seconds
Output for 5.2.4
Method execution took 0.0015091896057129 seconds
Output for 5.2.3
Method execution took 0.001284122467041 seconds
Output for 5.2.2
Method execution took 0.0024070739746094 seconds
Output for 5.2.1
Method execution took 0.001349925994873 seconds
Output for 5.2.0
Method execution took 0.0030691623687744 seconds
Output for 5.1.6
Method execution took 0.0017788410186768 seconds
Output for 5.1.5
Method execution took 0.0017879009246826 seconds
Output for 5.1.4
Method execution took 0.0018188953399658 seconds
Output for 5.1.3
Method execution took 0.0015959739685059 seconds
Output for 5.1.2
Method execution took 0.0020668506622314 seconds
Output for 5.1.1
Method execution took 0.0017538070678711 seconds
Output for 5.1.0
Method execution took 0.0017518997192383 seconds
Output for 5.0.5
Method execution took 0.0049769878387451 seconds
Output for 5.0.4
Method execution took 0.0046391487121582 seconds
Output for 5.0.3
Method execution took 0.0043661594390869 seconds
Output for 5.0.2
Method execution took 0.0031650066375732 seconds
Output for 5.0.1
Method execution took 0.0026929378509521 seconds
Output for 5.0.0
Method execution took 0.0034899711608887 seconds
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /in/luAep on line 5
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.3.11, 4.4.0 - 4.4.1
Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /in/luAep on line 5
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `T_OLD_FUNCTION' or `T_FUNCTION' or `T_VAR' or `'}'' in /in/luAep on line 5
Process exited with code 255.

preferences:
245.37 ms | 401 KiB | 287 Q