3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = ' {"twitter": [ {"identifier":1,"title":"hello","tags":["a","b","c"],"cats":["a","b","c"]}, {"identifier":2,"title":"semblance","tags":["a","b","c"],"cats":["a","b","c"]} ], "facebook": [ {"identifier":1,"title":"hello","tags":["a","b","c"],"cats":["a","b","c"]}, {"identifier":2,"title":"semblance","tags":["a","b","c"],"cats":["a","b","c"]}], "youtube": [ {"identifier":1,"title":"hello","tags":["a","b","c"],"cats":["a","b","c"]}, {"identifier":2,"title":"semblance","tags":["a","b","c"],"cats":["a","b","c"]}], "flickr": [ {"identifier":1,"title":"hello","tags":["a","b","c"],"cats":["a","b","c"]}, {"identifier":2,"title":"semblance","tags":["a","b","c"],"cats":["a","b","c"]}], "twitter": []}'; $args = json_decode($json); if(empty($args->twitter)) { echo "empty"; } if(empty($args->flickr)) { echo "empty"; } foreach($args->flickr as $arg) { print_r($arg); print_r($arg->identifier); }

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.70.0130.00318.55
8.3.60.0070.01116.63
8.3.50.0090.01222.12
8.3.40.0070.01118.75
8.3.30.0140.00019.12
8.3.20.0040.00420.36
8.3.10.0070.00021.84
8.3.00.0080.00019.25
8.2.180.0150.00018.16
8.2.170.0110.00418.91
8.2.160.0070.00722.96
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0060.00326.16
8.2.120.0040.00420.69
8.2.110.0000.00821.18
8.2.100.0080.00417.75
8.2.90.0040.00419.13
8.2.80.0030.00617.97
8.2.70.0060.00317.63
8.2.60.0000.00817.80
8.2.50.0040.00418.07
8.2.40.0050.00320.00
8.2.30.0040.00417.95
8.2.20.0000.00817.69
8.2.10.0020.00518.13
8.2.00.0030.00617.76
8.1.280.0070.01125.92
8.1.270.0000.00818.88
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0060.00322.19
8.1.230.0060.00917.53
8.1.220.0050.00317.79
8.1.210.0030.00518.77
8.1.200.0000.01017.35
8.1.190.0000.00817.22
8.1.180.0040.00418.10
8.1.170.0040.00420.38
8.1.160.0000.00721.90
8.1.150.0000.00818.77
8.1.140.0030.00617.46
8.1.130.0030.00317.77
8.1.120.0090.00017.37
8.1.110.0000.00817.37
8.1.100.0000.00717.35
8.1.90.0070.00017.48
8.1.80.0040.00317.42
8.1.70.0030.00317.36
8.1.60.0050.00317.61
8.1.50.0000.00717.41
8.1.40.0070.00017.56
8.1.30.0030.00617.70
8.1.20.0050.00217.72
8.1.10.0050.00317.55
8.1.00.0030.00517.42
8.0.300.0050.00218.77
8.0.290.0060.00316.75
8.0.280.0070.00018.32
8.0.270.0070.00017.27
8.0.260.0040.00417.18
8.0.250.0030.00316.95
8.0.240.0040.00416.84
8.0.230.0030.00316.91
8.0.220.0040.00416.86
8.0.210.0030.00316.86
8.0.200.0000.00716.93
8.0.190.0040.00416.96
8.0.180.0000.00716.86
8.0.170.0000.00717.01
8.0.160.0040.00416.89
8.0.150.0000.00716.80
8.0.140.0040.00416.88
8.0.130.0030.00313.41
8.0.120.0000.00716.79
8.0.110.0040.00416.87
8.0.100.0000.00816.89
8.0.90.0030.00316.80
8.0.80.0080.00816.94
8.0.70.0040.00416.92
8.0.60.0040.00416.73
8.0.50.0000.00716.79
8.0.30.0130.01117.18
8.0.20.0080.01317.42
8.0.10.0020.00517.05
8.0.00.0120.00716.69
7.4.330.0000.00615.09
7.4.320.0030.00316.53
7.4.300.0060.00016.52
7.4.290.0030.00316.65
7.4.280.0000.00816.62
7.4.270.0030.00316.62
7.4.260.0060.00316.64
7.4.250.0040.00416.43
7.4.240.0030.00316.52
7.4.230.0000.00716.63
7.4.220.0160.00616.61
7.4.210.0080.00616.70
7.4.200.0000.00716.63
7.4.160.0150.00316.25
7.4.150.0040.01317.40
7.4.140.0110.01117.86
7.4.130.0060.01116.34
7.4.120.0070.01016.43
7.4.110.0120.01216.41
7.4.100.0090.01216.47
7.4.90.0090.00916.41
7.4.80.0060.01119.39
7.4.70.0110.00616.46
7.4.60.0040.01216.43
7.4.50.0000.00816.50
7.4.40.0120.00616.36
7.4.30.0090.01216.52
7.4.00.0070.00715.02
7.3.330.0000.00513.09
7.3.320.0110.00412.98
7.3.310.0030.00316.16
7.3.300.0040.00416.27
7.3.290.0050.01116.23
7.3.280.0110.00516.21
7.3.270.0090.01217.40
7.3.260.0110.00716.46
7.3.250.0070.01216.25
7.3.240.0080.00816.24
7.3.230.0030.01616.40
7.3.210.0080.00816.36
7.3.200.0070.01019.39
7.3.190.0130.00416.24
7.3.180.0130.00316.20
7.3.170.0030.01316.39
7.3.160.0060.00916.18
7.2.330.0090.00916.80
7.2.320.0110.00616.66
7.2.310.0040.01216.67
7.2.300.0100.00716.66
7.2.290.0130.01316.38
7.2.60.0070.00716.93
7.1.200.0030.01015.61
7.1.70.0030.00517.13
7.1.60.0060.01619.50
7.1.50.0090.01216.80
7.1.00.0100.06322.57
7.0.200.0170.00715.09
7.0.140.0030.06721.91
7.0.60.0100.06719.87
7.0.50.0030.07317.87
7.0.40.0170.07019.96
7.0.30.0270.08720.06
7.0.20.0130.08320.10
7.0.10.0400.04720.10
7.0.00.0030.08320.23
5.6.280.0070.06720.86
5.6.210.0000.09020.48
5.6.200.0130.07718.17
5.6.190.0000.05020.65
5.6.180.0300.07720.65
5.6.170.0270.05720.56
5.6.160.0000.04720.54
5.6.150.0130.07718.29
5.6.140.0100.04318.20
5.6.130.0000.04318.24
5.6.120.0030.05721.01
5.6.110.0030.08020.98
5.6.100.0100.08721.10
5.6.90.0070.04020.98
5.6.80.0030.08320.50
5.6.70.0100.07720.36
5.5.350.0330.07720.37
5.5.340.0100.03718.01
5.5.330.0100.06720.21
5.5.320.0170.07320.41
5.5.310.0230.04720.35
5.5.300.0070.08017.95
5.5.290.0000.06017.95
5.5.280.0030.08720.96
5.5.270.0200.04020.86
5.5.260.0070.06320.88
5.5.250.0070.08720.63
5.5.240.0130.07320.23
5.4.450.0470.05319.46
5.4.440.0900.05319.12
5.4.430.0600.06319.38
5.4.420.0770.05019.43
5.4.410.0100.05718.96
5.4.400.0400.05018.78
5.4.390.0430.05018.73
5.4.380.0300.07318.61
5.4.370.0530.06018.54
5.4.360.0500.06318.75
5.4.350.0400.07318.51
5.4.340.0400.06718.78
5.4.320.0570.07318.53
5.4.310.0370.07318.74
5.4.300.0400.08318.59
5.4.290.0470.07318.67
5.4.280.0500.06318.79
5.4.270.0400.06318.70
5.4.260.0370.05718.70
5.4.250.0430.05018.78
5.4.240.0500.06718.75
5.4.230.0430.05018.62
5.4.220.0130.05318.61
5.4.210.0170.07018.47
5.4.200.0400.05716.69
5.4.190.0430.05018.76
5.4.180.0430.06018.50
5.4.170.0470.06018.72
5.4.160.0470.05718.69
5.4.150.0430.06318.58
5.4.140.0300.05716.33
5.4.130.0330.05316.43
5.4.120.0370.05016.20
5.4.110.0300.05716.18
5.4.100.0470.06716.30
5.4.90.0430.04316.34
5.4.80.0300.05316.17
5.4.70.0330.05716.16
5.4.60.0300.06016.25
5.4.50.0400.04316.40
5.4.40.0470.04316.28
5.4.30.0430.05316.13
5.4.20.0330.05316.18
5.4.10.0500.06016.27
5.4.00.0400.05015.73
5.3.290.0300.06314.71
5.3.280.0500.06314.83
5.3.270.0370.06314.83
5.3.260.0370.05714.72
5.3.250.0300.05314.63
5.3.240.0430.05714.67
5.3.230.0330.05714.64
5.3.220.0330.06714.63
5.3.210.0400.06014.71
5.3.200.0270.06314.81
5.3.190.0430.07314.71
5.3.180.0430.05014.63
5.3.170.0330.05314.71
5.3.160.0270.06314.69
5.3.150.0430.07714.69
5.3.140.0370.06014.71
5.3.130.0400.05314.73
5.3.120.0430.07014.57
5.3.110.0330.06014.69
5.3.100.0370.06714.16
5.3.90.0430.05714.26
5.3.80.0470.05314.25
5.3.70.0330.07014.26
5.3.60.0470.05714.19
5.3.50.0430.06014.18
5.3.40.0400.05013.95
5.3.30.0300.07013.95
5.3.20.0570.05013.69
5.3.10.0330.05013.71
5.3.00.0430.06713.69
5.2.170.0430.05011.22
5.2.160.0270.04311.36
5.2.150.0300.04311.20
5.2.140.0370.04011.20
5.2.130.0300.04311.19
5.2.120.0200.04711.21
5.2.110.0330.03711.18
5.2.100.0170.05011.22
5.2.90.0270.04011.14
5.2.80.0300.04011.21
5.2.70.0270.06311.20
5.2.60.0230.06711.08
5.2.50.0300.04011.15
5.2.40.0230.04011.05
5.2.30.0370.04711.05
5.2.20.0130.04710.96
5.2.10.0270.04710.94
5.2.00.0270.03710.85
5.1.60.0200.03310.13
5.1.50.0130.0409.99
5.1.40.0230.03710.11
5.1.30.0200.03710.31
5.1.20.0300.04010.32
5.1.10.0230.03710.12
5.1.00.0130.04010.18
5.0.50.0130.0278.56
5.0.40.0100.0308.47
5.0.30.0070.0508.25
5.0.20.0130.0278.31
5.0.10.0130.0338.30
5.0.00.0130.0578.18
4.4.90.0130.0305.88
4.4.80.0170.0275.89
4.4.70.0130.0305.81
4.4.60.0100.0335.92
4.4.50.0100.0235.92
4.4.40.0100.0405.88
4.4.30.0100.0235.94
4.4.20.0070.0275.96
4.4.10.0170.0175.95
4.4.00.0070.0405.92
4.3.110.0070.0275.76
4.3.100.0030.0275.84
4.3.90.0030.0275.78
4.3.80.0100.0335.91
4.3.70.0170.0135.77
4.3.60.0100.0235.82
4.3.50.0100.0235.82
4.3.40.0030.0435.79
4.3.30.0000.0274.59
4.3.20.0100.0274.51
4.3.10.0030.0234.57
4.3.00.0070.0237.05

preferences:
61.74 ms | 401 KiB | 5 Q