3v4l.org

run code in 300+ PHP versions simultaneously
<?php $stringFilter = ['foo' => [ 'filtering' => [ "status = ['stuff' => 'foo']" ], ], ]; function applyFilter($object, $filtering) { foreach ($filtering as $filter) { eval("\$object->{$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.0130.00718.18
8.3.50.0100.01021.13
8.3.40.0110.00318.59
8.3.30.0080.00818.95
8.3.20.0040.00420.16
8.3.10.0030.00620.23
8.3.00.0080.00019.25
8.2.180.0090.00616.38
8.2.170.0000.02022.96
8.2.160.0120.00920.21
8.2.150.0060.00324.18
8.2.140.0080.00024.66
8.2.130.0050.00326.16
8.2.120.0080.00022.24
8.2.110.0000.00920.53
8.2.100.0040.00718.09
8.2.90.0000.00719.17
8.2.80.0000.00817.97
8.2.70.0040.00417.63
8.2.60.0080.00017.91
8.2.50.0060.00618.07
8.2.40.0040.00417.78
8.2.30.0030.00718.03
8.2.20.0040.00417.61
8.2.10.0040.00417.87
8.2.00.0050.00317.47
8.1.280.0110.00325.92
8.1.270.0030.00623.95
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00621.96
8.1.230.0070.00419.15
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0060.00317.13
8.1.190.0030.00517.23
8.1.180.0060.00318.10
8.1.170.0080.00018.59
8.1.160.0000.00921.90
8.1.150.0050.00218.85
8.1.140.0030.00517.33
8.1.130.0040.00417.82
8.1.120.0070.00017.29
8.1.110.0080.00017.37
8.1.100.0030.00317.43
8.1.90.0030.00317.29
8.1.80.0040.00417.29
8.1.70.0030.00317.39
8.1.60.0060.00317.39
8.1.50.0050.00217.41
8.1.40.0040.00417.48
8.1.30.0040.00717.61
8.1.20.0080.00017.48
8.1.10.0000.00717.43
8.1.00.0050.00217.27
8.0.300.0070.00018.77
8.0.290.0050.00216.75
8.0.280.0050.00318.38
8.0.270.0000.00717.18
8.0.260.0080.00017.03
8.0.250.0000.00716.86
8.0.240.0030.00316.75
8.0.230.0070.00016.75
8.0.220.0000.00716.74
8.0.210.0000.00716.88
8.0.200.0000.00616.86
8.0.190.0050.00316.93
8.0.180.0030.00516.77
8.0.170.0000.00816.76
8.0.160.0000.00716.89
8.0.150.0070.00016.81
8.0.140.0030.00316.82
8.0.130.0040.00413.26
8.0.120.0000.00816.84
8.0.110.0080.00016.71
8.0.100.0040.00416.66
8.0.90.0040.00416.63
8.0.80.0150.00016.82
8.0.70.0040.00416.71
8.0.60.0040.00416.84
8.0.50.0040.00416.80
8.0.30.0120.00616.90
8.0.20.0100.00817.40
8.0.10.0070.00016.83
8.0.00.0100.00816.68
7.4.330.0050.00015.02
7.4.320.0040.00416.43
7.4.300.0030.00316.47
7.4.290.0000.00716.49
7.4.280.0020.00516.42
7.4.270.0000.00716.45
7.4.260.0060.00016.37
7.4.250.0040.00416.52
7.4.240.0020.00516.54
7.4.230.0070.00016.46
7.4.220.0150.00916.45
7.4.210.0070.00716.55
7.4.200.0070.00016.60
7.4.160.0100.00616.52
7.4.150.0090.00917.40
7.4.140.0120.00517.86
7.4.130.0090.01016.40
7.4.120.0110.00916.38
7.4.110.0130.00316.55
7.4.100.0100.00716.40
7.4.90.0080.00816.45
7.4.80.0150.00419.39
7.4.70.0100.00716.52
7.4.60.0160.00016.36
7.4.50.0050.00016.11
7.4.40.0100.00716.24
7.4.30.0090.01216.52
7.4.00.0080.00815.09
7.3.330.0020.00212.99
7.3.320.0060.00013.12
7.3.310.0070.00016.07
7.3.300.0030.00316.03
7.3.290.0060.01216.23
7.3.280.0110.00916.14
7.3.270.0100.00717.40
7.3.260.0100.01316.27
7.3.250.0100.01016.37
7.3.240.0090.00916.17
7.3.230.0170.00016.39
7.3.210.0090.00616.49
7.3.200.0060.01619.39
7.3.190.0090.00716.31
7.3.180.0080.00816.42
7.3.170.0110.00416.27
7.3.160.0070.01016.23
7.2.330.0120.00616.55
7.2.320.0130.00316.28
7.2.310.0100.00616.53
7.2.300.0060.01216.55
7.2.290.0100.00616.36
7.2.60.0000.01616.71
7.2.00.0040.01418.87
7.1.200.0040.00415.45
7.1.100.0090.00318.07
7.1.70.0030.01316.94
7.1.60.0070.01719.32
7.1.50.0060.01616.77
7.1.00.0000.08022.40
7.0.200.0040.00416.45
7.0.140.0000.07321.95
7.0.60.0000.05320.10
7.0.50.0070.08017.89
7.0.40.0030.06720.27
7.0.30.0270.07020.25
7.0.20.0230.04020.10
7.0.10.0000.04720.24
7.0.00.0100.07020.11
5.6.280.0100.06321.11
5.6.210.0030.04020.48
5.6.200.0000.07018.18
5.6.190.0100.07020.57
5.6.180.0400.06020.61
5.6.170.0400.07320.47
5.6.160.0070.08320.71
5.6.150.0070.08018.15
5.6.140.0070.08018.17
5.6.130.0030.08018.28
5.6.120.0130.07020.93
5.6.110.0100.07321.01
5.6.100.0130.08020.99
5.6.90.0130.07320.98
5.6.80.0100.07720.41
5.5.350.0270.07020.40
5.5.340.0030.08718.00
5.5.330.0030.04720.26
5.5.320.0400.07320.29
5.5.310.0100.04720.36
5.5.300.0100.07718.06
5.5.290.0070.06017.93
5.5.280.0070.09020.75
5.5.270.0070.03720.76
5.5.260.0070.04020.86
5.5.250.0030.06720.61
5.5.240.0230.07020.29
5.4.450.0770.04719.64
5.4.440.0930.05319.68
5.4.430.1030.05319.62
5.4.420.0630.00019.42
5.4.410.0630.00019.41
5.4.400.0630.00018.94
5.4.390.0600.00019.16
5.4.380.0630.00019.21
5.4.370.0600.00019.09
5.4.360.0670.00019.11
5.4.350.0630.00019.11
5.4.340.0700.00019.21
5.4.320.0100.03912.50
5.4.310.0050.03912.50
5.4.300.0040.03712.51
5.4.290.0050.03912.50
5.4.280.0070.03312.40
5.4.270.0040.03712.40
5.4.260.0060.03712.40
5.4.250.0070.03512.39
5.4.240.0090.03212.40
5.4.230.0070.03512.39
5.4.220.0040.03812.39
5.4.210.0100.03012.39
5.4.200.0060.03612.39
5.4.190.0040.03712.38
5.4.180.0040.03612.39
5.4.170.0060.03412.39
5.4.160.0050.03512.39
5.4.150.0040.03612.38
5.4.140.0050.03712.07
5.4.130.0080.03212.06
5.4.120.0060.03512.02
5.4.110.0030.03912.01
5.4.100.0070.03412.01
5.4.90.0060.03912.01
5.4.80.0040.03812.02
5.4.70.0070.03212.01
5.4.60.0090.03112.01
5.4.50.0110.03712.01
5.4.40.0060.03812.00
5.4.30.0100.03612.00
5.4.20.0070.03211.99
5.4.10.0070.03212.00
5.4.00.0070.04411.48
5.3.290.0060.04112.80
5.3.280.0060.03712.70
5.3.270.0020.04212.72
5.3.260.0070.03712.72
5.3.250.0070.03912.72
5.3.240.0090.03512.72
5.3.230.0000.04312.71
5.3.220.0100.03212.68
5.3.210.0080.03512.68
5.3.200.0050.03512.68
5.3.190.0050.03712.68
5.3.180.0030.03812.67
5.3.170.0100.03212.67
5.3.160.0120.02912.68
5.3.150.0060.03512.68
5.3.140.0040.03712.66
5.3.130.0100.04112.66
5.3.120.0040.03912.66
5.3.110.0060.03712.66
5.3.100.0050.04312.12
5.3.90.0060.04012.09
5.3.80.0090.03612.07
5.3.70.0040.03912.07
5.3.60.0080.03512.07
5.3.50.0040.03712.00
5.3.40.0020.03812.00
5.3.30.0070.03211.95
5.3.20.0080.03311.73
5.3.10.0050.03311.70
5.3.00.0030.03811.68
5.2.170.0040.0309.18
5.2.160.0040.0289.18
5.2.150.0050.0299.18
5.2.140.0040.0309.18
5.2.130.0020.0339.14
5.2.120.0040.0279.14
5.2.110.0050.0299.14
5.2.100.0030.0329.15
5.2.90.0040.0289.14
5.2.80.0060.0289.14
5.2.70.0050.0299.14
5.2.60.0030.0329.09
5.2.50.0030.0319.06
5.2.40.0040.0289.03
5.2.30.0070.0269.01
5.2.20.0050.0279.00
5.2.10.0050.0268.93
5.2.00.0020.0308.78
5.1.60.0040.0238.06
5.1.50.0050.0238.06
5.1.40.0050.0228.04
5.1.30.0040.0258.40
5.1.20.0040.0258.42
5.1.10.0040.0258.14
5.1.00.0040.0258.14
5.0.50.0050.0196.62
5.0.40.0040.0196.48
5.0.30.0010.0336.29
5.0.20.0010.0216.27
5.0.10.0060.0256.24
5.0.00.0030.0296.23
4.4.90.0060.0114.78
4.4.80.0040.0184.76
4.4.70.0030.0184.75
4.4.60.0020.0164.76
4.4.50.0020.0154.77
4.4.40.0000.0274.71
4.4.30.0040.0144.76
4.4.20.0040.0184.84
4.4.10.0020.0164.85
4.4.00.0030.0244.76
4.3.110.0020.0154.67
4.3.100.0040.0134.67
4.3.90.0040.0124.63
4.3.80.0020.0244.59
4.3.70.0040.0124.63
4.3.60.0050.0114.63
4.3.50.0030.0144.63
4.3.40.0040.0284.54
4.3.30.0030.0143.28
4.3.20.0030.0143.26
4.3.10.0030.0143.22
4.3.00.0070.02316.50

preferences:
41.29 ms | 401 KiB | 5 Q