3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '[{ "id": "5b2a4b0287bc2c082ebc2897", "test_name": "BSF", "test_type": "Pathology", "cost": "100" }, { "id": "5b2a4ac63db998081e7f6c97", "test_name": "Brain & PNS", "test_type": "Radiology", "cost": "1000" }, { "id": "5b2a4ac63db998081e22336c97", "test_name": "BPNS", "test_type": "Radiology", "cost": "1000" }, { "id": "5b2a4ac63db998081e22336c97", "test_name": "BPNS", "test_type": "Somethingelseology", "cost": "1000" }]'; $arr = json_decode($json,true); $type = array_column($arr, "test_type"); Foreach(array_unique($type) as $t){ $new[$t] = array_intersect_key($arr, array_intersect($type, [$t])); } extract($new); var_dump($Radiology, $Pathology, $Somethingelseology);

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.5.00.0130.00920.05
8.4.150.0010.00114.05
8.4.140.0120.00917.33
8.4.130.0070.00320.58
8.4.120.0150.00420.73
8.4.110.0110.00722.42
8.4.100.0070.00217.96
8.4.90.0150.00617.84
8.4.80.0110.01017.63
8.4.70.0120.00817.87
8.4.60.0030.00618.71
8.4.50.0040.00419.39
8.4.40.0070.01017.82
8.4.30.0120.00917.80
8.4.20.0140.00718.33
8.4.10.0000.00917.56
8.3.280.0100.01118.43
8.3.270.0100.01116.40
8.3.260.0110.00816.60
8.3.250.0090.00518.97
8.3.240.0120.00719.05
8.3.230.0070.01316.61
8.3.220.0140.00617.31
8.3.210.0120.00816.54
8.3.200.0050.00416.69
8.3.190.0050.00418.92
8.3.180.0040.00518.55
8.3.170.0120.00618.65
8.3.160.0120.00616.53
8.3.150.0180.00020.79
8.3.140.0130.00616.53
8.3.130.0040.00418.65
8.3.120.0160.00318.98
8.3.110.0060.00316.78
8.3.100.0090.00324.06
8.3.90.0080.00826.77
8.3.80.0080.00317.97
8.3.70.0080.00818.43
8.3.60.0090.00918.43
8.3.50.0100.00717.97
8.3.40.0120.00318.90
8.3.30.0040.01118.75
8.3.20.0080.00019.08
8.3.10.0000.00723.46
8.3.00.0060.00323.70
8.2.290.0110.00720.48
8.2.280.0100.00820.42
8.2.270.0120.00617.05
8.2.260.0070.00718.91
8.2.250.0040.01118.63
8.2.240.0040.01218.61
8.2.230.0080.00820.94
8.2.220.0030.00637.54
8.2.210.0030.01226.77
8.2.200.0120.00016.75
8.2.190.0110.00816.58
8.2.180.0160.00616.50
8.2.170.0120.00322.96
8.2.160.0130.01020.52
8.2.150.0060.00324.18
8.2.140.0030.00524.66
8.2.130.0030.00520.52
8.2.120.0040.00426.35
8.2.110.0030.00622.11
8.2.100.0080.00317.91
8.2.90.0080.00019.36
8.2.80.0060.00318.03
8.2.70.0030.00517.75
8.2.60.0000.00917.93
8.2.50.0000.01018.07
8.2.40.0080.00020.07
8.2.30.0040.00418.14
8.2.20.0040.00418.13
8.2.10.0040.00418.14
8.2.00.0070.00019.59
8.1.330.0150.00516.67
8.1.320.0130.00716.01
8.1.310.0110.00720.34
8.1.300.0030.00620.04
8.1.290.0060.00330.84
8.1.280.0100.00725.92
8.1.270.0080.00022.14
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0060.00323.92
8.1.230.0110.00022.11
8.1.220.0000.00817.74
8.1.210.0080.00018.77
8.1.200.0050.00517.36
8.1.190.0040.00417.35
8.1.180.0040.00418.10
8.1.170.0050.00318.57
8.1.160.0050.00218.90
8.1.150.0020.00518.91
8.1.140.0040.00419.08
8.1.130.0000.00719.02
8.1.120.0030.00717.41
8.1.110.0000.01017.48
8.1.100.0080.00017.35
8.1.90.0000.00817.36
8.1.80.0070.00017.36
8.1.70.0070.00017.37
8.1.60.0040.00417.45
8.1.50.0080.00017.45
8.1.40.0050.00517.54
8.1.30.0040.00417.56
8.1.20.0080.00417.53
8.1.10.0050.00317.59
8.1.00.0040.00417.41
8.0.300.0070.00318.77
8.0.290.0000.00716.63
8.0.280.0000.00920.23
8.0.270.0030.00317.26
8.0.260.0020.00517.27
8.0.250.0000.00716.86
8.0.240.0040.00416.99
8.0.230.0000.00716.83
8.0.220.0070.00016.91
8.0.210.0070.00016.87
8.0.200.0000.00616.98
8.0.190.0040.00416.89
8.0.180.0030.00516.82
8.0.170.0000.00816.92
8.0.160.0040.00416.97
8.0.150.0040.00416.73
8.0.140.0000.00716.82
8.0.130.0030.00313.41
8.0.120.0070.00016.79
8.0.110.0040.00416.96
8.0.100.0070.00016.79
8.0.90.0000.00816.90
8.0.80.0080.01216.86
8.0.70.0000.00716.69
8.0.60.0000.01016.94
8.0.50.0000.00716.73
8.0.30.0080.01117.13
8.0.20.0130.00717.40
8.0.10.0040.00416.92
8.0.00.0120.01216.91
7.4.330.0000.00615.55
7.4.320.0030.00316.53
7.4.300.0000.00816.61
7.4.290.0030.00516.63
7.4.280.0080.00016.51
7.4.270.0040.00516.52
7.4.260.0000.00716.59
7.4.250.0040.00416.49
7.4.240.0080.00016.51
7.4.230.0000.00716.51
7.4.220.0000.00816.42
7.4.210.0050.01116.65
7.4.200.0040.00416.61
7.4.160.0090.00816.51
7.4.140.0090.01217.86
7.4.130.0210.00616.62
7.4.120.0110.00816.47
7.4.110.0110.01016.32
7.4.100.0030.02216.46
7.4.90.0080.01116.43
7.4.80.0100.00819.39
7.4.70.0030.01816.44
7.4.60.0060.01016.54
7.4.50.0060.00916.70
7.4.40.0110.00716.51
7.4.10.0100.01014.94
7.4.00.0060.00815.16
7.3.330.0000.00513.18
7.3.320.0050.00013.15
7.3.310.0030.00316.23
7.3.300.0030.00316.35
7.3.290.0000.00716.32
7.3.280.0050.01116.35
7.3.260.0100.00916.43
7.3.240.0100.01016.50
7.3.230.0080.01116.48
7.3.210.0130.00616.39
7.3.200.0070.01316.43
7.3.190.0100.00716.36
7.3.180.0080.00816.43
7.3.170.0110.00616.35
7.3.160.0180.00016.54
7.3.130.0060.01214.84
7.3.120.0150.00314.88
7.3.110.0180.00014.86
7.3.100.0120.00414.88
7.3.90.0000.01814.92
7.3.80.0120.00014.97
7.3.70.0090.00314.59
7.3.60.0070.00714.93
7.3.50.0070.01014.95
7.3.40.0070.00714.88
7.3.30.0110.00714.68
7.3.20.0030.00616.80
7.3.10.0040.00416.64
7.3.00.0070.00716.77
7.2.330.0210.00716.70
7.2.320.0090.00916.70
7.2.310.0130.01016.75
7.2.300.0170.00616.74
7.2.290.0100.00716.63
7.2.260.0100.01014.93
7.2.250.0000.01914.93
7.2.240.0130.00315.04
7.2.230.0080.00815.21
7.2.220.0120.00615.17
7.2.210.0030.00615.09
7.2.200.0000.01614.83
7.2.190.0040.01114.85
7.2.180.0060.00914.98
7.2.170.0030.01014.91
7.2.160.0030.00615.03
7.2.150.0080.00816.76
7.2.140.0060.01016.99
7.2.130.0100.00316.68
7.2.120.0110.00416.75
7.2.110.0100.00317.02
7.2.100.0070.00716.75
7.2.90.0040.01116.98
7.2.80.0630.01015.73
7.2.70.0310.00516.01
7.2.60.0330.00315.85
7.2.50.0310.00815.81
7.2.40.0270.01015.92
7.2.30.0370.00416.11
7.2.20.0270.00716.04
7.2.10.0220.01216.06
7.2.00.0360.00916.07
7.1.330.0000.01415.60
7.1.320.0030.01415.77
7.1.310.0070.00715.91
7.1.300.0070.00715.79
7.1.290.0130.00015.55
7.1.280.0000.01315.88
7.1.270.0070.00315.73
7.1.260.0070.00315.60
7.1.250.0000.01315.60
7.1.240.0080.00315.52
7.1.230.0040.00415.93
7.1.220.0000.00915.79
7.1.210.0070.00715.88
7.1.200.0280.00714.80
7.1.190.0320.00714.85
7.1.180.0300.00315.01
7.1.170.0420.00614.81
7.1.160.0290.01214.77
7.1.150.0280.00714.87
7.1.140.0230.00914.82
7.1.130.0250.00514.71
7.1.120.0240.00814.96
7.1.110.0250.00614.91
7.1.100.0270.00715.02
7.1.90.0320.00614.82
7.1.80.0290.00814.84
7.1.70.0430.01214.69
7.1.60.0590.00523.88
7.1.50.0530.01023.85
7.1.40.0540.00623.83
7.1.30.0630.01323.92
7.1.20.0870.01023.78
7.1.10.0340.00514.65
7.1.00.0320.00614.65
7.0.330.0100.00715.32
7.0.320.0090.00314.93
7.0.310.0050.00315.32
7.0.300.0030.00815.54
7.0.290.0090.00315.06
7.0.280.0070.00415.41
7.0.270.0070.00715.18
7.0.260.0060.00615.41
7.0.250.0060.00615.37
7.0.240.0070.00715.36
7.0.230.0060.00615.26
7.0.220.0030.00615.36
7.0.210.0030.01015.03
7.0.200.0030.01015.48
7.0.190.0060.00615.38
7.0.180.0040.00415.29
7.0.170.0030.00715.30
7.0.160.0060.00615.40
7.0.150.0040.00415.52
7.0.140.0030.01315.24
7.0.130.0090.00315.28
7.0.120.0070.00715.42
7.0.110.0060.00315.34
7.0.100.0110.00415.30
7.0.90.0040.01115.24
7.0.80.0100.00315.37
7.0.70.0030.00615.31
7.0.60.0100.00315.48
7.0.50.0100.00315.35
7.0.40.0030.01113.45
7.0.30.0070.01013.39
7.0.20.0070.00713.43
7.0.10.0030.01013.31
7.0.00.0100.00013.42
5.6.400.0030.01014.46
5.6.390.0030.00813.99
5.6.380.0000.01014.63
5.6.370.0080.00014.57
5.6.360.0070.00713.95
5.6.350.0030.00914.38
5.6.340.0070.00714.33
5.6.330.0070.00414.13
5.6.320.0070.00714.65
5.6.310.0030.01014.53
5.6.300.0040.00714.09
5.6.290.0090.00614.32
5.6.280.0080.00414.18
5.6.270.0040.00714.11
5.6.260.0090.00614.08
5.6.250.0030.01314.04
5.6.240.0000.01214.55
5.6.230.0030.01014.22
5.6.220.0060.00614.14
5.6.210.0040.01114.23
5.6.200.0070.01014.47
5.6.190.0090.00914.34
5.6.180.0030.00914.10
5.6.170.0100.00614.12
5.6.160.0060.00614.44
5.6.150.0070.00714.21
5.6.140.0110.00414.23
5.6.130.0000.01614.66
5.6.120.0070.00714.36
5.6.110.0030.01014.18
5.6.100.0060.00314.13
5.6.90.0030.01314.51
5.6.80.0030.00613.83
5.6.70.0030.01014.16
5.6.60.0030.01014.16
5.6.50.0120.00014.36
5.6.40.0090.00614.64
5.6.30.0030.01014.34
5.6.20.0070.00714.01
5.6.10.0060.00914.25
5.6.00.0070.01014.40

preferences:
31.89 ms | 403 KiB | 5 Q