3v4l.org

run code in 300+ PHP versions simultaneously
<?php $mylocal = array(['language'=>'english', 'language'=>'french', 'language'=>'dutch']); foreach ($mylocal as $key => $value) { if ($value["language"] != "english" && $value["language"] != "spanish" && $value["language"] != "dutch") { unset($mylocal[$key]); } } var_dump($mylocal);

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.01016.63
8.3.50.0100.01018.08
8.3.40.0080.00818.79
8.3.30.0110.00722.96
8.3.20.0110.00722.96
8.2.180.0140.00318.16
8.2.170.0070.00722.96
8.2.160.0040.01120.16
8.2.150.0110.00719.27
8.1.280.0070.01125.92
7.4.10.0110.01514.84
7.4.00.0120.01115.02
7.3.130.0100.01614.87
7.3.120.0120.01214.47
7.3.110.0180.01114.75
7.3.100.0160.01114.45
7.3.90.0230.00815.02
7.3.80.0170.00515.01
7.3.70.0130.01614.97
7.3.60.0150.01514.91
7.3.50.0190.01014.88
7.3.40.0210.00714.93
7.3.30.0160.01114.88
7.3.20.0170.00916.71
7.3.10.0170.01416.66
7.3.00.0220.00616.70
7.2.260.0160.01314.65
7.2.250.0140.01415.35
7.2.240.0240.00415.25
7.2.230.0210.00715.06
7.2.220.0210.00915.20
7.2.210.0210.00714.85
7.2.200.0050.02315.01
7.2.190.0210.00614.93
7.2.180.0180.01115.04
7.2.170.0110.01914.96
7.2.160.0200.00815.10
7.2.150.0210.00916.98
7.2.140.0240.00716.75
7.2.130.0190.01116.99
7.2.120.0180.01216.62
7.2.110.0190.00616.93
7.2.100.0210.01016.86
7.2.90.0180.01316.87
7.2.80.0120.00514.61
7.2.70.0140.01112.38
7.2.60.0140.00414.69
7.2.50.0070.00914.59
7.2.40.0180.00312.38
7.2.30.0120.01517.13
7.2.20.0160.01317.02
7.2.10.0160.01617.20
7.2.00.0110.01116.92
7.1.330.0110.01315.57
7.1.320.0080.02015.77
7.1.310.0190.00915.79
7.1.300.0180.01015.89
7.1.290.0120.01515.82
7.1.280.0180.00715.86
7.1.270.0190.00715.89
7.1.260.0130.01015.91
7.1.250.0160.00916.03
7.1.240.0120.01615.72
7.1.230.0250.00315.75
7.1.220.0160.01215.71
7.1.210.0140.01015.91
7.1.200.0090.01215.77
7.1.190.0250.00616.01
7.1.180.0200.01015.84
7.1.170.0230.00515.59
7.1.160.0200.00615.90
7.1.150.0220.00615.54
7.1.140.0170.00915.77
7.1.130.0130.01315.67
7.1.120.0100.01216.02
7.1.110.0120.01215.91
7.1.100.0160.01215.57
7.1.90.0200.00715.95
7.1.80.0150.00915.84
7.1.70.0020.01416.48
7.1.60.0020.01716.43
7.1.50.0180.00615.83
7.1.40.0140.00915.74
7.1.30.0110.01116.00
7.1.20.0160.01015.84
7.1.10.0160.00915.76
7.1.00.0720.03218.25
7.0.330.0210.00415.51
7.0.320.0190.00615.39
7.0.310.0130.01615.30
7.0.300.0170.01015.60
7.0.290.0240.00315.31
7.0.280.0200.00315.27
7.0.270.0090.01415.09
7.0.260.0170.01015.56
7.0.250.0120.00715.34
7.0.240.0170.00815.57
7.0.230.0200.00615.11
7.0.220.0100.01415.49
7.0.210.0180.00715.17
7.0.200.0310.00915.06
7.0.190.0200.00715.54
7.0.180.0170.00315.18
7.0.170.0200.00715.25
7.0.160.0130.00915.58
7.0.150.0100.01015.36
7.0.140.0910.03217.76
7.0.130.0680.03317.94
7.0.120.0660.03017.85
7.0.110.0700.02917.79
7.0.100.0970.03817.83
7.0.90.0830.03617.90
7.0.80.0680.03217.85
7.0.70.0910.03517.84
7.0.60.0600.03017.92
7.0.50.0600.03017.95
7.0.40.0580.02916.87
7.0.30.0580.02716.85
7.0.20.0590.03516.84
7.0.10.0520.03916.92
7.0.00.0520.03316.90
5.6.400.0140.01414.45
5.6.390.0190.00614.52
5.6.380.0130.01114.83
5.6.370.0230.00614.76
5.6.360.0150.01114.21
5.6.350.0200.00814.68
5.6.340.0180.01414.61
5.6.330.0230.00012.38
5.6.320.0140.00712.38
5.6.310.0110.01914.30
5.6.300.0110.01514.54
5.6.290.0070.03217.86
5.6.280.0100.03117.56
5.6.270.0050.03817.61
5.6.260.0080.03417.80
5.6.250.0150.02917.69
5.6.240.0080.04017.60
5.6.230.0100.03217.64
5.6.220.0090.02917.71
5.6.210.0080.03117.77
5.6.200.0070.03417.68
5.6.190.0130.03017.49
5.6.180.0100.03317.59
5.6.170.0130.02817.43
5.6.160.0110.02717.71
5.6.150.0070.03617.78
5.6.140.0100.03217.70
5.6.130.0120.02817.75
5.6.120.0040.03717.81
5.6.110.0090.03217.70
5.6.100.0070.03417.74
5.6.90.0050.03417.61
5.6.80.0050.02917.12
5.6.70.0070.02917.18
5.6.60.0020.03817.41
5.6.50.0090.03517.53
5.6.40.0060.03017.44
5.6.30.0110.02717.31
5.6.20.0100.04217.21
5.6.10.0100.03417.42
5.6.00.0070.02917.32

preferences:
42.94 ms | 401 KiB | 5 Q