3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = array( json_decode('{"name": "foo1", "other": "test"}'), json_decode('{"name": "foo2", "other": "test"}'), json_decode('{"name": "foo3", "other": "test"}'), ); $name = 'foo2'; echo "INPUT\n", str_repeat('=', 20), "\n"; var_dump($input); echo "\n"; echo "RESULT\n", str_repeat('=', 20), "\n"; var_dump( $result = array_filter($input, function($o) use ($name) { return $o->name == $name; }) ); echo "usage\n", str_repeat('=', 20), "\n"; $match = $result[1]; var_dump($match->other);

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.0140.00316.38
8.3.50.0080.01222.05
8.3.40.0090.00618.64
8.3.30.0140.00019.04
8.3.20.0050.00320.30
8.3.10.0080.00021.89
8.3.00.0070.00417.50
8.2.180.0070.01418.23
8.2.170.0130.00322.96
8.2.160.0040.01120.39
8.2.150.0050.00324.18
8.2.140.0060.00324.66
8.2.130.0040.00426.16
8.2.120.0050.00319.67
8.2.110.0090.00022.17
8.2.100.0090.00317.63
8.2.90.0040.00419.34
8.2.80.0080.00017.97
8.2.70.0060.00317.63
8.2.60.0000.00817.93
8.2.50.0060.00318.07
8.2.40.0060.00320.07
8.2.30.0040.00418.15
8.2.20.0000.00817.67
8.2.10.0000.00718.18
8.2.00.0000.00717.64
8.1.280.0070.00725.92
8.1.270.0090.00018.84
8.1.260.0060.00326.35
8.1.250.0080.00028.09
8.1.240.0030.00719.14
8.1.230.0110.00018.85
8.1.220.0080.00017.75
8.1.210.0000.00818.77
8.1.200.0030.00617.48
8.1.190.0050.00317.23
8.1.180.0000.00818.10
8.1.170.0040.00420.30
8.1.160.0050.00222.01
8.1.150.0040.00418.76
8.1.140.0000.01017.45
8.1.130.0030.00317.83
8.1.120.0050.00217.39
8.1.110.0040.00417.37
8.1.100.0040.00417.48
8.1.90.0000.00717.41
8.1.80.0040.00417.45
8.1.70.0000.00817.41
8.1.60.0040.00417.51
8.1.50.0000.00817.44
8.1.40.0030.00617.54
8.1.30.0050.00517.51
8.1.20.0000.00717.68
8.1.10.0060.00317.53
8.1.00.0030.00717.53
8.0.300.0000.00718.77
8.0.290.0040.00416.75
8.0.280.0030.00318.43
8.0.270.0030.00516.81
8.0.260.0000.00817.17
8.0.250.0000.00716.82
8.0.240.0000.00816.81
8.0.230.0040.00416.88
8.0.220.0000.00716.89
8.0.210.0050.00216.89
8.0.200.0030.00317.02
8.0.190.0040.00416.86
8.0.180.0000.00716.90
8.0.170.0000.00916.88
8.0.160.0000.00716.93
8.0.150.0020.00516.82
8.0.140.0050.00216.83
8.0.130.0030.00313.34
8.0.120.0040.00416.82
8.0.110.0000.00716.89
8.0.100.0000.00716.94
8.0.90.0070.00016.75
8.0.80.0090.00616.85
8.0.70.0030.00516.74
8.0.60.0070.00016.91
8.0.50.0000.00816.99
8.0.30.0170.00717.13
8.0.20.0120.00717.40
8.0.10.0040.00416.89
8.0.00.0090.01016.72
7.4.330.0050.00015.03
7.4.320.0000.00616.39
7.4.300.0030.00316.63
7.4.290.0070.00016.54
7.4.280.0110.00016.59
7.4.270.0030.00616.58
7.4.260.0070.00016.48
7.4.250.0000.00716.51
7.4.240.0030.00516.56
7.4.230.0000.00716.62
7.4.220.0090.00916.66
7.4.210.0070.00916.60
7.4.200.0030.00316.48
7.4.160.0070.01016.30
7.4.150.0130.00617.40
7.4.140.0080.01317.86
7.4.130.0080.01016.42
7.4.120.0080.01316.52
7.4.110.0170.00716.53
7.4.100.0140.00516.51
7.4.90.0070.01116.37
7.4.80.0090.01219.39
7.4.70.0060.01616.48
7.4.60.0090.00616.48
7.4.50.0000.00616.39
7.4.40.0060.01016.60
7.4.30.0090.00916.39
7.4.00.0070.00914.99
7.3.330.0000.00613.22
7.3.320.0130.00013.35
7.3.310.0070.00016.34
7.3.300.0040.00416.27
7.3.290.0040.00316.34
7.3.280.0070.01016.27
7.3.270.0070.01117.40
7.3.260.0110.00816.51
7.3.250.0110.01116.37
7.3.240.0090.00916.53
7.3.230.0120.00716.39
7.3.210.0030.01416.47
7.3.200.0090.00919.39
7.3.190.0030.01316.57
7.3.180.0120.00616.34
7.3.170.0120.00916.54
7.3.160.0060.01216.43
7.3.120.0070.01115.01
7.3.110.0080.00914.63
7.3.100.0120.00614.77
7.3.90.0000.00914.69
7.3.80.0070.01014.85
7.3.70.0030.00614.77
7.3.60.0070.00714.84
7.3.50.0030.00614.95
7.3.40.0060.00914.70
7.3.30.0060.00914.92
7.3.20.0030.00716.69
7.3.10.0050.00716.53
7.3.00.0040.01116.51
7.2.330.0120.00616.86
7.2.320.0090.01516.70
7.2.310.0130.01016.86
7.2.300.0050.01416.40
7.2.290.0120.00916.67
7.2.250.0070.01114.66
7.2.240.0040.01515.11
7.2.230.0100.00014.65
7.2.220.0060.00615.20
7.2.210.0090.00615.21
7.2.200.0030.01515.04
7.2.190.0070.00715.07
7.2.180.0030.01015.08
7.2.170.0040.00714.93
7.2.130.0060.00616.39
7.2.120.0060.00816.71
7.2.110.0060.00916.73
7.2.100.0060.00316.58
7.2.90.0030.00616.57
7.2.80.0040.01216.77
7.2.70.0070.00616.87
7.2.60.0060.00816.91
7.2.50.0030.01016.57
7.2.40.0080.00816.61
7.2.30.0110.00616.75
7.2.20.0080.01216.60
7.2.10.0070.01016.50
7.2.00.0070.01016.83
7.1.330.0070.00715.61
7.1.320.0000.01315.82
7.1.310.0080.00615.47
7.1.300.0040.01015.61
7.1.290.0000.01315.87
7.1.280.0070.00715.38
7.1.270.0090.00315.59
7.1.260.0100.00315.84
7.1.250.0000.01515.45
7.1.200.0030.00715.84
7.1.70.0040.00417.20
7.1.60.0040.01819.46
7.1.50.0220.01634.88
7.1.00.0000.07722.33
7.0.200.0000.00916.80
7.0.140.0030.03721.92
7.0.60.0070.03719.94
7.0.50.0100.03317.73
7.0.40.0070.06319.96
7.0.30.0170.04020.09
7.0.20.0270.04320.16
7.0.10.0130.08020.23
7.0.00.0030.08720.11
5.6.280.0000.07721.10
5.6.210.0070.08320.71
5.6.200.0030.09018.18
5.6.190.0070.04720.49
5.6.180.0500.05720.47
5.6.170.0270.05320.50
5.6.160.0070.05720.47
5.6.150.0070.06018.12
5.6.140.0070.03718.28
5.6.130.0070.04718.26
5.6.120.0130.08020.99
5.6.110.0070.08720.97
5.6.100.0170.07321.13
5.6.90.0070.06020.88
5.6.80.0070.08320.41
5.5.350.0430.07020.46
5.5.340.0070.08317.99
5.5.330.0070.04020.27
5.5.320.0270.07720.34
5.5.310.0300.07320.35
5.5.300.0070.06017.95
5.5.290.0130.04018.09
5.5.280.0070.08020.80
5.5.270.0100.08320.75
5.5.260.0070.08720.68
5.5.250.0070.08020.70
5.5.240.0330.06720.28
5.4.450.0900.05719.61
5.4.440.0730.06019.70
5.4.430.0930.05719.46
5.4.420.1170.04319.56
5.4.410.0600.06319.42
5.4.400.0130.06718.80
5.4.390.0230.07018.77
5.4.380.0300.06718.59
5.4.370.0130.06018.77
5.4.360.0170.06318.57
5.4.350.0330.06718.45
5.4.340.0200.05318.77
5.4.320.0170.08018.48
5.4.310.0170.05318.55
5.4.300.0170.05318.68
5.4.290.0200.05718.68
5.4.280.0130.06018.61
5.4.270.0130.05718.56
5.4.260.0270.04318.81
5.4.250.0400.05018.73
5.4.240.0130.06318.38
5.4.230.0130.05718.49
5.4.220.0200.05018.72
5.4.210.0130.05718.67
5.4.200.0170.05316.55
5.4.190.0230.04318.69
5.4.180.0200.05018.54
5.4.170.0130.05718.49
5.4.160.0200.06018.73
5.4.150.0170.05718.77
5.4.140.0130.05316.47
5.4.130.0270.04016.25
5.4.120.0200.04316.29
5.4.110.0170.04716.27
5.4.100.0170.05016.28
5.4.90.0100.05716.17
5.4.80.0170.05016.19
5.4.70.0100.05716.29
5.4.60.0170.07316.29
5.4.50.0130.07716.29
5.4.40.0070.06016.43
5.4.30.0130.05316.39
5.4.20.0130.05316.40
5.4.10.0200.06316.40
5.4.00.0200.04715.62
5.3.290.0070.06314.70
5.3.280.0100.05714.62
5.3.270.0270.04714.74
5.3.260.0170.05714.64
5.3.250.0200.05014.81
5.3.240.0200.05014.71
5.3.230.0270.04314.70
5.3.220.0170.05014.63
5.3.210.0170.05014.59
5.3.200.0170.05014.56
5.3.190.0130.05714.70
5.3.180.0130.05314.51
5.3.170.0130.05314.61
5.3.160.0170.05314.55
5.3.150.0170.05314.59
5.3.140.0170.05014.73
5.3.130.0100.06014.66
5.3.120.0330.05714.66
5.3.110.0130.05314.68
5.3.100.0130.05714.02
5.3.90.0130.05714.02
5.3.80.0130.05014.14
5.3.70.0200.04714.00
5.3.60.0200.05314.08
5.3.50.0200.06713.98
5.3.40.0370.05014.08
5.3.30.0130.05313.95
5.3.20.0130.05013.82
5.3.10.0100.05013.82
5.3.00.0200.05313.74
5.2.170.0130.04011.12
5.2.160.0130.03711.06
5.2.150.0100.04311.12
5.2.140.0130.04311.20
5.2.130.0170.03711.16
5.2.120.0070.04711.05
5.2.110.0170.03711.09
5.2.100.0130.04011.17
5.2.90.0230.03011.04
5.2.80.0170.03711.14
5.2.70.0200.04011.05
5.2.60.0100.04311.21
5.2.50.0100.04311.00
5.2.40.0200.04710.96
5.2.30.0100.04010.89
5.2.20.0100.04010.91
5.2.10.0070.04310.93
5.2.00.0070.04310.88
5.1.60.0030.04310.11
5.1.50.0200.03010.06
5.1.40.0100.03310.11
5.1.30.0170.03010.45
5.1.20.0070.04010.46
5.1.10.0130.03310.10
5.1.00.0130.03310.14
5.0.50.0070.0338.62
5.0.40.0100.0238.45
5.0.30.0070.0438.30
5.0.20.0130.0308.23
5.0.10.0100.0278.34
5.0.00.0030.0478.14
4.4.90.0000.0275.87
4.4.80.0170.0135.88
4.4.70.0030.0235.89
4.4.60.0100.0205.90
4.4.50.0070.0205.96
4.4.40.0070.0375.89
4.4.30.0030.0275.87
4.4.20.0100.0206.00
4.4.10.0030.0306.01
4.4.00.0030.0375.92
4.3.110.0030.0235.76
4.3.100.0070.0205.84
4.3.90.0070.0205.82
4.3.80.0070.0335.84
4.3.70.0070.0205.84
4.3.60.0070.0205.84
4.3.50.0030.0235.89
4.3.40.0000.0375.75
4.3.30.0100.0204.63
4.3.20.0030.0234.63
4.3.10.0100.0174.63
4.3.00.0100.0276.86

preferences:
35.73 ms | 401 KiB | 5 Q