3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '[{"a":1,"b":2,"c":3,"d":4,"e":5},{"a":1,"b":2,"c":3,"d":4,"e":5}]'; $args = json_decode($json); foreach($args as $arg) { print_r($arg); print_r($arg->a); }

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.0100.01016.50
8.3.50.0150.00522.05
8.3.40.0120.00318.63
8.3.30.0100.00318.68
8.3.20.0060.00320.21
8.3.10.0040.00421.82
8.3.00.0080.00019.26
8.2.180.0140.00717.91
8.2.170.0030.01022.96
8.2.160.0100.00320.27
8.2.150.0000.00824.18
8.2.140.0000.00824.66
8.2.130.0000.00726.16
8.2.120.0080.00019.25
8.2.110.0030.00620.86
8.2.100.0070.00417.63
8.2.90.0000.00719.05
8.2.80.0050.00517.97
8.2.70.0000.00817.62
8.2.60.0040.00418.03
8.2.50.0000.00818.07
8.2.40.0080.00018.16
8.2.30.0040.00417.96
8.2.20.0070.00017.74
8.2.10.0020.00518.12
8.2.00.0000.00717.68
8.1.280.0070.01025.92
8.1.270.0050.00318.88
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0060.00322.19
8.1.230.0060.00917.60
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0030.00617.13
8.1.190.0040.00417.35
8.1.180.0060.00318.10
8.1.170.0000.00820.25
8.1.160.0000.00722.05
8.1.150.0040.00418.84
8.1.140.0000.00717.44
8.1.130.0030.00317.82
8.1.120.0030.00717.37
8.1.110.0000.00717.27
8.1.100.0050.00317.45
8.1.90.0000.00817.47
8.1.80.0000.00717.43
8.1.70.0030.00317.48
8.1.60.0060.00317.56
8.1.50.0050.00317.40
8.1.40.0030.00617.55
8.1.30.0040.00417.54
8.1.20.0020.00517.55
8.1.10.0000.00817.28
8.1.00.0000.00717.32
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0000.00718.45
8.0.270.0030.00316.81
8.0.260.0060.00017.17
8.0.250.0030.00316.91
8.0.240.0050.00216.82
8.0.230.0000.00816.95
8.0.220.0030.00316.86
8.0.210.0000.00816.87
8.0.200.0030.00316.93
8.0.190.0040.00416.81
8.0.180.0000.00816.95
8.0.170.0000.00716.93
8.0.160.0000.00916.90
8.0.150.0040.00416.86
8.0.140.0080.00016.70
8.0.130.0040.00413.27
8.0.120.0040.00416.83
8.0.110.0000.00716.79
8.0.100.0000.00716.90
8.0.90.0000.00716.86
8.0.80.0030.01216.88
8.0.70.0000.00716.79
8.0.60.0000.00716.79
8.0.50.0050.00216.77
8.0.30.0120.01117.08
8.0.20.0090.01017.40
8.0.10.0000.00817.04
8.0.00.0050.01316.65
7.4.330.0030.00315.03
7.4.320.0000.00616.36
7.4.300.0000.00716.60
7.4.290.0000.00716.63
7.4.280.0040.00416.49
7.4.270.0030.00316.61
7.4.260.0000.00816.50
7.4.250.0070.00016.59
7.4.240.0050.00216.54
7.4.230.0030.00316.62
7.4.220.0130.00716.60
7.4.210.0040.01116.61
7.4.200.0070.00016.70
7.4.160.0130.00316.59
7.4.150.0170.00817.40
7.4.140.0130.01117.86
7.4.130.0080.01116.46
7.4.120.0110.00616.48
7.4.110.0120.00616.55
7.4.100.0090.00916.61
7.4.90.0080.00816.67
7.4.80.0120.01019.39
7.4.70.0150.00316.34
7.4.60.0130.00716.33
7.4.50.0040.00416.29
7.4.40.0070.01016.60
7.4.30.0170.00716.46
7.4.00.0050.01214.97
7.3.330.0000.00613.13
7.3.320.0090.00513.18
7.3.310.0000.00716.22
7.3.300.0060.00016.31
7.3.290.0080.00616.25
7.3.280.0060.01116.24
7.3.270.0060.01017.40
7.3.260.0090.00916.51
7.3.250.0070.01216.32
7.3.240.0070.01016.34
7.3.230.0070.01116.43
7.3.210.0160.00016.50
7.3.200.0040.01319.39
7.3.190.0060.01116.20
7.3.180.0090.00616.32
7.3.170.0120.00916.50
7.3.160.0140.00716.52
7.3.120.0120.00414.89
7.3.110.0030.00914.95
7.3.100.0060.00914.83
7.3.90.0000.01314.55
7.3.80.0080.00014.74
7.3.70.0080.00014.74
7.3.60.0030.00714.64
7.3.50.0030.00914.90
7.3.40.0000.00914.91
7.3.30.0040.00814.47
7.3.20.0000.01416.67
7.3.10.0070.01016.33
7.3.00.0090.00616.39
7.2.330.0140.00516.46
7.2.320.0140.00316.75
7.2.310.0110.01116.76
7.2.300.0030.01316.60
7.2.290.0070.01516.60
7.2.250.0000.01815.29
7.2.240.0040.01114.88
7.2.230.0000.01515.23
7.2.220.0060.00915.20
7.2.210.0030.00914.79
7.2.200.0060.00315.08
7.2.190.0060.00614.95
7.2.180.0060.00915.09
7.2.170.0040.01115.00
7.2.60.0110.00316.94
7.1.330.0030.01016.00
7.1.320.0030.00515.80
7.1.310.0110.00316.00
7.1.300.0000.01515.96
7.1.290.0040.00815.68
7.1.280.0000.01415.81
7.1.270.0000.01615.77
7.1.260.0030.00915.60
7.1.200.0060.00915.97
7.1.70.0040.00417.22
7.1.60.0110.01419.50
7.1.50.0070.01516.98
7.1.00.0000.08022.32
7.0.200.0230.00615.05
7.0.140.0030.07721.92
7.0.60.0030.06320.02
7.0.50.0030.06017.80
7.0.40.0130.07320.16
7.0.30.0300.09020.29
7.0.20.0230.08320.33
7.0.10.0330.06020.01
7.0.00.0030.07020.20
5.6.280.0000.07721.07
5.6.210.0000.08720.64
5.6.200.0070.08318.18
5.6.190.0030.08720.41
5.6.180.0270.07720.36
5.6.170.0100.05020.71
5.6.160.0100.08320.40
5.6.150.0000.04718.18
5.6.140.0070.08018.14
5.6.130.0070.03718.11
5.6.120.0070.04021.01
5.6.110.0030.08320.97
5.6.100.0100.08321.04
5.6.90.0030.06721.11
5.6.80.0100.04720.54
5.6.70.0070.07020.39
5.5.350.0300.07320.32
5.5.340.0070.08317.91
5.5.330.0030.05720.47
5.5.320.0230.07320.37
5.5.310.0300.07020.18
5.5.300.0130.03017.98
5.5.290.0000.04718.00
5.5.280.0130.07720.79
5.5.270.0030.04020.96
5.5.260.0100.06020.86
5.5.250.0070.06320.70
5.5.240.0130.08320.32
5.4.450.0270.06319.67
5.4.440.0900.07319.55
5.4.430.1070.06319.31
5.4.420.0730.07019.46
5.4.410.0030.06318.87
5.4.400.0230.05718.77
5.4.390.0230.06018.59
5.4.380.0230.06018.67
5.4.370.0400.04318.67
5.4.360.0270.05718.61
5.4.350.0230.06018.71
5.4.340.0370.04718.70
5.4.320.0270.06018.58
5.4.310.0270.06018.49
5.4.300.0400.04018.50
5.4.290.0330.05318.75
5.4.280.0370.07018.62
5.4.270.0400.06018.61
5.4.260.0430.05318.58
5.4.250.0300.05718.55
5.4.240.0500.04718.67
5.4.230.0400.05318.45
5.4.220.0470.04018.45
5.4.210.0300.06318.68
5.4.200.0500.05316.46
5.4.190.0330.05318.65
5.4.180.0300.06318.57
5.4.170.0300.06718.69
5.4.160.0500.05318.48
5.4.150.0270.06018.74
5.4.140.0370.04716.26
5.4.130.0270.05316.08
5.4.120.0270.05016.26
5.4.110.0300.04716.26
5.4.100.0300.04716.15
5.4.90.0330.05016.30
5.4.80.0270.05016.18
5.4.70.0330.05016.14
5.4.60.0270.05316.04
5.4.50.0330.04716.22
5.4.40.0330.05316.13
5.4.30.0270.05016.02
5.4.20.0230.05716.13
5.4.10.0400.04316.29
5.4.00.0330.05015.70
5.3.290.0430.05314.75
5.3.280.0300.08314.51
5.3.270.0300.05714.59
5.3.260.0400.05014.59
5.3.250.0300.05014.54
5.3.240.0300.06314.68
5.3.230.0300.05014.51
5.3.220.0270.06014.52
5.3.210.0400.05714.62
5.3.200.0230.06314.67
5.3.190.0470.04014.52
5.3.180.0400.04714.49
5.3.170.0330.05014.54
5.3.160.0230.05714.65
5.3.150.0430.04314.49
5.3.140.0400.04314.56
5.3.130.0370.08014.58
5.3.120.0270.05714.53
5.3.110.0370.05714.52
5.3.100.0470.05014.14
5.3.90.0430.06314.07
5.3.80.0330.05014.11
5.3.70.0370.06713.93
5.3.60.0330.06014.10
5.3.50.0430.04013.98
5.3.40.0570.03713.84
5.3.30.0300.05313.91
5.3.20.0330.04713.64
5.3.10.0200.04313.63
5.3.00.0100.07013.65
5.2.170.0230.04011.20
5.2.160.2270.05311.09
5.2.150.1170.06011.18
5.2.140.1100.04311.13
5.2.130.0870.04011.03
5.2.120.0970.05011.04
5.2.110.1030.04311.03
5.2.100.1030.04311.15
5.2.90.0900.06711.06
5.2.80.0870.04711.10
5.2.70.1100.05011.23
5.2.60.1070.04011.03
5.2.50.1070.04710.97
5.2.40.0800.05011.03
5.2.30.0870.04710.89
5.2.20.0870.04311.07
5.2.10.0800.04310.90
5.2.00.0700.04310.89
5.1.60.0800.03010.00
5.1.50.0770.03010.02
5.1.40.0700.04710.04
5.1.30.0770.05310.47
5.1.20.0770.05310.48
5.1.10.0930.02710.09
5.1.00.0830.03010.08
5.0.50.0400.0278.64
5.0.40.0430.0208.42
5.0.30.0370.0438.24
5.0.20.0330.0308.27
5.0.10.0570.0338.37
5.0.00.0400.0538.25
4.4.90.0430.0205.84
4.4.80.0330.0275.86
4.4.70.0330.0275.85
4.4.60.0370.0235.81
4.4.50.0470.0175.89
4.4.40.0430.0305.88
4.4.30.0330.0335.82
4.4.20.0300.0275.99
4.4.10.0400.0175.94
4.4.00.0330.0375.90
4.3.110.0300.0275.84
4.3.100.0370.0205.80
4.3.90.0500.0235.77
4.3.80.0400.0335.81
4.3.70.0330.0235.89
4.3.60.0330.0235.81
4.3.50.0400.0235.77
4.3.40.0400.0275.73
4.3.30.0170.0204.68
4.3.20.0200.0204.54
4.3.10.0230.0204.57
4.3.00.0130.0237.05

preferences:
34.48 ms | 401 KiB | 5 Q