3v4l.org

run code in 300+ PHP versions simultaneously
<?php $categories = array( array('name' => 'ImportOrders', 'keywords' => array('ImportOrders', 'CountriesArrayResponse')) ); $matches = array(); $types = array('Keks', 'Import'); 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.60.0160.00616.75
8.3.50.0070.01118.05
8.3.40.0040.01119.02
8.3.30.0140.00418.88
8.3.20.0040.00420.38
8.3.10.0000.00723.46
8.3.00.0100.00017.71
8.2.180.0110.00418.68
8.2.170.0160.00622.96
8.2.160.0140.00720.39
8.2.150.0090.00024.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0030.00717.72
8.2.110.0070.00421.04
8.2.100.0060.00617.93
8.2.90.0040.00419.18
8.2.80.0050.00317.97
8.2.70.0000.00917.75
8.2.60.0040.00418.04
8.2.50.0000.00818.07
8.2.40.0080.00021.07
8.2.30.0050.00220.66
8.2.20.0000.00917.84
8.2.10.0050.00218.04
8.2.00.0070.00018.20
8.1.280.0070.01025.92
8.1.270.0060.00323.99
8.1.260.0060.00326.35
8.1.250.0000.00728.09
8.1.240.0090.00021.04
8.1.230.0120.00017.66
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0030.00617.50
8.1.190.0060.00317.47
8.1.180.0080.00018.10
8.1.170.0080.00018.75
8.1.160.0070.00021.99
8.1.150.0040.00419.01
8.1.140.0080.00019.49
8.1.130.0070.00017.70
8.1.120.0040.00417.53
8.1.110.0060.00317.51
8.1.100.0030.00617.53
8.1.90.0040.00417.51
8.1.80.0000.00717.62
8.1.70.0070.00017.57
8.1.60.0000.00817.74
8.1.50.0030.00517.70
8.1.40.0060.00317.75
8.1.30.0040.00417.88
8.1.20.0040.00417.86
8.1.10.0000.00717.61
8.1.00.0050.00317.73
8.0.300.0030.00518.77
8.0.290.0040.00417.00
8.0.280.0070.00018.43
8.0.270.0000.00717.28
8.0.260.0060.00017.16
8.0.250.0000.00717.18
8.0.240.0060.00317.09
8.0.230.0030.00317.05
8.0.220.0000.00717.09
8.0.210.0070.00017.01
8.0.200.0050.00217.15
8.0.190.0040.00417.09
8.0.180.0000.00816.98
8.0.170.0000.00817.16
8.0.160.0000.00717.07
8.0.150.0070.00017.05
8.0.140.0070.00017.08
8.0.130.0000.00513.50
8.0.120.0060.00317.08
8.0.110.0000.00817.10
8.0.100.0040.00416.97
8.0.90.0040.00416.98
8.0.80.0070.01417.09
8.0.70.0050.00216.98
8.0.60.0000.00817.00
8.0.50.0030.00616.99
8.0.30.0080.01217.34
8.0.20.0110.00917.40
8.0.10.0000.00717.24
8.0.00.0110.00817.02
7.4.330.0030.00415.08
7.4.320.0000.00616.74
7.4.300.0070.00016.62
7.4.290.0070.00016.80
7.4.280.0050.00216.64
7.4.270.0000.00716.73
7.4.260.0040.00416.63
7.4.250.0040.00416.80
7.4.240.0030.00516.66
7.4.230.0040.00416.56
7.4.220.0140.01016.75
7.4.210.0060.01516.74
7.4.200.0040.00416.91
7.4.160.0060.00916.63
7.4.150.0110.01117.40
7.4.140.0080.01217.86
7.4.130.0090.00916.91
7.4.120.0070.01116.71
7.4.110.0040.01416.77
7.4.100.0110.00616.67
7.4.90.0180.00416.78
7.4.80.0070.01419.39
7.4.70.0060.01216.79
7.4.60.0060.00916.76
7.4.50.0080.00016.56
7.4.40.0100.00616.70
7.4.30.0110.01516.89
7.4.00.0080.00415.09
7.3.330.0060.00013.61
7.3.320.0000.00513.65
7.3.310.0030.00316.60
7.3.300.0030.00316.46
7.3.290.0110.00616.56
7.3.280.0060.01216.59
7.3.270.0130.00617.40
7.3.260.0080.01616.95
7.3.250.0090.00916.73
7.3.240.0110.01116.69
7.3.230.0070.01116.82
7.3.210.0120.00816.54
7.3.200.0150.00316.46
7.3.190.0040.01216.84
7.3.180.0090.01216.60
7.3.170.0100.00616.48
7.3.160.0080.00816.60
7.2.330.0150.00316.87
7.2.320.0080.00816.98
7.2.310.0110.00716.77
7.2.300.0090.01216.67
7.2.290.0100.01016.98
7.2.60.0030.01316.92
7.2.00.0090.00619.72
7.1.200.0040.00416.14
7.1.100.0000.01118.20
7.1.70.0040.00417.52
7.1.60.0040.02119.13
7.1.50.0100.01317.02
7.1.00.0070.07322.45
7.0.200.0060.00615.28
7.0.60.0070.07719.91
7.0.50.0100.03717.90
7.0.40.0000.09320.04
7.0.30.0370.04320.26
7.0.20.0230.04020.31
7.0.10.0230.08020.21
7.0.00.0070.08320.20
5.6.280.0030.07320.82
5.6.210.0000.07720.45
5.6.200.0100.07018.25
5.6.190.0200.04320.63
5.6.180.3530.04020.57
5.6.170.0330.06020.48
5.6.160.0100.05320.44
5.6.150.0000.07718.28
5.6.140.0070.04018.25
5.6.130.0030.07718.29
5.6.120.0070.03721.10
5.6.110.0100.05021.04
5.6.100.0030.04021.00
5.6.90.0000.04321.03
5.6.80.0130.07320.53
5.6.70.0270.07720.27
5.5.350.0070.07720.50
5.5.340.0070.08018.07
5.5.330.0030.09020.35
5.5.320.0230.04020.24
5.5.310.0230.05720.30
5.5.300.0070.03718.03
5.5.290.0100.08017.98
5.5.280.0200.07320.85
5.5.270.0030.08720.96
5.5.260.0100.07020.68
5.5.250.0070.08320.47
5.5.240.0130.07320.20
5.4.450.0770.05319.61
5.4.440.0930.07719.29
5.4.430.0730.06719.70
5.4.420.0730.05719.58
5.4.410.0770.05719.04
5.4.400.0600.05318.88
5.4.390.0570.06019.15
5.4.380.0600.05719.14
5.4.370.0730.03719.21
5.4.360.0830.05719.26
5.4.350.0630.06018.87
5.4.340.0700.05719.16
5.4.320.0770.05319.29
5.4.310.0700.05019.06
5.4.300.0700.05319.28
5.4.290.0500.05719.30
5.4.280.0570.05319.25
5.4.270.0570.05318.87
5.4.260.0630.04319.23
5.4.250.0470.06319.14
5.4.240.0530.05319.29
5.4.230.0500.05718.86
5.4.220.0500.05719.14
5.4.210.0600.05718.82
5.4.200.0530.05319.37
5.4.190.0570.05319.29
5.4.180.0630.06019.27
5.4.170.0570.05018.83
5.4.160.0600.05019.27
5.4.150.0570.05718.82
5.4.140.0530.05016.43
5.4.130.0530.04716.43
5.4.120.0530.04716.33
5.4.110.0500.05316.64
5.4.100.0500.06016.65
5.4.90.0430.05716.50
5.4.80.0500.05016.66
5.4.70.0530.05016.55
5.4.60.0830.04316.50
5.4.50.0700.05016.59
5.4.40.0730.04716.54
5.4.30.0730.04316.16
5.4.20.0730.05316.39
5.4.10.0670.05016.42
5.4.00.0100.05015.83

preferences:
63.16 ms | 400 KiB | 5 Q