3v4l.org

run code in 300+ PHP versions simultaneously
<?php //$tu=array(синий, белый, красный); $сolours = 'синий, белый, красный'; $tu = explode(",", $сolours); foreach($tu as $key =>$value) { $search_array = array('синий' => '#111', 'красный' =>'#222', 'белый'=>'#333'); if (array_key_exists($value, $search_array)) { $color[]=$search_array[$value]; } } print_r($color);

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.0060.00918.31
8.3.50.0120.01016.63
8.3.40.0150.00018.74
8.3.30.0040.01118.59
8.3.20.0040.00421.82
8.3.10.0000.00821.95
8.3.00.0030.00623.71
8.2.180.0070.00725.92
8.2.170.0110.00318.90
8.2.160.0130.00022.96
8.2.150.0040.00425.66
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00421.09
8.2.110.0080.00019.36
8.2.100.0080.00417.71
8.2.90.0000.00917.83
8.2.80.0050.00318.03
8.2.70.0000.00818.03
8.2.60.0050.00218.16
8.2.50.0000.00818.10
8.2.40.0040.00422.32
8.2.30.0020.00519.32
8.2.20.0000.00718.02
8.2.10.0000.00721.19
8.2.00.0080.00019.22
8.1.280.0080.00625.92
8.1.270.0060.00322.05
8.1.260.0050.00326.35
8.1.250.0070.00028.09
8.1.240.0040.00721.96
8.1.230.0070.00420.86
8.1.220.0000.00917.74
8.1.210.0000.00818.89
8.1.200.0040.00417.35
8.1.190.0000.00817.22
8.1.180.0000.00818.10
8.1.170.0030.00618.59
8.1.160.0040.00418.96
8.1.150.0040.00418.89
8.1.140.0040.00418.79
8.1.130.0070.00417.44
8.1.120.0070.00017.54
8.1.110.0070.00017.46
8.1.100.0000.00717.51
8.1.90.0000.00717.45
8.1.80.0000.00817.48
8.1.70.0030.00317.47
8.1.60.0000.00817.44
8.1.50.0000.00817.43
8.1.40.0020.00517.50
8.1.30.0050.00217.59
8.1.20.0040.00717.55
8.1.10.0040.00417.54
8.1.00.0050.00217.51
8.0.300.0050.00320.07
8.0.290.0060.00316.63
8.0.280.0000.00718.45
8.0.270.0030.00317.30
8.0.260.0000.00816.83
8.0.250.0050.00216.86
8.0.240.0030.00316.84
8.0.230.0030.00316.87
8.0.220.0030.00316.81
8.0.210.0070.00016.83
8.0.200.0070.00016.82
8.0.190.0080.00017.00
8.0.180.0070.00016.92
8.0.170.0050.00316.89
8.0.160.0070.00316.79
8.0.150.0040.00416.70
8.0.140.0000.00716.77
8.0.130.0000.00513.29
8.0.120.0000.00716.80
8.0.110.0000.00716.82
8.0.100.0040.00416.77
8.0.90.0050.00216.80
8.0.80.0140.00716.91
8.0.70.0030.00516.85
8.0.60.0000.00716.75
8.0.50.0070.00016.88
8.0.30.0100.01017.17
8.0.20.0110.00717.02
8.0.10.0000.00717.00
8.0.00.0060.01216.65
7.4.330.0000.00515.55
7.4.320.0060.00016.41
7.4.300.0000.00616.62
7.4.290.0080.00016.55
7.4.280.0080.00016.59
7.4.270.0030.00316.52
7.4.260.0000.00716.48
7.4.250.0000.00816.38
7.4.240.0030.00316.55
7.4.230.0000.00716.62
7.4.220.0000.00716.48
7.4.210.0110.00516.55
7.4.200.0000.00816.68
7.4.160.0090.00816.43
7.4.130.0060.01016.57
7.4.120.0030.01316.52
7.4.110.0060.01316.33
7.4.100.0060.01016.66
7.4.90.0100.00716.54
7.4.80.0090.01219.39
7.4.70.0130.00716.52
7.4.60.0080.00816.55
7.4.50.0050.01016.25
7.4.40.0110.01116.25
7.4.00.0100.00715.18
7.3.330.0030.00313.17
7.3.320.0030.00313.12
7.3.310.0000.00716.08
7.3.300.0000.00716.21
7.3.290.0030.00316.25
7.3.280.0070.01016.33
7.3.260.0070.01016.38
7.3.240.0090.00816.50
7.3.230.0100.00716.50
7.3.210.0120.00616.60
7.3.200.0090.00816.44
7.3.190.0040.01316.46
7.3.180.0060.00916.17
7.3.170.0060.00916.30
7.3.160.0060.00916.36
7.3.60.0030.00714.82
7.3.50.0100.00314.49
7.3.40.0030.00914.59
7.3.30.0120.00314.91
7.3.20.0130.00914.72
7.3.10.0160.00814.79
7.3.00.0140.00714.57
7.2.330.0110.00716.46
7.2.320.0040.01516.72
7.2.310.0030.01416.70
7.2.300.0090.00916.72
7.2.290.0070.01016.77
7.2.190.0120.00915.16
7.2.180.0070.00414.98
7.2.170.0040.00815.12
7.2.160.0030.01115.03
7.2.150.0220.00315.05
7.2.140.0150.00314.98
7.2.130.0160.00315.10
7.2.120.0140.01014.70
7.2.110.0060.00814.90
7.2.100.0470.00017.01
7.2.90.0040.01816.90
7.2.80.0160.00617.00
7.2.70.0070.00716.92
7.2.60.0060.01216.60
7.2.50.0040.01116.87
7.2.40.0030.01016.76
7.2.30.0040.01816.63
7.2.20.0170.00416.89
7.2.10.0170.01016.87
7.2.00.0090.00616.86
7.1.300.0130.00513.95
7.1.290.0030.01013.89
7.1.280.0110.01114.05
7.1.270.0090.00913.80
7.1.260.0150.01113.94
7.1.250.0030.01013.92

preferences:
36.73 ms | 401 KiB | 5 Q