3v4l.org

run code in 300+ PHP versions simultaneously
<?php $attributes = ['Type' => 'MyType']; $payload = "Frankfurt"; var_dump(['one'=>'two']+['one'=>'three']); $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.70.0090.00616.88
8.3.60.0070.01416.59
8.3.50.0150.00621.95
8.3.40.0070.00718.54
8.3.30.0070.00718.83
8.3.20.0030.00620.04
8.3.10.0080.00021.90
8.3.00.0040.00417.63
8.2.190.0070.01116.58
8.2.180.0070.00716.75
8.2.170.0090.01222.96
8.2.160.0170.00020.47
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0060.00326.16
8.2.120.0080.00317.63
8.2.110.0060.00321.11
8.2.100.0090.00317.75
8.2.90.0000.00819.13
8.2.80.0030.00617.97
8.2.70.0000.00817.63
8.2.60.0040.00417.93
8.2.50.0030.00618.07
8.2.40.0040.00418.34
8.2.30.0050.00218.17
8.2.20.0000.00817.80
8.2.10.0050.00217.99
8.2.00.0080.00018.38
8.1.280.0140.00725.92
8.1.270.0050.00320.24
8.1.260.0000.00726.35
8.1.250.0050.00328.09
8.1.240.0090.00022.60
8.1.230.0080.00417.48
8.1.220.0040.00417.79
8.1.210.0090.00018.77
8.1.200.0040.00717.48
8.1.190.0030.00617.23
8.1.180.0060.00318.10
8.1.170.0060.00320.41
8.1.160.0050.00321.96
8.1.150.0070.00018.84
8.1.140.0030.00517.47
8.1.130.0040.00417.83
8.1.120.0000.00817.38
8.1.110.0030.00617.54
8.1.100.0000.00717.35
8.1.90.0040.00417.37
8.1.80.0000.00817.46
8.1.70.0000.00717.45
8.1.60.0000.00817.63
8.1.50.0030.00517.53
8.1.40.0000.00817.51
8.1.30.0040.00417.63
8.1.20.0040.00417.55
8.1.10.0000.00817.52
8.1.00.0000.00717.45
8.0.300.0000.00718.77
8.0.290.0040.00416.63
8.0.280.0040.00418.38
8.0.270.0070.00017.25
8.0.260.0040.00417.19
8.0.250.0000.00716.87
8.0.240.0070.00016.96
8.0.230.0000.00716.92
8.0.220.0070.00016.87
8.0.210.0000.00816.95
8.0.200.0000.00617.04
8.0.190.0000.00817.04
8.0.180.0030.00616.96
8.0.170.0040.00416.91
8.0.160.0000.00716.92
8.0.150.0040.00416.91
8.0.140.0080.00016.79
8.0.130.0050.00313.42
8.0.120.0000.00816.82
8.0.110.0050.00316.93
8.0.100.0050.00316.85
8.0.90.0040.00416.90
8.0.80.0030.01316.99
8.0.70.0000.00716.87
8.0.60.0040.00416.79
8.0.50.0000.00716.94
8.0.30.0100.01017.12
8.0.20.0130.01117.40
8.0.10.0070.00017.08
8.0.00.0050.01216.78
7.4.330.0050.00015.12
7.4.320.0000.00616.49
7.4.300.0000.00716.65
7.4.290.0030.00316.62
7.4.280.0050.00316.57
7.4.270.0000.00716.56
7.4.260.0030.00516.41
7.4.250.0030.00516.41
7.4.240.0010.00616.58
7.4.230.0000.00716.32
7.4.220.0090.00916.54
7.4.210.0130.00316.52
7.4.200.0030.00416.35
7.4.160.0030.01316.47
7.4.150.0060.01917.40
7.4.140.0110.00817.86
7.4.130.0110.00916.56
7.4.120.0080.01016.50
7.4.110.0160.00316.53
7.4.100.0080.01116.28
7.4.90.0130.00316.47
7.4.80.0040.02019.39
7.4.70.0100.00716.55
7.4.60.0080.00916.59
7.4.50.0040.00416.17
7.4.40.0110.00716.41
7.4.30.0060.01416.43
7.4.10.0040.01214.73
7.4.00.0080.00814.91
7.3.330.0030.00313.37
7.3.320.0060.00613.36
7.3.310.0030.00316.38
7.3.300.0050.00216.31
7.3.290.0100.00916.39
7.3.280.0090.00816.33
7.3.270.0060.01217.40
7.3.260.0170.00016.61
7.3.250.0130.00916.26
7.3.240.0070.01416.31
7.3.230.0200.00316.47
7.3.210.0030.01416.31
7.3.200.0130.01019.39
7.3.190.0040.01116.31
7.3.180.0120.00916.64
7.3.170.0060.01416.35
7.3.160.0160.00016.61
7.3.130.0060.01014.88
7.3.120.0070.01014.74
7.3.110.0090.00914.81
7.3.100.0090.00315.09
7.3.90.0060.01014.63
7.3.80.0100.00314.94
7.3.70.0040.01114.87
7.3.60.0000.01514.89
7.3.50.0070.00714.83
7.3.40.0040.01114.90
7.3.30.0080.00614.73
7.3.20.0100.00316.73
7.3.10.0040.00416.64
7.3.00.0030.00916.88
7.2.330.0060.01216.65
7.2.320.0100.01316.59
7.2.310.0120.00616.54
7.2.300.0060.01316.75
7.2.290.0070.01416.34
7.2.260.0070.01015.13
7.2.250.0070.01115.15
7.2.240.0000.01415.24
7.2.230.0000.01414.64
7.2.220.0060.01215.17
7.2.210.0120.00314.83
7.2.200.0060.01014.71
7.2.190.0030.01314.86
7.2.180.0030.00615.06
7.2.170.0070.01415.18
7.2.160.0090.00915.15
7.2.150.0070.00716.90
7.2.140.0030.01016.84
7.2.130.0070.00316.91
7.2.120.0090.00616.77
7.2.110.0060.00617.08
7.2.100.0030.00617.04
7.2.90.0060.00616.96
7.2.80.0030.01016.73
7.2.70.0030.01316.93
7.2.60.0030.00916.86
7.2.50.0090.00317.06
7.2.40.0060.01016.86
7.2.30.0070.00716.77
7.2.20.0040.01216.88
7.2.10.0060.00317.04
7.2.00.0080.00618.28
7.1.330.0040.01115.92
7.1.320.0060.01215.89
7.1.310.0100.00715.86
7.1.300.0070.00715.76
7.1.290.0040.00715.85
7.1.280.0030.01215.94
7.1.270.0110.00815.89
7.1.260.0070.00715.72
7.1.250.0040.00415.58
7.1.240.0030.00515.65
7.1.230.0070.00315.60
7.1.220.0000.01015.90
7.1.210.0000.01015.56
7.1.200.0100.00315.79
7.1.190.0030.00615.86
7.1.180.0030.01015.73
7.1.170.0120.00315.43
7.1.160.0040.00715.76
7.1.150.0040.01115.94
7.1.140.0000.01715.86
7.1.130.0030.00715.85
7.1.120.0030.00815.78
7.1.110.0030.00615.80
7.1.100.0090.00216.88
7.1.90.0000.01315.49
7.1.80.0040.00815.68
7.1.70.0020.01016.46
7.1.60.0030.01017.65
7.1.50.0070.01116.28
7.1.40.0080.00415.60
7.1.30.0060.00915.80
7.1.20.0080.00815.77
7.1.10.0000.00915.63
7.1.00.0050.04119.03
7.0.330.0040.01115.27
7.0.320.0000.01215.50
7.0.310.0000.01415.09
7.0.300.0090.00915.38
7.0.290.0060.00615.29
7.0.280.0070.00715.46
7.0.270.0040.00715.43
7.0.260.0000.01315.40
7.0.250.0040.01115.49
7.0.240.0050.00515.59
7.0.230.0060.00615.53
7.0.220.0130.00015.33
7.0.210.0110.00415.32
7.0.200.0080.00515.88
7.0.190.0000.01015.25
7.0.180.0040.01115.45
7.0.170.0000.01115.47
7.0.160.0030.01015.48
7.0.150.0100.00015.42
7.0.140.0000.01515.41
7.0.130.0070.00715.29
7.0.120.0030.00615.61
7.0.110.0030.04818.51
7.0.100.0120.01518.67
7.0.90.0050.04118.70
7.0.80.0050.04618.55
7.0.70.0070.04518.40
7.0.60.0040.02318.63
7.0.50.0090.03318.71
7.0.40.0030.04716.64
7.0.30.0080.04316.59
7.0.20.0100.01716.51
7.0.10.0020.03316.58
7.0.00.0050.04316.54
5.6.400.0060.00314.61
5.6.390.0070.00714.25
5.6.380.0040.00714.48
5.6.370.0000.01514.48
5.6.360.0090.00614.22
5.6.350.0030.00914.51
5.6.340.0030.01314.20
5.6.330.0060.00614.61
5.6.320.0070.00314.33
5.6.310.0000.01414.37
5.6.300.0070.00414.43
5.6.290.0110.00714.60
5.6.280.0060.03817.62
5.6.270.0000.01414.40
5.6.260.0080.04317.57
5.6.250.0050.04117.53
5.6.240.0100.01717.41
5.6.230.0050.03517.46
5.6.220.0080.03017.42
5.6.210.0030.02517.43
5.6.200.0070.02017.40
5.6.190.0050.02317.47
5.6.180.0020.04417.36
5.6.170.0070.03517.47
5.6.160.0060.04317.53
5.6.150.0050.04217.43
5.6.140.0050.03117.59
5.6.130.0050.02717.50
5.6.120.0090.01517.52
5.6.110.0030.02517.36
5.6.100.0010.02717.34
5.6.90.0050.03117.51
5.6.80.0030.02117.08
5.6.70.0050.02417.16
5.6.60.0080.03316.94
5.6.50.0070.02717.12
5.6.40.0020.03017.15
5.6.30.0050.02516.99
5.6.20.0070.02217.28
5.6.10.0090.02217.19
5.6.00.0070.02417.02
5.5.380.0080.03815.75
5.5.370.0060.01815.76
5.5.360.0080.04115.90
5.5.350.0050.02015.81
5.5.340.0080.04316.15
5.5.330.0020.04615.98
5.5.320.0160.03216.04
5.5.310.0080.03816.00
5.5.300.0050.03216.23
5.5.290.0050.02515.90
5.5.280.0020.03216.16
5.5.270.0080.03815.86
5.5.260.0080.02815.94
5.5.250.0020.02416.10
5.5.240.0060.02615.74
5.5.230.0020.02515.70
5.5.220.0070.04115.84
5.5.210.0020.02615.65
5.5.200.0030.04315.75
5.5.190.0020.03015.67
5.5.180.0020.02415.74
5.5.170.0070.01014.04
5.5.160.0030.03015.75
5.5.150.0030.03515.67
5.5.140.0030.02515.69
5.5.130.0070.01815.77
5.5.120.0100.02015.89
5.5.110.0000.02615.61
5.5.100.0080.02115.55
5.5.90.0000.02715.50
5.5.80.0050.01715.61
5.5.70.0050.02015.72
5.5.60.0050.02815.63
5.5.50.0030.02215.74
5.5.40.0070.02315.61
5.5.30.0050.02515.70
5.5.20.0050.02615.55
5.5.10.0030.03715.49
5.5.00.0070.02115.53
5.4.450.0030.02816.41
5.4.440.0050.02216.40
5.4.430.0030.02216.32
5.4.420.0050.02216.41
5.4.410.0050.02516.26
5.4.400.0050.01816.15
5.4.390.0030.02516.32
5.4.380.0030.02116.25
5.4.370.0040.02016.15
5.4.360.0060.03116.23
5.4.350.0050.03716.13
5.4.340.0060.02816.27
5.4.330.0060.00913.30
5.4.320.0000.02816.32
5.4.310.0020.02016.24
5.4.300.0020.02316.16
5.4.290.0040.02116.22
5.4.280.0070.01816.24
5.4.270.0050.02116.16
5.4.260.0000.02416.27
5.4.250.0030.01916.24
5.4.240.0080.02216.15
5.4.230.0070.01516.14
5.4.220.0030.01916.13
5.4.210.0080.01716.24
5.4.200.0080.01816.24
5.4.190.0050.02116.25
5.4.180.0040.02616.14
5.4.170.0030.01816.15
5.4.160.0060.02016.26
5.4.150.0020.02416.21
5.4.140.0010.02314.84
5.4.130.0060.01814.82
5.4.120.0060.02014.89
5.4.110.0050.04014.91
5.4.100.0000.02014.79
5.4.90.0020.02014.86
5.4.80.0110.01314.89
5.4.70.0050.01714.97
5.4.60.0090.01414.86
5.4.50.0050.01714.93
5.4.40.0000.03114.85
5.4.30.0080.02814.84
5.4.20.0020.02014.91
5.4.10.0060.02414.92
5.4.00.0050.01714.54
5.3.290.0000.04714.57
5.3.280.0070.03714.48
5.3.270.0000.04014.70
5.3.260.0100.03314.67
5.3.250.0030.03314.50
5.3.240.0000.04014.71
5.3.230.0030.04314.46
5.3.220.0030.03714.45
5.3.210.0000.03314.46
5.3.200.0070.03314.59
5.3.190.0070.03314.41
5.3.180.0070.03314.59
5.3.170.0030.03014.66
5.3.160.0070.02714.59
5.3.150.0000.07314.58
5.3.140.0030.03014.55
5.3.130.0070.06314.48
5.3.120.0030.07714.64
5.3.110.0100.07314.39
5.3.100.0100.07313.93
5.3.90.0070.03313.94
5.3.80.0070.08013.80
5.3.70.0070.05713.86
5.3.60.0000.03713.89
5.3.50.0000.04013.83
5.3.40.0000.05714.04
5.3.30.0100.06013.84
5.3.20.0000.07713.48
5.3.10.0030.07313.48
5.3.00.0100.06313.73
5.2.170.0000.03313.01
5.2.160.0000.06713.01
5.2.150.0030.06313.01
5.2.140.0070.02013.01
5.2.130.0030.02313.01
5.2.120.0070.04713.01
5.2.110.0000.06013.01
5.2.100.0000.04713.01
5.2.90.0030.05313.01
5.2.80.0030.05313.01
5.2.70.0030.06313.01
5.2.60.0030.04013.01
5.2.50.0070.06013.01
5.2.40.0030.02313.01
5.2.30.0000.05313.01
5.2.20.0030.03013.01
5.2.10.0030.06013.01
5.2.00.0030.04313.01
5.1.60.0000.02713.01
5.1.50.0030.04713.01
5.1.40.0000.03713.01
5.1.30.0070.05313.01
5.1.20.0030.04713.01
5.1.10.0000.05013.01
5.1.00.0030.03313.01
5.0.50.0000.04013.01
5.0.40.0030.02713.01
5.0.30.0000.05313.01
5.0.20.0030.01313.01
5.0.10.0000.03313.01
5.0.00.0030.06313.01
4.4.90.0030.02313.01
4.4.80.0030.03313.01
4.4.70.0000.03713.01
4.4.60.0000.01713.01
4.4.50.0030.03013.01
4.4.40.0000.05013.01
4.4.30.0030.03313.01
4.4.20.0030.03313.01
4.4.10.0030.03013.01
4.4.00.0030.05313.01
4.3.110.0000.02313.01
4.3.100.0000.03313.01
4.3.90.0000.01313.01
4.3.80.0000.04313.01
4.3.70.0000.02013.01
4.3.60.0070.01713.01
4.3.50.0030.03313.01
4.3.40.0000.03713.01
4.3.30.0000.01713.01
4.3.20.0000.03313.01
4.3.10.0030.02713.01
4.3.00.0030.02313.01

preferences:
78.81 ms | 401 KiB | 5 Q