3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test(array $classes) { array_map(function(stdClass $class) {}, $classes); } test([new stdClass, new stdClass]); test([new stdClass, 1, 2]);

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.0110.00718.55
8.3.50.0040.01116.47
8.3.40.0100.01018.84
8.3.30.0090.00618.82
8.3.20.0070.01020.16
8.3.10.0000.00823.67
8.3.00.0000.00819.66
8.2.180.0190.00316.63
8.2.170.0140.00322.96
8.2.160.0070.00720.36
8.2.150.0050.00324.18
8.2.140.0070.00024.66
8.2.130.0080.00026.16
8.2.120.0060.00317.73
8.2.110.0040.00721.05
8.2.100.0100.00318.03
8.2.90.0030.00618.34
8.2.80.0080.00018.09
8.2.70.0000.00817.93
8.2.60.0050.00318.03
8.2.50.0050.00518.10
8.2.40.0000.00820.60
8.2.30.0030.00617.98
8.2.20.0000.00717.64
8.2.10.0000.00718.18
8.2.00.0050.00318.02
8.1.280.0100.00325.92
8.1.270.0000.00820.25
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0100.00722.54
8.1.230.0090.00322.81
8.1.220.0050.00317.78
8.1.210.0030.00518.77
8.1.200.0040.00417.22
8.1.190.0080.00017.22
8.1.180.0080.00018.10
8.1.170.0030.00618.63
8.1.160.0000.00822.16
8.1.150.0060.00318.81
8.1.140.0040.00417.46
8.1.130.0000.00717.57
8.1.120.0040.00417.36
8.1.110.0000.00817.32
8.1.100.0040.00417.39
8.1.90.0050.00217.42
8.1.80.0060.00317.43
8.1.70.0000.00717.37
8.1.60.0040.00417.44
8.1.50.0040.00417.39
8.1.40.0000.00817.36
8.1.30.0000.00817.49
8.1.20.0000.00817.63
8.1.10.0070.00017.49
8.1.00.0050.00317.54
8.0.300.0000.00719.93
8.0.290.0000.00916.75
8.0.280.0020.00518.41
8.0.270.0070.00017.18
8.0.260.0060.00017.27
8.0.250.0040.00417.01
8.0.240.0040.00417.02
8.0.230.0030.00316.98
8.0.220.0030.00316.85
8.0.210.0000.00716.85
8.0.200.0000.00717.08
8.0.190.0000.00816.93
8.0.180.0000.00816.92
8.0.170.0000.00817.00
8.0.160.0040.00417.01
8.0.150.0000.00717.04
8.0.140.0030.00516.95
8.0.130.0050.00013.43
8.0.120.0040.00416.96
8.0.110.0040.00416.95
8.0.100.0000.00717.01
8.0.90.0040.00417.02
8.0.80.0150.00616.98
8.0.70.0000.00817.01
8.0.60.0040.00316.96
8.0.50.0040.00416.92
8.0.30.0080.01117.20
8.0.20.0110.01217.40
8.0.10.0070.00016.93
8.0.00.0110.00716.84
7.4.330.0050.00015.09
7.4.320.0060.00016.45
7.4.300.0000.00616.56
7.4.290.0070.00016.55
7.4.280.0030.00616.53
7.4.270.0060.00016.43
7.4.260.0030.00316.50
7.4.250.0040.00416.41
7.4.240.0050.00216.45
7.4.230.0040.00416.48
7.4.220.0090.00916.53
7.4.210.0080.00616.53
7.4.200.0040.00416.34
7.4.160.0040.01116.81
7.4.150.0040.02117.40
7.4.140.0120.00617.86
7.4.130.0080.01116.63
7.4.120.0130.01116.42
7.4.110.0050.01416.43
7.4.100.0130.00716.47
7.4.90.0060.01116.54
7.4.80.0040.01219.39
7.4.70.0070.01016.38
7.4.60.0090.01216.49
7.4.50.0040.00416.55
7.4.40.0120.00916.55
7.4.30.0210.00016.41
7.4.00.0030.01414.54
7.3.330.0030.00313.39
7.3.320.0050.00013.27
7.3.310.0000.00716.21
7.3.300.0030.00316.18
7.3.290.0070.00016.34
7.3.280.0140.00716.29
7.3.270.0030.01417.40
7.3.260.0140.00316.41
7.3.250.0090.01016.43
7.3.240.0030.01416.50
7.3.230.0090.00916.54
7.3.210.0100.00716.23
7.3.200.0090.00919.39
7.3.190.0100.01316.32
7.3.180.0090.00616.29
7.3.170.0160.00816.27
7.3.160.0060.01216.38
7.3.120.0040.00814.81
7.3.110.0090.00314.61
7.3.100.0040.01114.93
7.3.90.0070.01014.89
7.3.80.0070.00714.96
7.3.70.0000.01114.81
7.3.60.0040.01114.81
7.3.50.0060.01214.69
7.3.40.0120.00314.68
7.3.30.0060.00914.65
7.3.20.0100.00716.64
7.3.10.0100.00716.76
7.3.00.0030.01316.62
7.2.330.0120.00616.45
7.2.320.0120.00416.40
7.2.310.0090.01316.71
7.2.300.0100.00716.57
7.2.290.0140.01116.76
7.2.240.0060.00614.80
7.2.230.0060.00914.72
7.2.220.0060.01014.79
7.2.210.0070.00415.11
7.2.200.0090.00314.98
7.2.190.0000.01014.94
7.2.180.0070.01015.07
7.2.170.0060.00915.03
7.2.160.0070.00414.99
7.2.150.0040.01416.71
7.2.140.0060.00616.66
7.2.130.0090.00616.57
7.2.120.0000.01716.80
7.2.110.0070.00316.60
7.2.100.0040.01116.80
7.2.90.0100.00716.86
7.2.80.0100.00616.88
7.2.70.0030.00716.82
7.2.60.0050.00916.80
7.2.50.0100.00717.02
7.2.40.0030.01016.87
7.2.30.0040.01116.97
7.2.20.0100.00716.78
7.2.10.0100.00316.74
7.2.00.0070.00718.09
7.1.330.0040.01115.50
7.1.320.0030.00915.64
7.1.310.0050.00615.82
7.1.300.0040.01115.76
7.1.290.0040.01115.84
7.1.280.0030.01315.69
7.1.270.0040.01115.58
7.1.260.0060.00915.56
7.1.250.0030.01015.79
7.1.200.0030.01015.82
7.1.100.0030.00718.20
7.1.70.0040.00417.16
7.1.60.0140.01120.03
7.1.50.0070.01616.95
7.1.00.0130.07722.42
7.0.200.0000.00816.74
7.0.60.0170.07019.81
7.0.50.0070.07717.79
7.0.40.0070.07020.10
7.0.30.0570.06320.23
7.0.20.0230.06720.07
7.0.10.0230.04320.06
7.0.00.0030.04320.08
5.6.210.0100.08320.54
5.6.200.0130.06018.19
5.6.190.0030.05320.55
5.6.180.0230.07720.50
5.6.170.0270.07320.56
5.6.160.0070.05720.46
5.6.150.0030.04018.11
5.6.140.0130.03018.17
5.6.130.0030.06318.24
5.6.120.0000.04721.01
5.6.110.0270.06321.02
5.6.100.0070.07320.99
5.6.90.0170.08321.05
5.6.80.0070.04020.38
5.6.70.0330.06720.52
5.5.350.0030.06720.39
5.5.340.0030.08317.99
5.5.330.0230.06720.57
5.5.320.0430.04020.26
5.5.310.0270.06320.19
5.5.300.0000.07717.98
5.5.290.0030.04318.01
5.5.280.0100.08320.98
5.5.270.0030.04720.96
5.5.260.0130.06320.84
5.5.250.0030.06020.80
5.5.240.0000.05720.27
5.4.450.0200.05319.19
5.4.440.0100.05719.64
5.4.430.0070.06319.59
5.4.420.0130.05019.54
5.4.410.0170.04719.34
5.4.400.0170.04719.26
5.4.390.0030.06019.28
5.4.380.0200.06319.38
5.4.370.0230.05319.15
5.4.360.0170.05018.98
5.4.350.0070.05719.28
5.4.340.0170.05019.25
5.4.320.0130.05019.13
5.4.310.0030.07019.26
5.4.300.0100.06319.14
5.4.290.0100.05319.13
5.4.280.0070.05719.23
5.4.270.0130.05019.05
5.4.260.0100.05019.38
5.4.250.0030.05719.25
5.4.240.0170.05019.14
5.4.230.0100.05319.12
5.4.220.0070.05719.28
5.4.210.0100.05719.35
5.4.200.0230.05316.79
5.4.190.0070.07019.35
5.4.180.0270.03719.02
5.4.170.0130.05319.25
5.4.160.0070.05719.07
5.4.150.0130.05019.23
5.4.140.0100.05716.47
5.4.130.0170.04316.77
5.4.120.0070.05316.46
5.4.110.0100.04716.77
5.4.100.0100.05016.45
5.4.90.0030.06016.60
5.4.80.0130.04716.56
5.4.70.0070.06316.49
5.4.60.0100.05016.47
5.4.50.0130.04316.53
5.4.40.0100.05316.57
5.4.30.0100.05016.48
5.4.20.0070.05716.53
5.4.10.0030.05716.28
5.4.00.0130.04315.88

preferences:
52.1 ms | 400 KiB | 5 Q