3v4l.org

run code in 300+ PHP versions simultaneously
<?php function showCombinations($string, $traits, $i) { if ($i >= count($traits)) echo trim($string); else { foreach ($traits[$i] as $trait) showCombinations("$string $trait", $traits, $i + 1); } } $sec="-"; $brk="<br>"; $traits = array ( array(''290', '679','689','149','347','690','169','790','890', '260','567','568','100','147','200','148','300', '400','168','240','600','250','700','279','800', '270','900','280','380','246','248','249','259', '269','360','470','480','228','229','220', '258','122','268','369','224','144','460','226', '255','680','266','188','468','233','244', '128','129','120','140','123','448','124','223', '125','288','225','127','299','236','344','238', '445','446','230','366','466','160','440', '180','145','245','660','256','455','447','278', '477','234','488','588','345','688','346','699','349','880', '340','189','289','235','668','678','669', '490','788','789','456','889','367','899', '458','566','450','667','389','677','589', '670','780','457','467','478','569',), array($sec), array('290','138','679','139','689','149','347','159','690', '169','790','179','890','567','135','136','578', '158','250','279','270','550','119','110','112', '249','113','259','114','269','115','350','116', '370','118','155','247','229','257','277','133', '579','227','570','255','337','357','358','330', '233','469','199','479','335','129','336','355', '239','338','123','223','125','225','299','236', '156','499','445','356','230','150','377', '134','145','334','245','237','256','599','590', '455','267','447','178','556','449','170','477', '234','559','190','489','345','779','130','699', '799','557','189','558','289','577','235','678', '669','390','778','789','770','456','889','367', '899','458','378','990','667','677','589', '670','457','467','459','478','569',), array($brk), ); showCombinations('', $traits, 0); ?>

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)
5.5.120.0000.04017.33
5.5.110.0000.04017.43
5.5.100.0000.04017.25
5.5.90.0030.03317.25
5.5.80.0100.03017.17
5.5.70.0070.03317.33
5.5.60.0000.03717.23
5.5.50.0030.04717.31
5.5.40.0070.04017.21
5.5.30.0030.03717.18
5.5.20.0000.04017.32
5.5.10.0070.03317.30
5.5.00.0130.02717.21
5.4.280.0000.04019.13
5.4.270.0000.04019.00
5.4.260.0100.03319.03
5.4.250.0100.03718.95
5.4.240.0100.03018.98
5.4.230.0030.03719.05
5.4.220.0070.03319.00
5.4.210.0070.03319.03
5.4.200.0070.03319.04
5.4.190.0030.03719.08
5.4.180.0030.03719.05
5.4.170.0070.03319.12
5.4.160.0000.04018.94
5.4.150.0100.03019.12
5.4.140.0030.03716.40
5.4.130.0070.03016.32
5.4.120.0000.03716.25
5.4.110.0030.05016.40
5.4.100.0100.06716.34
5.4.90.0030.07316.41
5.4.80.0070.08016.41
5.4.70.0070.07016.37
5.4.60.0030.06716.39
5.4.50.0070.06716.46
5.4.40.0030.07716.43
5.4.30.0170.06016.44
5.4.20.0070.07016.39
5.4.10.0070.05716.36
5.4.00.0100.05715.75
5.3.280.0030.03714.60
5.3.270.0000.04014.61
5.3.260.0070.03314.61
5.3.250.0030.03714.56
5.3.240.0030.03314.60
5.3.230.0030.03714.45
5.3.220.0070.03014.54
5.3.210.0130.03714.53
5.3.200.0100.07314.42
5.3.190.0070.04314.60
5.3.180.0070.08014.62
5.3.170.0070.07714.64
5.3.160.0070.04714.52
5.3.150.0130.06714.58
5.3.140.0100.07714.63
5.3.130.0100.05714.59
5.3.120.0170.06714.77
5.3.110.0030.07714.51
5.3.100.0030.07314.09
5.3.90.0030.07014.23
5.3.80.0070.06014.04
5.3.70.0130.06714.04
5.3.60.0170.06314.06
5.3.50.0030.06013.85
5.3.40.0100.06714.05
5.3.30.0070.04713.93
5.3.20.0130.06313.75
5.3.10.0070.07313.50
5.3.00.0070.06713.69

preferences:
169.58 ms | 1394 KiB | 7 Q