3v4l.org

run code in 300+ PHP versions simultaneously
<?php $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.0070.01416.63
8.3.50.0050.01321.99
8.3.40.0070.01418.66
8.3.30.0100.00318.84
8.3.20.0050.00320.34
8.3.10.0040.00423.36
8.3.00.0070.00317.38
8.2.180.0110.00418.39
8.2.170.0140.00022.96
8.2.160.0070.00720.52
8.2.150.0060.00325.66
8.2.140.0050.00324.66
8.2.130.0070.00026.16
8.2.120.0030.00617.75
8.2.110.0070.00322.26
8.2.100.0110.00017.93
8.2.90.0040.00419.36
8.2.80.0030.00617.97
8.2.70.0030.00617.75
8.2.60.0060.00317.93
8.2.50.0040.00418.07
8.2.40.0040.00421.25
8.2.30.0030.00320.52
8.2.20.0000.00817.89
8.2.10.0000.00718.14
8.2.00.0040.00418.04
8.1.280.0130.01025.92
8.1.270.0060.00320.40
8.1.260.0070.00026.35
8.1.250.0000.00728.09
8.1.240.0120.00622.64
8.1.230.0110.00017.64
8.1.220.0000.00817.76
8.1.210.0040.00418.77
8.1.200.0000.01017.13
8.1.190.0030.00517.36
8.1.180.0050.00218.10
8.1.170.0050.00319.02
8.1.160.0040.00422.02
8.1.150.0000.00718.88
8.1.140.0040.00419.64
8.1.130.0000.00717.68
8.1.120.0030.00517.44
8.1.110.0030.00717.50
8.1.100.0030.00617.49
8.1.90.0030.00517.37
8.1.80.0000.00917.51
8.1.70.0050.00217.39
8.1.60.0040.00417.45
8.1.50.0000.00817.49
8.1.40.0030.00617.54
8.1.30.0040.00417.55
8.1.20.0040.00417.59
8.1.10.0040.00417.54
8.1.00.0000.00717.39
8.0.300.0080.00018.77
8.0.290.0080.00016.75
8.0.280.0000.00818.34
8.0.270.0070.00017.19
8.0.260.0040.00417.11
8.0.250.0040.00416.98
8.0.240.0050.00316.89
8.0.230.0030.00316.82
8.0.220.0050.00316.81
8.0.210.0050.00216.91
8.0.200.0050.00316.91
8.0.190.0000.00817.00
8.0.180.0000.00716.87
8.0.170.0000.00816.93
8.0.160.0000.00816.84
8.0.150.0070.00016.91
8.0.140.0000.00816.94
8.0.130.0030.00313.34
8.0.120.0050.00316.81
8.0.110.0050.00316.95
8.0.100.0030.00617.02
8.0.90.0050.00317.00
8.0.80.0120.00316.84
8.0.70.0050.00216.75
8.0.60.0050.00317.02
8.0.50.0000.00716.90
8.0.30.0100.00817.05
8.0.20.0130.00517.40
8.0.10.0000.00716.95
8.0.00.0080.00916.79
7.4.330.0030.00315.08
7.4.320.0060.00016.50
7.4.300.0030.00316.59
7.4.290.0080.00016.60
7.4.280.0030.00616.44
7.4.270.0080.00016.55
7.4.260.0050.00216.51
7.4.250.0000.00716.54
7.4.240.0060.00116.54
7.4.230.0030.00316.63
7.4.220.0130.01316.52
7.4.210.0000.01416.45
7.4.200.0040.00416.50
7.4.160.0070.01016.65
7.4.150.0060.01217.40
7.4.140.0140.00917.86
7.4.130.0060.01116.51
7.4.120.0070.01016.50
7.4.110.0150.00416.33
7.4.100.0130.00716.48
7.4.90.0110.00716.58
7.4.80.0030.01619.39
7.4.70.0080.00816.50
7.4.60.0100.00616.48
7.4.50.0040.00416.21
7.4.40.0000.01616.60
7.4.30.0130.01016.41
7.4.00.0030.01014.99
7.3.330.0060.00013.38
7.3.320.0000.00613.25
7.3.310.0030.00316.38
7.3.300.0070.00016.34
7.3.290.0070.00716.40
7.3.280.0080.00716.43
7.3.270.0070.01017.40
7.3.260.0110.00716.49
7.3.250.0120.00616.49
7.3.240.0120.00416.35
7.3.230.0070.01016.46
7.3.210.0060.01116.48
7.3.200.0060.01216.43
7.3.190.0090.00916.45
7.3.180.0070.01016.35
7.3.170.0080.01216.35
7.3.160.0120.00316.54
7.2.330.0120.00616.34
7.2.320.0100.01016.64
7.2.310.0130.00716.71
7.2.300.0030.01316.50
7.2.290.0140.00716.36
7.2.60.0110.00316.85
7.2.00.0040.01219.47
7.1.200.0070.00715.62
7.1.100.0000.01418.28
7.1.70.0040.00416.86
7.1.60.0160.01019.13
7.1.50.0060.01517.05
7.1.00.0000.08022.40
7.0.200.0060.00615.06
7.0.60.0130.05019.92
7.0.50.0100.03717.89
7.0.40.0070.07720.24
7.0.30.0370.06020.13
7.0.20.0130.04020.09
7.0.10.0200.04720.06
7.0.00.0100.06020.11
5.6.280.0070.04021.02
5.6.210.0000.09020.51
5.6.200.0100.04718.18
5.6.190.0070.08720.63
5.6.180.4200.04320.42
5.6.170.0270.06720.54
5.6.160.0070.07020.46
5.6.150.0070.05018.19
5.6.140.0030.05718.28
5.6.130.0070.08718.18
5.6.120.0030.08721.00
5.6.110.0100.07720.98
5.6.100.0000.04321.02
5.6.90.0030.06021.00
5.6.80.0100.07720.44
5.5.350.0000.08020.50
5.5.340.0000.07017.99
5.5.330.0070.09320.40
5.5.320.0200.05020.34
5.5.310.0200.04020.36
5.5.300.0100.06017.92
5.5.290.0070.04018.01
5.5.280.0170.06320.65
5.5.270.0130.08020.66
5.5.260.0100.08020.81
5.5.250.0230.06320.69
5.5.240.0100.05320.16
5.4.450.0170.05719.44
5.4.440.0170.05319.70
5.4.430.0170.05319.57
5.4.420.0100.06319.47
5.4.410.0200.05019.07
5.4.400.0130.05319.23
5.4.390.0130.06719.01
5.4.380.0130.05719.22
5.4.370.0130.05319.18
5.4.360.0130.05719.31
5.4.350.0230.04719.29
5.4.340.0170.05719.25
5.4.320.0170.05019.29
5.4.310.0170.04719.04
5.4.300.0200.05719.14
5.4.290.0170.04718.87
5.4.280.0130.05319.30
5.4.270.0170.05018.88
5.4.260.0130.05319.28
5.4.250.0070.06319.14
5.4.240.0330.03719.14
5.4.230.0070.06019.40
5.4.220.0200.05019.21
5.4.210.0130.05719.35
5.4.200.0230.04019.14
5.4.190.0300.04019.21
5.4.180.0100.05719.11
5.4.170.0130.05318.86
5.4.160.0230.04319.05
5.4.150.0330.06019.24
5.4.140.0130.05316.39
5.4.130.0200.04316.53
5.4.120.0130.05016.49
5.4.110.0170.05316.53
5.4.100.0130.05016.42
5.4.90.0170.04716.62
5.4.80.0200.04716.63
5.4.70.0130.05716.25
5.4.60.0130.05016.59
5.4.50.0100.05716.55
5.4.40.0170.05016.39
5.4.30.0200.05716.16
5.4.20.0200.04316.57
5.4.10.0200.04716.63
5.4.00.0070.05715.91

preferences:
58.15 ms | 401 KiB | 5 Q