3v4l.org

run code in 300+ PHP versions simultaneously
<?php $categories = array( array('name' => 'ImportOrders', 'keywords' => array('ImportOrders', 'CountriesArrayResponse')) ); $matches = array(); $types = $this->types; foreach($categories as $cat) { foreach($cat['keywords'] as $keyword) { $array_filter = function($var) use ($keyword) { return preg_match("/\b$keyword\b/i", $var); }; $matches[$cat['name']] = array_push(array_filter($types, $array_filter)); } }

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.70.0130.00718.28
8.3.60.0090.01216.50
8.3.50.0100.00921.99
8.3.40.0000.01418.92
8.3.30.0070.00718.63
8.3.20.0050.00320.16
8.3.10.0040.00423.61
8.3.00.0000.00917.38
8.2.190.0130.00616.88
8.2.180.0070.00718.43
8.2.170.0040.01222.96
8.2.160.0130.00720.37
8.2.150.0040.00424.18
8.2.140.0030.00524.66
8.2.130.0040.00426.16
8.2.120.0060.00317.63
8.2.110.0060.00622.08
8.2.100.0060.00618.04
8.2.90.0000.00819.28
8.2.80.0050.00317.97
8.2.70.0030.00617.50
8.2.60.0000.00817.80
8.2.50.0060.00318.07
8.2.40.0040.00421.00
8.2.30.0030.00320.48
8.2.20.0040.00417.56
8.2.10.0070.00018.12
8.2.00.0080.00018.06
8.1.280.0110.01125.92
8.1.270.0060.00323.79
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0090.00022.55
8.1.230.0090.00317.54
8.1.220.0050.00317.74
8.1.210.0050.00318.77
8.1.200.0040.00417.22
8.1.190.0090.00017.23
8.1.180.0000.00718.10
8.1.170.0040.00418.86
8.1.160.0000.00722.00
8.1.150.0080.00018.73
8.1.140.0030.00519.36
8.1.130.0000.00817.54
8.1.120.0040.00417.43
8.1.110.0060.00317.30
8.1.100.0040.00417.28
8.1.90.0040.00417.41
8.1.80.0040.00417.41
8.1.70.0040.00417.36
8.1.60.0040.00417.59
8.1.50.0050.00317.51
8.1.40.0000.00817.49
8.1.30.0040.00417.64
8.1.20.0040.00417.61
8.1.10.0000.00817.59
8.1.00.0050.00317.36
8.0.300.0080.00018.77
8.0.290.0050.00216.75
8.0.280.0050.00218.38
8.0.270.0030.00317.10
8.0.260.0000.00717.18
8.0.250.0050.00316.97
8.0.240.0040.00416.95
8.0.230.0040.00416.98
8.0.220.0080.00016.81
8.0.210.0000.00816.90
8.0.200.0050.00316.84
8.0.190.0040.00416.95
8.0.180.0050.00216.91
8.0.170.0040.00416.79
8.0.160.0070.00016.98
8.0.150.0050.00216.82
8.0.140.0030.00316.85
8.0.130.0000.00713.19
8.0.120.0000.00816.77
8.0.110.0000.00816.80
8.0.100.0030.00616.83
8.0.90.0000.00716.95
8.0.80.0030.01216.87
8.0.70.0000.00716.89
8.0.60.0070.00016.78
8.0.50.0050.00316.91
8.0.30.0090.00916.99
8.0.20.0090.00917.40
8.0.10.0070.00016.85
8.0.00.0110.01016.51
7.4.330.0040.00415.08
7.4.320.0030.00316.45
7.4.300.0000.00616.45
7.4.290.0000.00816.65
7.4.280.0040.00416.51
7.4.270.0040.00416.57
7.4.260.0000.00716.51
7.4.250.0050.00216.49
7.4.240.0030.00316.49
7.4.230.0030.00316.42
7.4.220.0060.01216.66
7.4.210.0070.00716.56
7.4.200.0050.00216.34
7.4.160.0130.00316.48
7.4.150.0110.00717.40
7.4.140.0140.01017.86
7.4.130.0090.01016.58
7.4.120.0110.00716.53
7.4.110.0070.01116.34
7.4.100.0060.01116.38
7.4.90.0040.01416.56
7.4.80.0060.01119.39
7.4.70.0070.01016.41
7.4.60.0080.00816.41
7.4.50.0040.00416.26
7.4.40.0100.00716.31
7.4.30.0130.00816.61
7.4.00.0030.00714.93
7.3.330.0050.00013.17
7.3.320.0030.00313.29
7.3.310.0060.00016.20
7.3.300.0000.00716.14
7.3.290.0100.00616.29
7.3.280.0100.00816.31
7.3.270.0060.01217.40
7.3.260.0090.00916.50
7.3.250.0100.00716.39
7.3.240.0120.00716.25
7.3.230.0100.00616.58
7.3.210.0100.00716.29
7.3.200.0140.00316.48
7.3.190.0100.00716.47
7.3.180.0030.01316.51
7.3.170.0100.00616.39
7.3.160.0080.00816.43
7.2.330.0120.00416.61
7.2.320.0090.00916.64
7.2.310.0100.00716.60
7.2.300.0070.01016.66
7.2.290.0100.00716.66
7.2.60.0100.00316.83
7.1.200.0000.00915.74
7.1.70.0000.00816.89
7.1.60.0120.01219.13
7.1.50.0120.00016.79
7.1.00.0030.07322.44
7.0.200.0070.00714.95
7.0.60.0070.04720.05
7.0.50.0030.06017.85
7.0.40.0070.05319.96
7.0.30.0470.06020.26
7.0.20.0230.04720.10
7.0.10.0300.08020.04
7.0.00.0130.08020.24
5.6.280.0100.06020.79
5.6.210.0000.08720.50
5.6.200.0130.08018.22
5.6.190.0070.09320.60
5.6.180.3670.04020.47
5.6.170.0370.07720.50
5.6.160.0100.09020.70
5.6.150.0030.08718.16
5.6.140.0000.07018.28
5.6.130.0000.04318.18
5.6.120.0100.07721.04
5.6.110.0070.08721.12
5.6.100.0130.06020.98
5.6.90.0030.05020.98
5.6.80.0070.03720.29
5.6.70.0330.05020.43
5.5.350.0000.04020.41
5.5.340.0070.07317.96
5.5.330.0100.05320.40
5.5.320.0130.05720.35
5.5.310.0300.04720.25
5.5.300.0070.07317.98
5.5.290.0030.08317.97
5.5.280.0000.09320.89
5.5.270.0130.03720.95
5.5.260.0030.08020.64
5.5.250.0130.07320.50
5.5.240.0070.06720.07
5.4.450.0600.07019.46
5.4.440.0670.06719.38
5.4.430.0130.06319.58
5.4.420.0370.06319.64
5.4.410.0670.05319.45
5.4.400.0300.05019.38
5.4.390.0130.05319.32
5.4.380.0230.06319.22
5.4.370.0770.05719.26
5.4.360.0670.06719.22
5.4.350.0900.06019.04
5.4.340.0770.06018.89
5.4.320.0700.06019.22
5.4.310.0730.05719.15
5.4.300.0700.06319.30
5.4.290.0800.06319.01
5.4.280.0930.04718.84
5.4.270.0730.06719.05
5.4.260.0670.05718.87
5.4.250.0730.07319.37
5.4.240.0770.05719.25
5.4.230.0700.04719.15
5.4.220.0770.05719.14
5.4.210.0870.05319.05
5.4.200.0730.05318.97
5.4.190.0770.05719.25
5.4.180.0800.05319.02
5.4.170.0800.05019.15
5.4.160.0170.04718.82
5.4.150.0100.06018.96
5.4.140.0870.04716.30
5.4.130.0800.04716.39
5.4.120.0800.06716.46
5.4.110.0800.04316.71
5.4.100.0830.05016.63
5.4.90.0700.06316.63
5.4.80.0800.06316.52
5.4.70.1000.06716.61
5.4.60.0700.05316.49
5.4.50.0700.06316.57
5.4.40.0770.04316.39
5.4.30.0770.05316.64
5.4.20.0930.05316.22
5.4.10.0870.07316.54
5.4.00.0930.06015.85

preferences:
18.16 ms | 401 KiB | 5 Q