3v4l.org

run code in 300+ PHP versions simultaneously
<?php $attributes = ['Type' => 'MyType']; $payload = "Frankfurt"; $jobMessage = [ 'MessageBody' => json_encode($payload), 'MessageAttributes' => array_merge([ "Type" => [ 'StringValue' => __CLASS__, 'DataType' => 'String' ] ], array_values(array_map( function($name, $value) { return [ "$name" => [ 'DataType' => 'String', 'StringValue' => $value, ] ]; }, array_keys($attributes), array_values($attributes) )) ) ]; var_dump($jobMessage);

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.0140.00716.38
8.3.50.0110.01121.17
8.3.40.0120.00918.84
8.3.30.0040.01118.95
8.3.20.0040.00420.29
8.3.10.0040.00421.65
8.3.00.0040.00417.38
8.2.180.0120.00916.63
8.2.170.0110.00419.14
8.2.160.0030.01022.96
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0030.00617.63
8.2.110.0070.00321.00
8.2.100.0080.00417.84
8.2.90.0050.00319.36
8.2.80.0030.00517.97
8.2.70.0080.00017.62
8.2.60.0060.00318.15
8.2.50.0030.00618.07
8.2.40.0080.00318.22
8.2.30.0000.00718.13
8.2.20.0040.00417.63
8.2.10.0000.00818.13
8.2.00.0040.00418.18
8.1.280.0090.00925.92
8.1.270.0090.00020.29
8.1.260.0070.00026.35
8.1.250.0080.00028.09
8.1.240.0030.00620.98
8.1.230.0040.00820.33
8.1.220.0040.00417.79
8.1.210.0040.00418.77
8.1.200.0100.00317.24
8.1.190.0000.00817.13
8.1.180.0050.00318.10
8.1.170.0040.00420.26
8.1.160.0040.00422.01
8.1.150.0040.00418.83
8.1.140.0030.00517.45
8.1.130.0030.00317.77
8.1.120.0050.00317.51
8.1.110.0000.00717.44
8.1.100.0040.00417.45
8.1.90.0000.00817.34
8.1.80.0000.00717.45
8.1.70.0030.00317.47
8.1.60.0040.00417.47
8.1.50.0000.00717.48
8.1.40.0000.00817.46
8.1.30.0000.00817.60
8.1.20.0060.00317.67
8.1.10.0030.00517.50
8.1.00.0080.00017.51
8.0.300.0050.00218.77
8.0.290.0000.00716.63
8.0.280.0000.00718.42
8.0.270.0070.00017.12
8.0.260.0000.00917.08
8.0.250.0040.00416.78
8.0.240.0030.00316.87
8.0.230.0040.00416.73
8.0.220.0030.00516.68
8.0.210.0000.00716.73
8.0.200.0000.00716.92
8.0.190.0000.00817.00
8.0.180.0030.00716.95
8.0.170.0040.00416.93
8.0.160.0040.00416.91
8.0.150.0000.00716.84
8.0.140.0000.00816.74
8.0.130.0030.00513.32
8.0.120.0040.00416.88
8.0.110.0000.00816.86
8.0.100.0030.00516.78
8.0.90.0070.00016.74
8.0.80.0070.01016.93
8.0.70.0000.00816.80
8.0.60.0070.00016.77
8.0.50.0000.00816.92
8.0.30.0100.01417.13
8.0.20.0160.00517.40
8.0.10.0000.00716.88
8.0.00.0140.00816.67
7.4.330.0000.00515.03
7.4.320.0030.00316.58
7.4.300.0000.00616.47
7.4.290.0070.00016.52
7.4.280.0060.00316.39
7.4.270.0040.00416.55
7.4.260.0030.00516.62
7.4.250.0000.00716.55
7.4.240.0040.00416.48
7.4.230.0030.00316.39
7.4.220.0120.00916.53
7.4.210.0040.01116.40
7.4.200.0050.00316.58
7.4.160.0160.00016.61
7.4.150.0130.00717.40
7.4.140.0110.01017.86
7.4.130.0100.01216.54
7.4.120.0070.01116.48
7.4.110.0060.01216.55
7.4.100.0160.00616.43
7.4.90.0000.01716.61
7.4.80.0130.01319.39
7.4.70.0140.00316.29
7.4.60.0070.01016.39
7.4.50.0040.00416.67
7.4.40.0100.01016.43
7.4.30.0090.00916.52
7.4.00.0070.01014.97
7.3.330.0050.00013.18
7.3.320.0040.00813.30
7.3.310.0030.00316.45
7.3.300.0070.00016.42
7.3.290.0080.00716.37
7.3.280.0080.00716.34
7.3.270.0120.00617.40
7.3.260.0060.01616.36
7.3.250.0120.00916.34
7.3.240.0080.00816.36
7.3.230.0150.00616.39
7.3.210.0040.01416.46
7.3.200.0080.00819.39
7.3.190.0050.01116.63
7.3.180.0160.00316.32
7.3.170.0060.01216.27
7.3.160.0070.01016.40
7.3.120.0100.00614.81
7.3.110.0100.00714.84
7.3.100.0100.00714.99
7.3.90.0060.00915.05
7.3.80.0140.00314.63
7.3.70.0070.00714.96
7.3.60.0030.01314.68
7.3.50.0070.00714.68
7.3.40.0060.00614.84
7.3.30.0100.00714.94
7.3.20.0070.00416.59
7.3.10.0000.01316.28
7.3.00.0100.00616.56
7.2.330.0090.00916.78
7.2.320.0150.00716.63
7.2.310.0180.00316.48
7.2.300.0160.00416.68
7.2.290.0100.01016.71
7.2.250.0040.01514.60
7.2.240.0060.01514.93
7.2.230.0040.01115.04
7.2.220.0130.00314.91
7.2.210.0140.00314.89
7.2.200.0000.01515.13
7.2.190.0000.01514.86
7.2.180.0090.00614.92
7.2.170.0100.00715.05
7.2.160.0000.01514.82
7.2.150.0030.01017.19
7.2.140.0100.00617.01
7.2.130.0120.00616.91
7.2.120.0090.00616.81
7.2.110.0060.00616.76
7.2.100.0030.00917.06
7.2.90.0000.01416.93
7.2.80.0060.00617.04
7.2.70.0090.00616.66
7.2.60.0040.00816.99
7.2.50.0030.01317.14
7.2.40.0060.01016.80
7.2.30.0030.01016.93
7.2.20.0070.00716.85
7.2.10.0030.00617.14
7.2.00.0030.01318.21
7.1.330.0070.00715.67
7.1.320.0140.00315.98
7.1.310.0120.00315.52
7.1.300.0000.01615.85
7.1.290.0000.01415.69
7.1.280.0100.00315.54
7.1.270.0100.00315.66
7.1.260.0060.00615.61
7.1.250.0000.00815.58
7.1.200.0070.00715.80
7.1.100.0000.01218.41
7.1.70.0050.00317.26
7.1.60.0060.00919.50
7.1.50.0100.01317.05
7.1.00.0100.06322.43
7.0.200.0070.00416.76
7.0.90.0100.03719.88
7.0.80.0070.04019.89
7.0.70.0270.04319.91
7.0.60.0130.04719.78
7.0.50.0430.06320.34
7.0.40.0170.04020.04
7.0.30.0100.04020.13
7.0.20.0000.09020.11
7.0.10.0070.05319.99
7.0.00.0070.07720.17
5.6.280.0030.07320.99
5.6.240.0070.06320.69
5.6.230.0030.04720.60
5.6.220.0070.04020.58
5.6.210.0030.04020.61
5.6.200.0170.04321.12
5.6.190.0070.05021.09
5.6.180.0170.07020.95
5.6.170.0070.06321.05
5.6.160.0070.07721.05
5.6.150.0030.05021.10
5.6.140.0070.05021.09
5.6.130.0070.08721.06
5.6.120.0070.04321.14
5.6.110.0170.07320.93
5.6.100.0030.05321.09
5.6.90.0030.06720.92
5.6.80.0100.03720.37
5.6.70.0130.07020.34
5.6.60.0070.04720.38
5.6.50.0070.07720.46
5.6.40.0030.05320.40
5.6.30.0070.08720.45
5.6.20.0030.08720.36
5.6.10.0130.07720.32
5.6.00.0270.06720.38
5.5.380.0070.03720.35
5.5.370.0000.04320.36
5.5.360.0030.04020.41
5.5.350.0030.04320.44
5.5.340.0100.07720.93
5.5.330.0100.07320.83
5.5.320.0100.05720.81
5.5.310.0030.08320.80
5.5.300.0100.07020.82
5.5.290.0070.04720.64
5.5.280.0070.05720.80
5.5.270.0100.07020.89
5.5.260.0200.08020.72
5.5.250.0070.08020.62
5.5.240.0070.04320.18
5.5.230.0170.06720.26
5.5.220.0170.03720.25
5.5.210.0100.07720.19
5.5.200.0100.05320.00
5.5.190.0130.07320.21
5.5.180.0100.07020.15
5.5.160.0100.05720.18
5.5.150.0170.07320.22
5.5.140.0070.05320.26
5.5.130.0070.06320.18
5.5.120.0130.05020.17
5.5.110.0170.03720.23
5.5.100.0030.08020.08
5.5.90.0200.04720.09
5.5.80.0130.07319.97
5.5.70.0170.06020.10
5.5.60.0030.06020.05
5.5.50.0130.03720.15
5.5.40.0070.07720.06
5.5.30.0000.08320.14
5.5.20.0070.05320.08
5.5.10.0100.07320.09
5.5.00.0070.06320.02
5.4.450.0070.06319.39
5.4.440.0130.07319.51
5.4.430.0130.07319.50
5.4.420.0130.06319.55
5.4.410.0030.04719.23
5.4.400.0130.07018.88
5.4.390.0070.07319.21
5.4.380.0130.05018.95
5.4.370.0130.07319.16
5.4.360.0130.04319.11
5.4.350.0130.06019.03
5.4.340.0100.07719.14
5.4.320.0070.08019.12
5.4.310.0030.04719.03
5.4.300.0000.04319.07
5.4.290.0130.03319.05
5.4.280.0100.03318.87
5.4.270.0070.04319.22
5.4.260.0100.03719.12
5.4.250.0030.08018.96
5.4.240.0070.08319.16
5.4.230.0070.05318.87
5.4.220.0100.07718.90
5.4.210.0070.03719.09
5.4.200.0070.04719.04
5.4.190.0070.05018.93
5.4.180.0030.08019.23
5.4.170.0070.04319.03
5.4.160.0100.04019.14
5.4.150.0030.05319.14
5.4.140.0070.05316.41
5.4.130.0070.05016.36
5.4.120.0000.07316.38
5.4.110.0130.04316.34
5.4.100.0030.05716.50
5.4.90.0070.06316.39
5.4.80.0030.07716.30
5.4.70.0130.04316.42
5.4.60.0030.06316.30
5.4.50.0000.07716.31
5.4.40.0100.07316.53
5.4.30.0000.05716.30
5.4.20.0070.05316.24
5.4.10.0100.07316.47
5.4.00.0100.06315.89
5.3.290.0030.05014.50
5.3.280.0070.05014.46
5.3.270.0000.08014.59
5.3.260.0130.07014.60
5.3.250.0070.07014.52
5.3.240.0070.04714.55
5.3.230.0000.04314.46
5.3.220.0000.04714.42
5.3.210.0100.04714.48
5.3.200.0030.07314.54
5.3.190.0070.06314.56
5.3.180.0200.07014.50
5.3.170.0030.07714.56
5.3.160.0070.05014.55
5.3.150.0070.08014.52
5.3.140.0100.07314.55
5.3.130.0130.03714.54
5.3.120.0030.06014.50
5.3.110.0030.04714.53
5.3.100.0070.04714.02
5.3.90.0000.05013.88
5.3.80.0100.03313.77
5.3.70.0100.05313.96
5.3.60.0100.07013.98
5.3.50.0100.05313.80
5.3.40.0030.05713.92
5.3.30.0070.04313.86
5.3.20.0070.06313.64
5.3.10.0070.04313.63
5.3.00.0070.04313.39
5.2.170.0030.05010.99
5.2.160.0100.04011.21
5.2.150.0100.05011.21
5.2.140.0130.06011.13
5.2.130.0100.05310.93
5.2.120.0070.06010.94
5.2.110.0030.03311.09
5.2.100.0130.05310.91
5.2.90.0000.04011.09
5.2.80.0070.05711.05
5.2.70.0030.06311.13
5.2.60.0070.02711.09
5.2.50.0030.05010.96
5.2.40.0070.05710.82
5.2.30.0030.04310.78
5.2.20.0070.06010.98
5.2.10.0100.03710.79
5.2.00.0030.04710.64
5.1.60.0000.0539.82
5.1.50.0000.03310.04
5.1.40.0000.0309.98
5.1.30.0000.05710.34
5.1.20.0000.06010.37
5.1.10.0100.03310.05
5.1.00.0000.06010.07
5.0.50.0130.0338.53
5.0.40.0030.0438.24
5.0.30.0030.0638.21
5.0.20.0030.0438.20
5.0.10.0030.0478.23
5.0.00.0030.0477.99
4.4.90.0070.0307.10
4.4.80.0030.0307.10
4.4.70.0030.0237.10
4.4.60.0000.0277.10
4.4.50.0030.0377.10
4.4.40.0000.0477.10
4.4.30.0000.0377.10
4.4.20.0000.0337.10
4.4.10.0070.0307.10
4.4.00.0030.0337.10
4.3.110.0000.0307.10
4.3.100.0000.0377.10
4.3.90.0000.0377.10
4.3.80.0000.0537.10
4.3.70.0000.0337.10
4.3.60.0070.0307.10
4.3.50.0000.0377.10
4.3.40.0000.0477.10
4.3.30.0000.0377.10
4.3.20.0000.0377.10
4.3.10.0030.0277.10
4.3.00.0030.0207.10

preferences:
42.12 ms | 401 KiB | 5 Q