3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '[{ "id": 1, "de": "German text", "en": "English text", "name": "question" }, { "id": 2, "de": "German text", "en": "English text", "name": "error" }, { "id": 3, "de": "German text", "en": "English text", "name": "success" }]'; $dbTexts = json_decode($json, true); foreach ($dbTexts as $text) { $texts[$text['name']] = $text['de']; } print_r($texts);

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.5.10.0080.00919.63
8.5.00.0120.01220.02
8.4.150.0020.00014.05
8.4.140.0100.01117.60
8.4.130.0130.00717.82
8.4.120.0070.01220.49
8.4.110.0140.00522.62
8.4.100.0120.00820.61
8.4.90.0060.00518.79
8.4.80.0070.00618.79
8.4.70.0110.00417.95
8.4.60.0090.01118.74
8.4.50.0150.00420.25
8.4.40.0060.00920.30
8.4.30.0070.01320.31
8.4.20.0100.00619.54
8.4.10.0130.00619.21
8.3.280.0110.00818.44
8.3.270.0070.01316.58
8.3.260.0080.01016.70
8.3.250.0150.00418.73
8.3.240.0080.01118.65
8.3.230.0130.00716.74
8.3.220.0100.00819.11
8.3.210.0040.00518.29
8.3.200.0050.00416.65
8.3.190.0100.00717.12
8.3.180.0110.00916.49
8.3.170.0040.01418.93
8.3.160.0140.00317.30
8.3.150.0160.00317.22
8.3.140.0040.00416.59
8.3.130.0040.00416.45
8.3.120.0080.00020.65
8.3.110.0030.00620.94
8.3.100.0040.00424.06
8.3.90.0040.00426.77
8.3.80.0090.00019.36
8.3.70.0040.01116.58
8.3.60.0110.00718.43
8.3.50.0110.00623.65
8.3.40.0040.01118.83
8.3.30.0070.00718.67
8.3.20.0040.00420.82
8.3.10.0050.00320.21
8.3.00.0070.00020.75
8.2.290.0120.00620.46
8.2.280.0040.00418.30
8.2.270.0060.01317.01
8.2.260.0070.01118.41
8.2.250.0060.00316.61
8.2.240.0000.01518.82
8.2.230.0000.00822.58
8.2.220.0080.00037.54
8.2.210.0040.00426.77
8.2.200.0080.00018.88
8.2.190.0070.00718.29
8.2.180.0070.00718.16
8.2.170.0160.00322.96
8.2.160.0110.00420.48
8.2.150.0030.00624.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0070.00019.89
8.2.110.0110.00722.20
8.2.100.0060.00617.72
8.2.90.0030.00517.84
8.2.80.0080.00019.25
8.2.70.0000.00917.93
8.2.60.0060.00318.28
8.2.50.0060.00318.10
8.2.40.0080.00021.05
8.2.30.0030.00619.25
8.2.20.0030.00618.23
8.2.10.0040.00419.17
8.2.00.0000.00719.34
8.1.330.0080.00821.85
8.1.320.0140.01216.24
8.1.310.0080.00018.57
8.1.300.0000.00916.19
8.1.290.0000.01430.84
8.1.280.0140.00325.92
8.1.270.0040.00420.82
8.1.260.0040.00426.35
8.1.250.0030.00528.09
8.1.240.0060.00323.84
8.1.230.0080.00320.90
8.1.220.0000.00817.77
8.1.210.0060.00318.77
8.1.200.0040.00417.35
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0040.00418.64
8.1.160.0070.00018.92
8.1.150.0050.00218.89
8.1.140.0080.00022.13
8.1.130.0030.00317.47
8.1.120.0030.00317.51
8.1.110.0030.00317.44
8.1.100.0000.00717.39
8.1.90.0000.00717.35
8.1.80.0030.00617.47
8.1.70.0000.01017.46
8.1.60.0040.00417.47
8.1.50.0000.00917.49
8.1.40.0050.00317.50
8.1.30.0020.00517.60
8.1.20.0040.00417.66
8.1.10.0070.00017.46
8.1.00.0070.00017.45
8.0.300.0000.00820.09
8.0.290.0050.00316.63
8.0.280.0040.00418.34
8.0.270.0050.00216.78
8.0.260.0070.00016.84
8.0.250.0000.00716.90
8.0.240.0000.00716.98
8.0.230.0000.00816.94
8.0.220.0030.00516.88
8.0.210.0000.00716.80
8.0.200.0000.00716.87
8.0.190.0000.00817.00
8.0.180.0000.00816.91
8.0.170.0050.00316.82
8.0.160.0070.00016.91
8.0.150.0030.00316.82
8.0.140.0000.00816.79
8.0.130.0000.00613.34
8.0.120.0000.00816.84
8.0.110.0000.00816.68
8.0.100.0040.00416.94
8.0.90.0040.00416.94
8.0.80.0080.00616.80
8.0.70.0040.00416.89
8.0.60.0050.00216.79
8.0.50.0000.00716.69
8.0.30.0140.00616.95
8.0.20.0060.01216.80
8.0.10.0040.00416.96
8.0.00.0180.00016.64
7.4.330.0000.00515.55
7.4.320.0000.00616.44
7.4.300.0030.00316.46
7.4.290.0030.00516.42
7.4.280.0040.00416.48
7.4.270.0060.00016.65
7.4.260.0000.00513.27
7.4.250.0080.00016.60
7.4.240.0050.00216.44
7.4.230.0070.00016.70
7.4.220.0030.00316.61
7.4.210.0100.00716.58
7.4.200.0000.00716.61
7.4.130.0120.00616.41
7.4.120.0110.00716.38
7.4.110.0140.00316.53
7.4.100.0100.00716.57
7.4.90.0150.00316.44
7.4.80.0210.00319.39
7.4.70.0060.00916.55
7.4.60.0060.01016.65
7.4.50.0030.01016.40
7.4.40.0060.01516.25
7.4.00.0080.00515.05
7.3.330.0030.00616.13
7.3.320.0000.00613.22
7.3.310.0070.00016.32
7.3.300.0030.00316.32
7.3.290.0050.01116.33
7.3.280.0150.00416.38
7.3.260.0070.01016.61
7.3.230.0080.00916.50
7.3.210.0120.00416.25
7.3.200.0120.00916.38
7.3.190.0160.00016.25
7.3.180.0070.00716.64
7.3.170.0100.01016.29
7.3.160.0100.00616.55
7.3.120.0180.00914.64
7.3.110.0120.00614.49
7.3.100.0120.00914.19
7.3.90.0240.00814.91
7.3.80.0190.00714.69
7.3.70.0170.01014.34
7.3.60.0080.01414.72
7.3.50.0200.00314.71
7.3.40.0080.01214.73
7.3.30.0110.00714.81
7.3.20.0150.00814.85
7.3.10.0200.00014.43
7.3.00.0180.00714.84
7.2.330.0080.00816.64
7.2.320.0030.01516.76
7.2.310.0140.00316.59
7.2.300.0090.00916.70
7.2.290.0060.01216.86
7.2.250.0030.01414.80
7.2.240.0150.00614.80
7.2.230.0180.00515.02
7.2.220.0100.01415.15
7.2.210.0260.00614.75
7.2.200.0100.01315.03
7.2.190.0110.01114.98
7.2.180.0100.01115.06
7.2.170.0120.00915.14
7.1.330.0080.00813.52
7.1.320.0150.01213.64
7.1.310.0160.01313.81
7.1.300.0100.01213.65
7.1.290.0090.01013.64
7.1.280.0120.00613.68
7.1.270.0140.00613.79
7.1.260.0140.00813.94

preferences:
36.69 ms | 403 KiB | 5 Q