3v4l.org

run code in 300+ PHP versions simultaneously
<?php $prg = file_get_contents(implode('/',[$_SERVER['DOCUMENT_ROOT'],'../miser-vars/PRG/MISER.BAS'])); $Pattern=file_get_contents(implode('/',[$_SERVER['DOCUMENT_ROOT'],'../miser-vars/regex/LINES.re'])); $pagedata=file_get_contents(implode('/',[$_SERVER['DOCUMENT_ROOT'],'../miser-vars/html/index.html'])); $PRG2=''; $PRG2.= '<table><tbody>'; while(true) { while(true) { if(strlen($prg)===0){break 1;} preg_match($Pattern,$prg,$matches); file_put_contents ( implode ( '/', [ $_SERVER['DOCUMENT_ROOT'], '../miser-vars/PRG/'. $matches['linelabel'].'.BAS' ] ),$matches['linelabel'].$matches['sep'].$matches['code'] ); $prg=str_replace($matches['linelabel'].$matches['sep'].$matches['code'],'',$prg); $PRG2.= '<tr><td>PRG['.htmlentities($matches['linelabel']).']</td></tr><tr></td>'.htmlentities($matches['code']).'</td></tr>'; } } $PRG2.= '</tbody></table>'; $pagedata=str_replace('{{ title }}','Miser Ripper',$pagedata); $pagedata=str_replace('<< page >>',$PRG2,$pagedata); echo $pagedata; exit;

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)
8.3.60.0002.00318.43
8.3.50.0101.99320.16
8.3.40.0071.99820.05
8.3.30.0131.98918.79
8.3.20.0071.99624.18
8.3.10.0031.99824.66
8.3.00.0031.99926.16
8.2.180.0171.98325.92
8.2.170.0032.00122.96
8.2.160.0071.99622.96
8.2.150.0032.00025.66
8.2.140.0002.00424.66
8.2.130.0071.99426.16
8.2.120.0071.99617.80
8.2.110.0002.00320.53
8.2.100.0071.99718.02
8.2.90.0002.00817.88
8.2.80.0002.00218.73
8.2.70.0031.99718.03
8.2.60.0002.00318.22
8.2.50.0002.00118.10
8.2.40.0002.00521.03
8.2.30.0032.00219.34
8.2.20.0071.99420.76
8.2.10.0002.00218.30
8.2.00.0031.99919.48
8.1.270.0031.99824.66
8.1.260.0071.99426.35
8.1.250.0032.00028.09
8.1.240.0171.97922.13
8.1.230.0031.99820.93
8.1.220.0031.99717.79
8.1.210.0071.99518.77
8.1.200.0061.99217.35
8.1.190.0031.99819.01
8.1.180.0002.00318.10
8.1.170.0031.99818.65
8.1.160.0032.00318.91
8.1.150.0032.00118.75
8.1.140.0031.99917.57
8.1.130.0071.99520.44
8.1.120.0032.00020.57
8.1.110.0002.00120.47
8.1.100.0031.99720.57
8.1.90.0031.99720.55
8.1.80.0002.00420.44
8.1.70.0031.99820.56
8.1.60.0032.00320.69
8.1.50.0032.00020.58
8.1.40.0002.00320.69
8.1.30.0002.00220.70
8.1.20.0002.00320.71
8.1.10.0032.00020.64
8.1.00.0031.99620.62
8.0.300.0031.99618.77
8.0.290.0002.00217.00
8.0.280.0002.00218.40
8.0.270.0201.97718.12
8.0.260.0002.00219.88
8.0.250.0071.99719.81
8.0.240.0071.99620.00
8.0.230.0002.00219.84
8.0.220.0031.99919.76
8.0.210.0032.00019.70
8.0.200.0031.99919.88
8.0.190.0002.01319.85
8.0.180.0031.99719.94
8.0.170.0031.99919.95
8.0.160.0071.99619.97
8.0.150.0031.99719.79
8.0.140.0131.98419.92
8.0.130.0002.00419.78
8.0.120.0101.99019.85
8.0.110.0071.99619.88
8.0.100.0002.00419.71
8.0.90.0032.00119.82
8.0.80.0072.00019.77
8.0.70.0032.00219.91
8.0.60.0101.98919.82
8.0.50.0131.98419.84
8.0.30.0031.99517.92
8.0.20.0071.99319.94
8.0.10.0071.99518.22

preferences:
53.03 ms | 400 KiB | 5 Q