3v4l.org

run code in 300+ PHP versions simultaneously
<?php $site_id['locale'] = 'tr'; $exampleArray = ['us', 'gr']; if (!in_array($site_id['locale'], $exampleArray)) { array_unshift($exampleArray, $site_id['locale']); } echo implode(', ', $exampleArray);

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.4.140.0150.00617.41
8.4.130.0150.00618.61
8.4.120.0050.00520.71
8.4.110.0020.00719.06
8.4.100.0110.00917.80
8.4.90.0070.00518.59
8.4.80.0070.00617.82
8.4.70.0100.01017.80
8.4.60.0110.01018.70
8.4.50.0040.00519.47
8.4.40.0060.00917.90
8.4.30.0150.00022.40
8.4.20.0140.00719.68
8.4.10.0120.00819.65
8.3.270.0170.00316.73
8.3.260.0080.01016.66
8.3.250.0120.00617.17
8.3.240.0110.00816.68
8.3.230.0110.00816.38
8.3.220.0110.00517.13
8.3.210.0100.00416.49
8.3.200.0050.00316.55
8.3.190.0120.00617.21
8.3.180.0080.00716.43
8.3.170.0090.00920.53
8.3.160.0150.00318.38
8.3.150.0060.00320.54
8.3.140.0000.00816.85
8.3.130.0000.00816.47
8.3.120.0060.00320.81
8.3.110.0060.00316.54
8.3.100.0090.00618.53
8.3.90.0000.01926.77
8.3.80.0090.00019.36
8.3.70.0060.00918.43
8.3.60.0040.01516.38
8.3.50.0100.01224.51
8.3.40.0140.00721.69
8.3.30.0070.00718.72
8.3.20.0040.00424.18
8.3.10.0000.00724.66
8.3.00.0050.00326.16
8.2.290.0140.00718.74
8.2.280.0130.00618.80
8.2.270.0070.01117.26
8.2.260.0050.00320.33
8.2.250.0050.00318.71
8.2.240.0100.01017.01
8.2.230.0080.00020.94
8.2.220.0030.00637.54
8.2.210.0040.00426.77
8.2.200.0100.00018.88
8.2.190.0060.01616.70
8.2.180.0120.00325.92
8.2.170.0100.01018.91
8.2.160.0070.00722.96
8.2.150.0050.00325.66
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0080.00026.35
8.2.110.0060.00319.27
8.2.100.0070.00417.84
8.2.90.0030.00517.63
8.2.80.0000.00818.73
8.2.70.0000.00817.59
8.2.60.0000.00817.63
8.2.50.0080.00018.05
8.2.40.0040.00419.79
8.2.30.0050.00318.10
8.2.20.0050.00218.00
8.2.10.0040.00419.20
8.2.00.0040.00419.34
8.1.330.0100.00916.21
8.1.320.0130.00616.20
8.1.310.0070.01116.82
8.1.300.0060.00916.16
8.1.290.0100.00030.84
8.1.280.0090.00925.92
8.1.270.0090.00622.05
8.1.260.0040.00428.09
8.1.250.0060.00328.09
8.1.240.0060.00322.67
8.1.230.0040.00720.94
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0030.00617.48
8.1.190.0080.00017.35
8.1.180.0060.00318.10
8.1.170.0000.00718.57
8.1.160.0070.00018.93
8.1.150.0050.00218.81
8.1.140.0000.01118.80
8.1.130.0070.00020.14
8.1.120.0040.00317.51
8.1.110.0080.00017.43
8.1.100.0000.00717.42
8.1.90.0000.00817.38
8.1.80.0000.00717.35
8.1.70.0000.00717.47
8.1.60.0080.00017.60
8.1.50.0070.00017.43
8.1.40.0000.00917.54
8.1.30.0060.00317.48
8.1.20.0000.00817.54
8.1.10.0000.00817.57
8.1.00.0050.00317.40
8.0.300.0030.00518.77
8.0.290.0040.00416.58
8.0.280.0020.00518.37
8.0.270.0040.00417.93
8.0.260.0030.00318.52
8.0.250.0030.00316.92
8.0.240.0040.00416.93
8.0.230.0040.00416.83
8.0.220.0000.00716.79
8.0.210.0000.00716.72
8.0.200.0040.00416.98
8.0.190.0000.00716.82
8.0.180.0030.00516.96
8.0.170.0030.00616.79
8.0.160.0030.00316.81
8.0.150.0050.00216.75
8.0.140.0000.00916.86
8.0.130.0000.00613.35
8.0.120.0040.00416.79
8.0.110.0040.00416.76
8.0.100.0020.00516.77
8.0.90.0040.00416.88
8.0.80.0070.01216.87
8.0.70.0070.00016.69
8.0.60.0040.00416.72
8.0.50.0040.00416.75
8.0.30.0090.00916.81
8.0.20.0090.00916.83
8.0.10.0040.00416.92
8.0.00.0110.00716.87
7.4.330.0050.00015.55
7.4.320.0000.00616.37
7.4.300.0040.00416.60
7.4.290.0000.00816.43
7.4.280.0050.00316.44
7.4.270.0070.00016.60
7.4.260.0000.00613.25
7.4.250.0000.00716.33
7.4.240.0070.00016.43
7.4.230.0030.00316.58
7.4.220.0050.00216.37
7.4.210.0060.01016.56
7.4.200.0070.00016.51
7.4.130.0130.00316.46
7.4.120.0090.01016.52
7.4.110.0030.01416.31
7.4.100.0070.01016.62
7.4.90.0040.01416.51
7.4.80.0130.00616.47
7.4.70.0140.00316.49
7.4.60.0110.00716.42
7.4.50.0100.01016.53
7.4.40.0070.01016.36
7.4.30.0090.01516.27
7.4.20.0070.01116.39
7.4.10.0040.01416.32
7.4.00.0060.01316.54
7.3.330.0000.00916.21
7.3.320.0000.00513.04
7.3.310.0030.00616.20
7.3.300.0000.00616.19
7.3.290.0060.01016.30
7.3.260.0190.00316.20
7.3.250.0070.01116.20
7.3.240.0070.01416.30
7.3.230.0030.01316.36
7.3.220.0150.00316.32
7.3.210.0070.01016.08
7.3.200.0100.00916.40
7.3.190.0100.00716.10
7.3.180.0030.01416.29
7.3.170.0100.00716.45
7.3.160.0100.01416.36
7.3.150.0110.01116.21
7.3.140.0040.01416.20
7.3.130.0130.00516.32
7.3.120.0030.01316.23
7.3.110.0060.01516.47
7.3.100.0070.01016.36
7.3.90.0130.00316.38
7.3.80.0140.00416.31
7.3.70.0150.00316.31
7.3.60.0090.00916.32
7.3.50.0140.00316.46
7.3.40.0150.00316.23
7.3.30.0030.01416.12
7.3.20.0100.01016.18
7.3.10.0060.01316.44
7.3.00.0120.00816.46

preferences:
32.11 ms | 403 KiB | 5 Q