3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a= array( 'mela' => 'pera', 'pippo'=> 'pera', 'carlo'=>'banana', 'saverio'=>'pera', 'antonio'=>'banana', ); $b= array_diff_key( $a , array_unique( $a ) ); $i=0; print_r($b); foreach($b as $c => $key){ print_r($c); print_r'<br/>'; print_r($key); }

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.2770.03319.08
5.4.310.2970.04319.23
5.4.300.3230.03719.22
5.4.290.3030.04019.16
5.4.280.3070.04018.86
5.4.270.3130.03719.00
5.4.260.3100.03719.05
5.4.250.3130.03319.07
5.4.240.3130.03319.23
5.4.230.3000.03319.07
5.4.220.2970.04018.98
5.4.210.3230.03319.08
5.4.200.3330.04019.26
5.4.190.3130.04019.08
5.4.180.3200.04319.21
5.4.170.3400.03719.18
5.4.160.3100.02719.06
5.4.150.2670.03719.14
5.4.140.2700.03716.55
5.4.130.2800.04016.37
5.4.120.3070.03716.45
5.4.110.2670.03316.54
5.4.100.2430.03716.41
5.4.90.2870.04016.54
5.4.80.3170.02716.34
5.4.70.2630.03316.50
5.4.60.2900.03716.49
5.4.50.2700.03316.39
5.4.40.2500.03716.53
5.4.30.2870.03316.25
5.4.20.2670.03716.38
5.4.10.2800.03016.34
5.4.00.2830.03015.73
5.3.290.2900.03714.62
5.3.280.2930.03314.69
5.3.270.2730.03714.56
5.3.260.2870.03314.51
5.3.250.3270.03714.57
5.3.240.2900.03714.54
5.3.230.3070.03014.54
5.3.220.2930.03314.47
5.3.210.2870.03314.47
5.3.200.3200.03314.39
5.3.190.2930.04014.41
5.3.180.3070.04014.61
5.3.170.2900.03714.51
5.3.160.2830.03714.55
5.3.150.2730.04714.41
5.3.140.2870.03714.43
5.3.130.3170.05714.42
5.3.120.3100.03014.42
5.3.110.3100.03714.60
5.3.100.2870.03313.99
5.3.90.3100.02313.86
5.3.80.2730.04013.82
5.3.70.2930.03713.98
5.3.60.3000.03313.88
5.3.50.2800.03713.79
5.3.40.3230.04013.90
5.3.30.2800.03713.71
5.3.20.3300.04013.65
5.3.10.3030.03013.75
5.3.00.3070.03713.47
5.2.170.2600.02712.68
5.2.160.2570.03012.68
5.2.150.2370.03312.68
5.2.140.2700.03712.68
5.2.130.2300.03312.68
5.2.120.2630.02712.68
5.2.110.2600.03712.68
5.2.100.2370.02712.68
5.2.90.2370.03012.68
5.2.80.2570.02712.68
5.2.70.2430.02312.68
5.2.60.2630.02312.68
5.2.50.2570.02712.68
5.2.40.1270.03312.68
5.2.30.1630.02712.68
5.2.20.1670.03012.68
5.2.10.1700.03012.68
5.2.00.1500.03012.68
5.1.60.0900.02712.68
5.1.50.1700.03012.68
5.1.40.1330.03012.68
5.1.30.1570.02312.68
5.1.20.1570.01712.68
5.1.10.1470.02012.68
5.1.00.1930.02012.68
5.0.50.1000.02012.68
5.0.40.1000.02712.68
5.0.30.1200.03712.68
5.0.20.0970.02012.68
5.0.10.0970.01712.68
5.0.00.0970.03012.68
4.4.90.0970.01312.68
4.4.80.1230.02012.68
4.4.70.1030.01712.68
4.4.60.1230.01712.68
4.4.50.1000.01312.68
4.4.40.1130.03012.68
4.4.30.1300.02012.68
4.4.20.1230.01012.68
4.4.10.1000.01712.68
4.4.00.0970.02012.68
4.3.110.1300.02012.68
4.3.100.1300.01712.68
4.3.90.1300.01312.68
4.3.80.1200.02712.68
4.3.70.1400.01312.68
4.3.60.1570.01312.68
4.3.50.1130.01712.68
4.3.40.1370.02312.68
4.3.30.0670.02312.68
4.3.20.0470.01712.68
4.3.10.0570.01712.68
4.3.00.0470.01712.68

preferences:
141.88 ms | 1394 KiB | 7 Q