3v4l.org

run code in 300+ PHP versions simultaneously
<?php function array2CSV(array $array) { $sanitized = array(); foreach ($array as $col) { $col = str_replace(array('\\', '"'), array('\/', '\"')); $sanitized[] = "\"$col\""; } return implode(',', $sanitized); } echo array2CSV(array('test', 'te"t\est'))

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.80.0000.07717.19
5.5.70.0130.06317.20
5.5.60.0100.03717.20
5.5.50.0070.06317.31
5.5.40.0070.03717.29
5.5.30.0070.07717.31
5.5.20.0030.04317.20
5.5.10.0070.03717.19
5.5.00.0030.04717.32
5.4.240.0070.06719.09
5.4.230.0170.06318.97
5.4.220.0070.04719.03
5.4.210.0100.04318.88
5.4.200.0070.04018.98
5.4.190.0030.04719.11
5.4.180.0170.02719.25
5.4.170.0130.07319.04
5.4.160.0000.04318.93
5.4.150.0100.07718.94
5.4.140.0100.08316.39
5.4.130.0030.05716.30
5.4.120.0000.04716.40
5.4.110.0070.04716.58
5.4.100.0070.07716.41
5.4.90.0000.04716.45
5.4.80.0000.08016.46
5.4.70.0100.06716.57
5.4.60.0070.05316.38
5.4.50.0170.06316.43
5.4.40.0000.08016.61
5.4.30.0070.06716.35
5.4.20.0070.07016.37
5.4.10.0100.07016.36
5.4.00.0070.03715.82
5.3.280.0070.06014.45
5.3.270.0070.07314.67
5.3.260.0030.04714.56
5.3.250.0070.03314.45
5.3.240.0070.07314.64
5.3.230.0070.04014.66
5.3.220.0070.07314.58
5.3.210.0030.08314.57
5.3.200.0100.07014.64
5.3.190.0000.04014.63
5.3.180.0030.05314.78
5.3.170.0070.05014.41
5.3.160.0070.07314.57
5.3.150.0130.06314.56
5.3.140.0100.07014.59
5.3.130.0000.08314.50
5.3.120.0030.07714.51
5.3.110.0030.08014.57
5.3.100.0070.05014.10
5.3.90.0100.05314.22
5.3.80.0030.06013.91
5.3.70.0000.04714.05
5.3.60.0030.04314.20
5.3.50.0100.07014.00
5.3.40.0170.06714.01
5.3.30.0070.07713.93
5.3.20.0070.06313.71
5.3.10.0130.06313.65
5.3.00.0030.04713.62

preferences:
142.85 ms | 1386 KiB | 7 Q