3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '{"outfits": [{"1": [{"category_id": "women_jeans", "product_id": 464540467}, {"category_id": "women_tops", "product_id": 487351815}, {"category_id": "women_coats", "product_id": 493322686}, {"category_id": "women_bags", "product_id": 483902882}, {"category_id": "women_shoes", "product_id": 492772225}]}]}'; $outfits = json_decode($json); var_dump($outfits->outfits[0]->category_id);

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.0120.00618.30
8.3.50.0100.00318.32
8.3.40.0110.00418.89
8.3.30.0140.00018.85
8.3.20.0040.00419.31
8.3.10.0050.00321.85
8.3.00.0000.00820.94
8.2.180.0090.00618.29
8.2.170.0180.00422.96
8.2.160.0100.00720.29
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0030.00617.78
8.2.120.0000.00726.35
8.2.110.0060.00319.27
8.2.100.0060.00617.93
8.2.90.0040.00419.16
8.2.80.0000.00817.97
8.2.70.0000.00817.50
8.2.60.0040.00418.00
8.2.50.0000.00818.10
8.2.40.0000.00822.29
8.2.30.0040.00420.54
8.2.20.0050.00217.73
8.2.10.0000.00718.01
8.2.00.0070.00018.11
8.1.280.0080.00825.92
8.1.270.0060.00323.96
8.1.260.0040.00428.09
8.1.250.0080.00028.09
8.1.240.0000.00922.19
8.1.230.0060.00617.57
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0030.00617.13
8.1.190.0040.00417.22
8.1.180.0060.00318.10
8.1.170.0000.00818.36
8.1.160.0030.00318.94
8.1.150.0000.00718.84
8.1.140.0000.00719.53
8.1.130.0080.00017.64
8.1.120.0000.00717.44
8.1.110.0030.00717.43
8.1.100.0040.00417.38
8.1.90.0040.00417.31
8.1.80.0040.00417.44
8.1.70.0030.00317.33
8.1.60.0050.00317.39
8.1.50.0000.00817.48
8.1.40.0040.00417.35
8.1.30.0030.00517.51
8.1.20.0040.00417.42
8.1.10.0050.00317.53
8.1.00.0040.00417.37
8.0.300.0070.00018.77
8.0.290.0080.00016.63
8.0.280.0000.00718.32
8.0.270.0000.00817.20
8.0.260.0060.00017.06
8.0.250.0040.00416.97
8.0.240.0000.00716.91
8.0.230.0030.00316.98
8.0.220.0070.00016.94
8.0.210.0000.00716.90
8.0.200.0000.00616.85
8.0.190.0000.00816.97
8.0.180.0000.00716.84
8.0.170.0000.00716.93
8.0.160.0000.00716.87
8.0.150.0030.00416.75
8.0.140.0000.00716.81
8.0.130.0040.00413.32
8.0.120.0080.00016.87
8.0.110.0000.00716.86
8.0.100.0050.00216.99
8.0.90.0040.00417.01
8.0.80.0060.00916.78
8.0.70.0040.00416.95
8.0.60.0000.00716.87
8.0.50.0000.00716.90
8.0.30.0130.00716.99
8.0.20.0110.00817.40
8.0.10.0040.00416.82
8.0.00.0230.00016.71
7.4.330.0040.00015.08
7.4.320.0000.00616.51
7.4.300.0030.00316.41
7.4.290.0030.00316.63
7.4.280.0000.00816.66
7.4.270.0000.00616.45
7.4.260.0030.00716.50
7.4.250.0000.00816.40
7.4.240.0070.00016.49
7.4.230.0000.00716.39
7.4.220.0050.01116.38
7.4.210.0040.01116.71
7.4.200.0000.00716.41
7.4.160.0090.00616.51
7.4.150.0090.00917.40
7.4.140.0130.02217.86
7.4.130.0090.00816.40
7.4.120.0070.01116.70
7.4.110.0040.01416.52
7.4.100.0060.01216.42
7.4.90.0140.01016.77
7.4.80.0040.01819.39
7.4.70.0110.01116.73
7.4.60.0070.01416.46
7.4.50.0060.01316.56
7.4.40.0030.01516.44
7.4.30.0070.01316.54
7.4.10.0060.01314.84
7.4.00.0080.00914.93
7.3.330.0000.00813.07
7.3.320.0050.00013.16
7.3.310.0000.00716.32
7.3.300.0030.00316.17
7.3.290.0080.00716.28
7.3.280.0050.01216.23
7.3.270.0080.01117.40
7.3.260.0110.00516.24
7.3.250.0110.01016.34
7.3.240.0080.00816.40
7.3.230.0060.00916.39
7.3.210.0150.00616.23
7.3.200.0100.01416.64
7.3.190.0160.00016.30
7.3.180.0070.01016.24
7.3.170.0060.01216.48
7.3.160.0030.01316.43
7.3.130.0040.01515.06
7.3.120.0080.01114.80
7.3.110.0070.01014.83
7.3.100.0090.00514.75
7.3.90.0050.01014.83
7.3.80.0070.00614.95
7.3.70.0110.00414.72
7.3.60.0070.00614.79
7.3.50.0070.01014.71
7.3.40.0080.00514.61
7.3.30.0060.00914.83
7.3.20.0060.00916.50
7.3.10.0070.00716.58
7.3.00.0040.00916.59
7.2.330.0100.00716.73
7.2.320.0140.00316.67
7.2.310.0150.00416.29
7.2.300.0120.00416.32
7.2.290.0070.01016.33
7.2.260.0060.01215.15
7.2.250.0080.01014.95
7.2.240.0060.01015.05
7.2.230.0070.01015.01
7.2.220.0070.00514.71
7.2.210.0070.00915.03
7.2.200.0050.00814.89
7.2.190.0070.00714.95
7.2.180.0050.01314.80
7.2.170.0070.00515.02
7.2.160.0070.00314.89
7.2.150.0040.00816.64
7.2.140.0030.01016.97
7.2.130.0060.00616.65
7.2.120.0070.00916.65
7.2.110.0050.01016.81
7.2.100.0050.00616.57
7.2.90.0060.00616.98
7.2.80.0090.00316.72
7.2.70.0060.00716.66
7.2.60.0050.00816.72
7.2.50.0080.00416.80
7.2.40.0090.00316.70
7.2.30.0050.00916.89
7.2.20.0060.00616.71
7.2.10.0070.01016.78
7.2.00.0050.00817.76
7.1.330.0050.00915.90
7.1.320.0050.00715.66
7.1.310.0060.00915.70
7.1.300.0060.01015.77
7.1.290.0070.00915.83
7.1.280.0040.00915.70
7.1.270.0050.01015.60
7.1.260.0050.00815.73
7.1.250.0050.01115.62
7.1.240.0000.01515.50
7.1.230.0030.00615.64
7.1.220.0100.00315.62
7.1.210.0090.00015.76
7.1.200.0100.00415.76
7.1.190.0000.00915.88
7.1.180.0040.00415.77
7.1.170.0000.01115.93
7.1.160.0000.01215.91
7.1.150.0040.01215.72
7.1.140.0040.01115.95
7.1.130.0100.00015.83
7.1.120.0070.00715.86
7.1.110.0060.00615.66
7.1.100.0060.00816.89
7.1.90.0050.00815.61
7.1.80.0040.01115.67
7.1.70.0020.01316.43
7.1.60.0060.00817.56
7.1.50.0030.00915.47
7.1.40.0110.00315.73
7.1.30.0110.00315.61
7.1.20.0030.00715.52
7.1.10.0050.00815.52
7.1.00.0070.03818.92
7.0.330.0130.00315.32
7.0.320.0060.00915.55
7.0.310.0040.01115.41
7.0.300.0070.00715.36
7.0.290.0030.01315.16
7.0.280.0090.00615.37
7.0.270.0040.00815.23
7.0.260.0030.00915.18
7.0.250.0110.00615.50
7.0.240.0100.00715.21
7.0.230.0000.01115.45
7.0.220.0070.00415.53
7.0.210.0100.00615.61
7.0.200.0100.00315.14
7.0.190.0110.00015.45
7.0.180.0070.00315.46
7.0.170.0070.00415.23
7.0.160.0030.00615.52
7.0.150.0030.01015.43
7.0.140.0030.01015.33
7.0.130.0030.01315.57
7.0.120.0070.00715.34
7.0.110.0100.00015.27
7.0.100.0110.00415.30
7.0.90.0060.01015.46
7.0.80.0070.00315.14
7.0.70.0110.00415.47
7.0.60.0520.00117.78
7.0.50.0480.00317.91
7.0.40.0430.00516.84
7.0.30.0560.00216.90
7.0.20.0450.00616.85
7.0.10.0400.00416.84
7.0.00.0420.00116.89
5.6.400.0120.00314.54
5.6.390.0150.00314.42
5.6.380.0030.01014.57
5.6.370.0030.01014.25
5.6.360.0070.00314.52
5.6.350.0030.00713.92
5.6.340.0100.01014.53
5.6.330.0000.01414.12
5.6.320.0090.00614.32
5.6.310.0080.00614.09
5.6.300.0110.00314.53
5.6.290.0060.00614.18
5.6.280.0100.03517.60
5.6.270.0040.00714.12
5.6.260.0080.00314.57
5.6.250.0040.01114.21
5.6.240.0120.00314.19
5.6.230.0030.01614.23
5.6.220.0060.00914.23
5.6.210.0470.00217.59
5.6.200.0550.00717.63
5.6.190.0420.00317.65
5.6.180.0530.00517.63
5.6.170.0500.00517.68
5.6.160.0420.00217.66
5.6.150.0380.00217.76
5.6.140.0430.00317.74
5.6.130.0520.00617.72
5.6.120.0480.00017.70
5.6.110.0430.00517.56
5.6.100.0400.00317.65
5.6.90.0440.00417.73
5.6.80.0500.00517.29
5.6.70.0500.00217.22
5.6.60.0370.00517.33
5.6.50.0430.00217.34
5.6.40.0410.00317.19
5.6.30.0410.00317.24
5.6.20.0410.00317.26
5.6.10.0350.00617.30
5.6.00.0380.00517.39
5.5.380.0090.00314.11
5.5.370.0060.01214.26
5.5.360.0030.01114.38
5.5.350.0400.00517.38
5.5.340.0500.00617.61
5.5.330.0400.00517.56
5.5.320.0500.00617.52
5.5.310.0530.00517.52
5.5.300.0450.00217.36
5.5.290.0540.00217.42
5.5.280.0420.00517.49
5.5.270.0440.00517.45
5.5.260.0460.00417.57
5.5.250.0450.00517.35
5.5.240.0500.00317.21
5.5.230.0390.00617.24
5.5.220.0390.00217.03
5.5.210.0390.00217.12
5.5.200.0380.00617.26
5.5.190.0400.00317.07
5.5.180.0390.00317.12
5.5.170.0070.00714.36
5.5.160.0410.00317.08
5.5.150.0410.00017.19
5.5.140.0440.00617.17
5.5.130.0380.00717.21
5.5.120.0430.00617.24
5.5.110.0380.00317.25
5.5.100.0370.00316.98
5.5.90.0350.00417.11
5.5.80.0420.00417.11
5.5.70.0480.00417.13
5.5.60.0520.00317.10
5.5.50.0470.00717.18
5.5.40.0370.00617.13
5.5.30.0370.00317.22
5.5.20.0350.00417.23
5.5.10.0380.00517.08
5.5.00.0380.00317.15

preferences:
66.35 ms | 401 KiB | 5 Q