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" }]'; $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);

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.0140.00820.07
8.4.150.0030.00014.05
8.4.140.0080.01417.64
8.4.130.0140.00718.03
8.4.120.0130.00720.52
8.4.110.0100.00722.37
8.4.100.0090.01117.71
8.4.90.0110.01017.58
8.4.80.0140.00719.47
8.4.70.0110.01017.80
8.4.60.0140.00717.69
8.4.50.0120.00819.39
8.4.40.0100.01017.62
8.4.30.0160.00317.45
8.4.20.0070.01120.65
8.4.10.0070.01417.58
8.3.280.0150.00918.29
8.3.270.0100.01216.57
8.3.260.0140.00616.74
8.3.250.0130.00418.85
8.3.240.0130.00716.41
8.3.230.0090.00716.66
8.3.220.0140.00318.95
8.3.210.0080.01018.28
8.3.200.0070.00216.70
8.3.190.0140.00416.62
8.3.180.0100.00818.86
8.3.170.0090.00916.64
8.3.160.0150.00316.59
8.3.150.0100.00717.38
8.3.140.0040.00416.66
8.3.130.0040.00418.44
8.3.120.0090.00020.77
8.3.110.0030.00620.94
8.3.100.0060.00324.06
8.3.90.0070.01126.77
8.3.80.0060.00317.97
8.3.70.0130.00618.15
8.3.60.0090.00918.43
8.3.50.0090.00718.00
8.3.40.0120.00318.70
8.3.30.0090.01318.67
8.3.20.0000.00819.10
8.3.10.0050.00323.62
8.3.00.0080.00023.43
8.2.290.0090.01020.59
8.2.280.0060.00418.30
8.2.270.0080.01216.76
8.2.260.0050.00318.96
8.2.250.0040.00418.49
8.2.240.0000.00819.23
8.2.230.0000.01022.58
8.2.220.0080.00037.54
8.2.210.0070.00026.77
8.2.200.0060.00318.41
8.2.190.0150.00018.54
8.2.180.0130.01018.40
8.2.170.0040.01122.96
8.2.160.0140.00420.35
8.2.150.0120.00324.18
8.2.140.0040.00424.66
8.2.130.0070.01120.52
8.2.120.0060.00326.35
8.2.110.0030.00619.31
8.2.100.0120.00017.78
8.2.90.0000.00919.35
8.2.80.0000.00917.97
8.2.70.0040.00417.63
8.2.60.0040.00418.05
8.2.50.0030.00618.10
8.2.40.0040.00418.35
8.2.30.0070.00018.16
8.2.20.0040.00418.05
8.2.10.0040.00418.05
8.2.00.0050.00219.50
8.1.330.0110.00816.63
8.1.320.0100.01016.15
8.1.310.0040.00418.55
8.1.300.0040.01120.38
8.1.290.0030.00630.84
8.1.280.0140.00425.92
8.1.270.0090.00622.20
8.1.260.0000.00726.35
8.1.250.0100.01028.09
8.1.240.0060.00323.89
8.1.230.0040.00820.84
8.1.220.0000.00817.74
8.1.210.0080.00018.77
8.1.200.0040.00417.36
8.1.190.0080.00017.35
8.1.180.0030.00518.10
8.1.170.0000.01018.65
8.1.160.0040.00418.91
8.1.150.0040.00418.91
8.1.140.0000.00718.93
8.1.130.0030.00318.91
8.1.120.0030.00517.38
8.1.110.0070.00417.52
8.1.100.0000.00717.45
8.1.90.0000.00717.45
8.1.80.0000.00817.34
8.1.70.0040.00417.43
8.1.60.0040.00417.53
8.1.50.0040.00417.37
8.1.40.0030.00617.45
8.1.30.0080.00017.67
8.1.20.0030.00717.57
8.1.10.0040.00417.64
8.1.00.0000.00817.56
8.0.300.0000.00718.77
8.0.290.0030.00616.75
8.0.280.0070.00018.49
8.0.270.0000.00817.25
8.0.260.0000.00717.24
8.0.250.0040.00417.02
8.0.240.0030.00316.96
8.0.230.0000.00817.04
8.0.220.0070.00016.93
8.0.210.0030.00516.93
8.0.200.0070.00017.02
8.0.190.0000.00816.96
8.0.180.0040.00416.95
8.0.170.0050.00316.91
8.0.160.0040.00416.90
8.0.150.0030.00516.86
8.0.140.0080.00016.89
8.0.130.0050.00013.33
8.0.120.0030.00616.89
8.0.110.0040.00416.82
8.0.100.0000.00716.90
8.0.90.0000.00716.99
8.0.80.0120.00816.90
8.0.70.0000.00716.91
8.0.60.0000.00916.80
8.0.50.0000.00716.77
8.0.30.0070.01117.10
8.0.20.0090.00917.40
8.0.10.0040.00416.93
8.0.00.0090.00916.77
7.4.330.0000.00515.55
7.4.320.0060.00016.54
7.4.300.0000.00616.45
7.4.290.0050.00316.65
7.4.280.0050.00316.52
7.4.270.0110.00016.58
7.4.260.0000.00816.57
7.4.250.0070.00016.51
7.4.240.0050.00216.40
7.4.230.0000.00716.65
7.4.220.0040.00416.56
7.4.210.0060.00916.60
7.4.200.0050.00216.69
7.4.160.0090.00816.51
7.4.140.0140.00817.86
7.4.130.0070.01116.34
7.4.120.0110.00716.55
7.4.110.0150.00616.43
7.4.100.0100.00716.46
7.4.90.0030.01616.66
7.4.80.0070.01119.39
7.4.70.0080.00816.57
7.4.60.0000.01816.58
7.4.50.0060.01016.56
7.4.40.0130.00416.38
7.4.00.0070.00914.97
7.3.330.0020.00313.05
7.3.320.0060.00013.18
7.3.310.0040.00416.41
7.3.300.0060.00016.27
7.3.290.0030.00316.20
7.3.280.0130.00716.34
7.3.260.0110.00916.41
7.3.240.0100.00916.48
7.3.230.0140.00416.33
7.3.210.0120.00916.68
7.3.200.0090.00916.45
7.3.190.0030.01316.66
7.3.180.0060.01216.59
7.3.170.0090.00616.37
7.3.160.0190.00316.52
7.3.120.0060.01215.11
7.3.110.0030.01414.86
7.3.100.0040.01115.01
7.3.90.0080.00414.86
7.3.80.0000.01114.86
7.3.70.0070.00414.89
7.3.60.0040.01115.00
7.3.50.0030.01014.68
7.3.40.0040.00714.88
7.3.30.0060.01014.80
7.3.20.0070.00716.53
7.3.10.0090.00516.52
7.3.00.0070.00316.60
7.2.330.0060.01316.82
7.2.320.0060.01116.70
7.2.310.0190.00316.67
7.2.300.0140.01716.78
7.2.290.0090.00916.66
7.2.250.0060.01214.94
7.2.240.0030.01715.26
7.2.230.0030.01014.66
7.2.220.0110.00315.21
7.2.210.0090.00315.28
7.2.200.0070.01015.12
7.2.190.0140.00315.16
7.2.180.0100.00315.05
7.2.170.0000.01415.12
7.2.130.0030.00616.69
7.2.120.0060.00616.82
7.2.110.0040.01116.86
7.2.100.0030.01016.90
7.2.90.0110.00716.82
7.2.80.0280.00215.88
7.2.70.0150.01016.08
7.2.60.0210.00715.86
7.2.50.0160.01216.01
7.2.40.0250.01015.98
7.2.30.0260.00915.91
7.2.20.0170.01015.94
7.2.10.0240.00615.97
7.2.00.0180.00516.08
7.1.330.0150.00015.86
7.1.320.0000.01315.94
7.1.310.0120.00315.72
7.1.300.0070.00715.80
7.1.290.0060.00615.85
7.1.280.0080.00415.62
7.1.270.0100.00315.77
7.1.260.0140.00315.89
7.1.250.0070.00315.58
7.1.200.0350.00714.09
7.1.190.0390.00713.73
7.1.180.0350.00613.96
7.1.170.0330.00714.09
7.1.160.0660.01013.77
7.1.150.0270.01213.84
7.1.140.0440.00013.80
7.1.130.0350.00913.82
7.1.120.0340.00913.95
7.1.110.0370.01214.15
7.1.100.0400.00713.94
7.1.90.0310.01013.88
7.1.80.0480.00913.89
7.1.70.0540.00413.77
7.1.60.0610.00832.01
7.1.50.0630.01731.61
7.1.40.0560.01531.48
7.1.30.0570.00631.82
7.1.20.0540.01931.88
7.1.10.0390.00313.99
7.1.00.0330.00813.89

preferences:
31 ms | 403 KiB | 5 Q