3v4l.org

run code in 300+ PHP versions simultaneously
<?php function convertAssociativeArrayToValue( array $data ) { $result = []; foreach( $data as $key => $value ) { $result[] = "{$key}:{$value}"; } } $parameters = array( 'deal' => 123123, 'sold' => 'asff3rafdsa, 'refused' => 'asd3faefafda', ); echo " | parameters:[" . implode( ",'", convertAssociativeArrayToValue( $parameters ) ) . "]";

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.4.320.3970.03719.23
5.4.310.4000.04018.99
5.4.300.4000.03319.23
5.4.290.3930.03319.22
5.4.280.3970.04019.26
5.4.270.4000.03718.93
5.4.260.3900.03719.16
5.4.250.4330.03718.98
5.4.240.3700.04019.12
5.4.230.4000.03719.16
5.4.220.4130.03719.23
5.4.210.4330.05019.10
5.4.200.3700.04319.14
5.4.190.3930.03719.25
5.4.180.3570.04019.07
5.4.170.3570.03718.92
5.4.160.3770.04019.13
5.4.150.3770.03719.21
5.4.140.3770.03316.45
5.4.130.3870.03316.34
5.4.120.2730.04016.49
5.4.110.4030.03716.48
5.4.100.3970.04016.46
5.4.90.3700.03716.22
5.4.80.3970.03716.46
5.4.70.3970.03316.49
5.4.60.4000.03316.46
5.4.50.3270.03016.32
5.4.40.3800.03316.41
5.4.30.3770.04016.42
5.4.20.3870.03016.45
5.4.10.3770.04316.41
5.4.00.3570.04315.86
5.3.290.4270.04314.81
5.3.280.4130.03714.64
5.3.270.4400.04314.52
5.3.260.3600.04014.53
5.3.250.3530.03714.61
5.3.240.3730.04014.63
5.3.230.3900.03714.52
5.3.220.3930.03314.58
5.3.210.3700.03314.61
5.3.200.3900.03714.60
5.3.190.3630.03714.63
5.3.180.4930.04014.63
5.3.170.3800.04014.45
5.3.160.3730.03314.61
5.3.150.3930.04014.56
5.3.140.3730.03714.71
5.3.130.3830.03314.62
5.3.120.4000.04014.47
5.3.110.4070.03314.61
5.3.100.4300.03714.18
5.3.90.4270.04013.94
5.3.80.4530.02314.03
5.3.70.3770.03713.93
5.3.60.3630.03314.00
5.3.50.3970.03713.98
5.3.40.4130.04714.09
5.3.30.4200.03713.97
5.3.20.4100.02713.84
5.3.10.3370.03013.81
5.3.00.3600.03713.64
5.2.170.3030.03011.29
5.2.160.3530.03311.20
5.2.150.3270.03311.17
5.2.140.3370.03011.20
5.2.130.2700.02711.16
5.2.120.3370.03011.13
5.2.110.3130.02711.11
5.2.100.3670.02711.14
5.2.90.3370.03011.15
5.2.80.3270.03311.04
5.2.70.3570.03711.06
5.2.60.3200.03310.96
5.2.50.3270.03010.93
5.2.40.2400.03311.04
5.2.30.2700.03710.97
5.2.20.2730.03011.04
5.2.10.3070.02710.86
5.2.00.3200.02710.72
5.1.60.2930.0239.98
5.1.50.3170.03010.01
5.1.40.2930.02010.04
5.1.30.2900.02310.23
5.1.20.2970.02010.30
5.1.10.2900.02310.11
5.1.00.2870.02310.06
5.0.50.1500.0278.55
5.0.40.1500.0208.45
5.0.30.1300.0238.36
5.0.20.1300.0208.11
5.0.10.1300.0138.09
5.0.00.1200.0378.21
4.4.90.1430.0205.90
4.4.80.1230.0135.90
4.4.70.1400.0135.90
4.4.60.1470.0135.90
4.4.50.1500.0135.90
4.4.40.1800.0275.90
4.4.30.1830.0175.90
4.4.20.1500.0175.90
4.4.10.1230.0175.90
4.4.00.1500.0235.90
4.3.110.1470.0175.90
4.3.100.1230.0175.90
4.3.90.1470.0175.90
4.3.80.1430.0275.90
4.3.70.1270.0135.90
4.3.60.1070.0135.90
4.3.50.1270.0175.90
4.3.40.1230.0235.90
4.3.30.0530.0135.90
4.3.20.0730.0135.90
4.3.10.0600.0175.90
4.3.00.0770.0135.90

preferences:
136.81 ms | 1398 KiB | 7 Q