3v4l.org

run code in 300+ PHP versions simultaneously
<?Php /* * by Henrique Kieckbusch * * just send this .php file into a PHP server and open it. * * */ class chromaSquad{ var $dados; function chromaSquad(){ $this->dados = array(); } function salvoParaArray( $conteudo ){ $t = explode('#',$conteudo); foreach($t as $_t){ $t2 = explode('!',$_t); if(count($t2)>1)$this->dados[ $this->_c( $t2[0] )] = $this->_c($t2[1] ); } } function _c($a, $d = -1){ for($a = str_split( utf8_decode($a) ), $r='',$i=0;$i<count($a);$i++) $r .= chr( ord($a[$i]) + ( $d*ord( substr(str_rot13('vOSnn95Lo8C1fDPMYKIUvrLcYZ8G699o'), $i%32, 1) ) ) ); return $d > 0 ? utf8_encode($r) : $r; } function postParaArquivo( $a ){ foreach($a as $i=>$j) echo $this->_c($i,1).'!'.$this->_c($j,1).'#'; } } $cabecalho = ' <style type="text/css">*{font-family:verdana; margin:12px;}input[type="text"]{width:400px; border:1px blue solid; padding:4px;}</style> <form method="post" enctype="multipart/form-data"> '; if( count($_FILES) > 0 && $_FILES['arq']['size'] > 0) { echo $cabecalho; $t = new chromaSquad(); $t->salvoParaArray( file_get_contents( $_FILES['arq']['tmp_name'] ) ); if(count($t->dados) < 3) die('Wrong file.'); echo 'Above you have your save file data, most of values are advanced. Maybe you just want to change the money? <br/><br/> Well... After that, click in the button and save the new file in the same folder. <hr/><br/><br/>'; foreach($t->dados as $i=>$k) echo $i.'<br/> <input type="text" name="'.$i.'" value="'.$k.'" /> <br/>'; echo '<hr/> <input type="submit" name="submit" value="Download edited file" /> '; }else{ if( count($_POST)>2 ){ unset($_POST['submit']); $t = new chromaSquad(); header('Content-Description: File Transfer'); header('Content-Type: application/octet-stream'); header('Content-Disposition: attachment; filename=new_save.csqd'); header('Content-Transfer-Encoding: binary'); $t->postParaArquivo( $_POST ); die(); } echo $cabecalho; ?> Please, send above the *.csqd file of your game. You find it in the "savedGames" directory of Chroma Squad Game. <br/> <input type="file" name="arq" /> <br/><br/> <input type="submit" value="send it" /> <br/> <?Php } echo '</form>';

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.0040.01116.25
8.3.50.0110.01122.01
8.3.40.0090.00918.76
8.3.30.0090.00618.86
8.3.20.0070.00020.30
8.3.10.0000.00821.77
8.3.00.0040.00419.13
8.2.180.0070.01118.06
8.2.170.0070.00722.96
8.2.160.0100.00720.39
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0090.00026.16
8.2.120.0050.00319.48
8.2.110.0030.00719.14
8.2.100.0070.00417.78
8.2.90.0000.00918.03
8.2.80.0090.00019.76
8.2.70.0080.00017.63
8.2.60.0040.01117.88
8.2.50.0000.00918.10
8.2.40.0050.00319.29
8.2.30.0040.00417.95
8.2.20.0030.00617.75
8.2.10.0050.00217.94
8.2.00.0070.00017.60
8.1.280.0040.01425.92
8.1.270.0080.00023.99
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0040.00422.53
8.1.230.0130.00020.82
8.1.220.0050.00317.74
8.1.210.0080.00018.91
8.1.200.0060.00317.25
8.1.190.0080.00017.23
8.1.180.0070.00718.10
8.1.170.0050.00318.61
8.1.160.0040.00418.90
8.1.150.0050.00218.86
8.1.140.0050.00317.34
8.1.130.0000.00817.80
8.1.120.0030.00717.53
8.1.110.0030.00617.39
8.1.100.0020.01017.43
8.1.90.0060.00517.45
8.1.80.0020.00817.39
8.1.70.0080.00417.43
8.1.60.0120.00217.50
8.1.50.0070.00617.42
8.1.40.0090.00417.46
8.1.30.0060.00817.58
8.1.20.0080.00417.61
8.1.10.0080.00417.42
8.1.00.0090.00317.36
8.0.300.0040.00419.95
8.0.290.0000.00816.75
8.0.280.0050.00218.51
8.0.270.0050.00217.20
8.0.260.0040.00417.28
8.0.250.0030.00516.96
8.0.240.0030.00516.94
8.0.230.0060.00516.87
8.0.220.0070.00316.93
8.0.210.0100.00116.88
8.0.200.0050.00616.88
8.0.190.0070.00516.94
8.0.180.0050.00716.87
8.0.170.0050.00516.89
8.0.160.0080.00316.90
8.0.150.0080.00316.86
8.0.140.0060.00416.87
8.0.130.0040.00515.66
8.0.120.0040.00616.88
8.0.110.0060.00316.79
8.0.100.0070.00316.79
8.0.90.0050.00516.82
8.0.80.0050.00816.79
8.0.70.0040.00616.84
8.0.60.0020.00916.85
8.0.50.0050.00516.86
8.0.30.0090.00717.07
8.0.20.0090.00617.14
8.0.10.0060.00416.97
8.0.00.0100.00616.97
7.4.330.0040.00215.03
7.4.320.0040.00416.54
7.4.300.0040.00816.53
7.4.290.0070.00416.47
7.4.280.0080.00416.56
7.4.270.0080.00216.56
7.4.260.0040.00516.54
7.4.250.0050.00516.50
7.4.240.0050.00316.56
7.4.230.0050.00516.52
7.4.220.0070.00216.58
7.4.210.0060.00616.56
7.4.200.0060.00416.56
7.4.190.0070.00416.55
7.4.180.0060.00416.57
7.4.160.0060.00716.61
7.4.150.0070.00616.77
7.4.140.0070.00917.07
7.4.130.0080.00616.52
7.4.120.0090.00516.59
7.4.110.0090.00616.46
7.4.100.0100.00316.55
7.4.90.0060.00716.42
7.4.80.0110.00517.39
7.4.70.0080.00516.55
7.4.60.0060.00616.54
7.4.50.0060.00316.30
7.4.40.0070.00616.41
7.4.30.0080.00616.39
7.4.20.0040.00716.37
7.4.10.0070.00615.93
7.4.00.0040.01015.63
7.3.330.0070.00615.27
7.3.320.0130.00415.29
7.3.310.0080.00716.34
7.3.300.0080.00716.38
7.3.290.0070.00816.30
7.3.280.0110.00816.33
7.3.270.0130.00416.72
7.3.260.0130.00716.37
7.3.250.0130.00716.40
7.3.240.0120.00516.30
7.3.230.0140.00316.44
7.3.220.0120.00416.11
7.3.210.0140.00416.34
7.3.200.0100.00717.33
7.3.190.0120.00516.31
7.3.180.0120.00516.33
7.3.170.0140.00416.39
7.3.160.0120.00516.32
7.3.150.0160.00316.28
7.3.140.0140.00316.21
7.3.130.0100.00815.84
7.3.120.0070.00715.35
7.3.110.0070.01015.45
7.3.100.0100.00515.46
7.3.90.0070.00915.70
7.3.80.0110.00515.57
7.3.70.0070.00815.52
7.3.60.0080.00615.58
7.3.50.0090.00715.64
7.3.40.0100.00715.64
7.3.30.0060.01015.60
7.3.20.0080.00717.42
7.3.10.0110.00417.17
7.3.00.0080.00917.23
7.2.340.0100.00716.34
7.2.330.0160.00516.56
7.2.320.0140.00416.54
7.2.310.0080.00916.60
7.2.300.0090.00916.42
7.2.290.0120.00516.49
7.2.280.0130.00316.42
7.2.270.0160.00116.37
7.2.260.0100.00816.02
7.2.250.0120.00615.99
7.2.240.0070.00815.71
7.2.230.0070.00915.82
7.2.220.0110.00415.73
7.2.210.0070.00915.68
7.2.200.0090.00915.79
7.2.190.0080.00815.66
7.2.180.0050.01015.85
7.2.170.0100.00515.80
7.2.160.0080.00715.73
7.2.150.0110.00517.64
7.2.140.0090.00617.56
7.2.130.0100.00617.54
7.2.120.0110.00517.54
7.2.110.0100.00517.50
7.2.100.0070.00717.58
7.2.90.0090.00817.58
7.2.80.0070.00917.53
7.2.70.0110.00617.60
7.2.60.0080.00717.39
7.2.50.0080.00717.52
7.2.40.0090.00617.59
7.2.30.0100.00717.59
7.2.20.0090.00717.48
7.2.10.0070.00817.53
7.2.00.0090.00817.62
7.1.330.0080.00816.44
7.1.320.0080.00716.51
7.1.310.0110.00316.54
7.1.300.0070.00816.42
7.1.290.0060.00716.37
7.1.280.0100.00416.41
7.1.270.0070.00816.36
7.1.260.0070.00716.49
7.1.250.0080.00816.25
7.1.240.0110.00316.64
7.1.230.0080.00716.83
7.1.220.0080.00816.75
7.1.210.0100.00716.77
7.1.200.0070.00716.56
7.1.190.0130.00416.62
7.1.180.0070.00816.59
7.1.170.0110.00416.77
7.1.160.0090.00816.77
7.1.150.0090.00716.55
7.1.140.0070.00816.70
7.1.130.0120.00416.66
7.1.120.0110.00316.73
7.1.110.0130.00316.67
7.1.100.0110.00516.71
7.1.90.0080.00816.64
7.1.80.0070.00817.04
7.1.70.0070.00616.70
7.1.60.0100.01020.92
7.1.50.0110.00720.24
7.1.40.0110.00821.18
7.1.30.0090.00921.12
7.1.20.0140.00421.03
7.1.10.0080.00916.62
7.1.00.0080.02117.70
7.0.330.0110.00616.38
7.0.320.0120.00216.42
7.0.310.0100.00416.43
7.0.300.0090.00516.37
7.0.290.0100.00516.43
7.0.280.0110.00616.26
7.0.270.0080.00716.38
7.0.260.0080.00716.34
7.0.250.0110.00516.49
7.0.240.0100.00716.38
7.0.230.0070.00816.49
7.0.220.0100.00416.41
7.0.210.0090.00816.41
7.0.200.0090.00416.14
7.0.190.0080.00716.35
7.0.180.0080.00716.36
7.0.170.0120.00416.32
7.0.160.0060.00816.29
7.0.150.0070.00916.37
7.0.140.0070.02117.59
7.0.130.0070.00916.48
7.0.120.0100.00516.43
7.0.110.0070.00816.23
7.0.100.0110.00516.42
7.0.90.0100.00516.32
7.0.80.0100.00416.27
7.0.70.0100.00616.22
7.0.60.0070.02517.03
7.0.50.0070.01916.71
7.0.40.0110.01916.76
7.0.30.0100.01716.79
7.0.20.0100.01316.70
7.0.10.0150.01316.85
7.0.00.0130.01716.76
5.6.400.0130.00115.42
5.6.390.0120.00415.45
5.6.380.0110.00215.37
5.6.370.0120.00215.17
5.6.360.0090.00515.20
5.6.350.0090.00515.09
5.6.340.0050.00815.31
5.6.330.0110.00415.12
5.6.320.0110.00315.31
5.6.310.0110.00315.30
5.6.300.0100.02316.81
5.6.290.0110.02116.70
5.6.280.0090.03117.59
5.6.270.0100.01816.72
5.6.260.0090.01916.63
5.6.250.0090.02316.77
5.6.240.0060.02316.66
5.6.230.0070.02116.84
5.6.220.0090.01816.72
5.6.210.0080.02817.49
5.6.200.0090.02517.03
5.6.190.0090.02417.51
5.6.180.0120.02717.58
5.6.170.0160.02817.54
5.6.160.0090.02317.55
5.6.150.0070.02417.00
5.6.140.0100.03017.03
5.6.130.0100.02517.01
5.6.120.0100.03417.57
5.6.110.0120.03217.58
5.6.100.0090.02817.52
5.6.90.0080.02517.65
5.6.80.0090.02517.36
5.6.70.0090.02317.41
5.6.60.0080.02016.66
5.6.50.0090.01616.47
5.6.40.0090.01716.61
5.6.30.0090.01916.60
5.6.20.0070.01916.51
5.6.10.0140.01816.50
5.6.00.0090.01916.52
5.5.380.0110.02016.38
5.5.370.0100.02116.37
5.5.360.0080.02216.22
5.5.350.0140.03017.29
5.5.340.0080.02816.85
5.5.330.0130.03217.37
5.5.320.0100.03617.34
5.5.310.0140.03417.30
5.5.300.0070.02816.78
5.5.290.0080.03716.88
5.5.280.0090.03017.52
5.5.270.0120.03417.52
5.5.260.0120.03517.56
5.5.250.0100.03917.48
5.5.240.0090.02817.37
5.5.230.0080.02316.34
5.5.220.0070.02216.18
5.5.210.0060.02316.30
5.5.200.0120.01716.15
5.5.190.0070.02216.00
5.5.180.0070.02416.12
5.5.170.0110.00515.53
5.5.160.0100.01916.18
5.5.150.0110.01816.14
5.5.140.0090.02116.00
5.5.130.0090.02016.11
5.5.120.0090.01916.15
5.5.110.0110.01916.04
5.5.100.0070.02316.19
5.5.90.0120.02316.11
5.5.80.0120.01816.28
5.5.70.0110.02116.08
5.5.60.0140.02116.24
5.5.50.0070.02816.25
5.5.40.0080.02716.24
5.5.30.0120.02216.24
5.5.20.0070.02716.13
5.5.10.0120.02016.18
5.5.00.0130.02016.19
5.4.450.0210.03015.92
5.4.440.0150.02916.07
5.4.430.0310.03115.97
5.4.420.0110.03115.96
5.4.410.0110.03115.86
5.4.400.0300.02915.82
5.4.390.0310.03115.77
5.4.380.0350.03015.79
5.4.370.0390.03015.71
5.4.360.0270.03215.85
5.4.350.0380.02615.63
5.4.340.0260.03215.77
5.4.330.0080.00312.68
5.4.320.0330.02715.79
5.4.310.0290.03015.75
5.4.300.0220.03315.74
5.4.290.0260.02315.90
5.4.280.0920.02715.71
5.4.270.0310.02615.67
5.4.260.0400.02415.69
5.4.250.0260.03615.83
5.4.240.0240.03215.81
5.4.230.0240.03415.63
5.4.220.0110.03215.56
5.4.210.0340.03115.66
5.4.200.0360.03215.22
5.4.190.0340.03315.73
5.4.180.0300.03115.65
5.4.170.0350.03215.73
5.4.160.0290.03015.68
5.4.150.0310.03115.65
5.4.140.0320.02814.42
5.4.130.0350.03014.42
5.4.120.0340.02414.49
5.4.110.0310.03314.63
5.4.100.1630.02814.52
5.4.90.0290.03014.44
5.4.80.0350.02314.61
5.4.70.0350.03114.57
5.4.60.0350.03014.56
5.4.50.0280.02514.56
5.4.40.0250.02914.52
5.4.30.0330.02314.61
5.4.20.0330.02814.51
5.4.10.0340.02814.59
5.4.00.0340.02714.21

preferences:
55.61 ms | 401 KiB | 5 Q