3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = ['locale_date' => 'date']; $x = array_intersect_key($data, [ 'locale_date' => 1, 'locale_time' => 1, 'locale_datetime' => 1, ]); print_r(reset($x));

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.0040.01116.63
8.3.50.0140.00718.27
8.3.40.0070.00718.59
8.3.30.0070.00718.42
8.3.20.0030.00520.22
8.3.10.0000.00822.09
8.3.00.0060.00323.61
8.2.180.0160.00616.63
8.2.170.0110.00022.96
8.2.160.0030.01020.33
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0090.00020.53
8.2.120.0040.00426.35
8.2.110.0060.00320.93
8.2.100.0000.01117.66
8.2.90.0040.00419.09
8.2.80.0000.00817.97
8.2.70.0040.00417.50
8.2.60.0070.00017.90
8.2.50.0040.00418.10
8.2.40.0070.00020.41
8.2.30.0000.00819.02
8.2.20.0040.00418.16
8.2.10.0040.00418.18
8.2.00.0000.00718.04
8.1.280.0030.01025.92
8.1.270.0000.00722.24
8.1.260.0110.00326.35
8.1.250.0070.00028.09
8.1.240.0100.00019.15
8.1.230.0090.00417.77
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0060.00317.23
8.1.190.0030.00517.11
8.1.180.0030.00618.10
8.1.170.0040.00418.66
8.1.160.0040.00418.73
8.1.150.0070.00020.06
8.1.140.0040.00417.32
8.1.130.0030.00519.00
8.1.120.0070.00017.32
8.1.110.0040.00417.40
8.1.100.0080.00017.42
8.1.90.0030.00517.33
8.1.80.0050.00217.34
8.1.70.0060.00317.41
8.1.60.0040.00417.41
8.1.50.0040.00417.46
8.1.40.0000.00717.44
8.1.30.0050.00217.60
8.1.20.0000.00817.47
8.1.10.0000.00717.40
8.1.00.0000.00717.43
8.0.300.0070.00018.77
8.0.290.0060.00316.58
8.0.280.0030.00318.24
8.0.270.0030.00317.18
8.0.260.0070.00018.32
8.0.250.0000.00816.75
8.0.240.0070.00016.91
8.0.230.0070.00016.86
8.0.220.0000.00816.65
8.0.210.0030.00316.75
8.0.200.0030.00316.83
8.0.190.0090.00016.87
8.0.180.0000.00716.79
8.0.170.0040.00416.80
8.0.160.0040.00416.77
8.0.150.0030.00516.68
8.0.140.0030.00516.66
8.0.130.0000.00613.20
8.0.120.0040.00416.81
8.0.110.0000.00816.83
8.0.100.0000.00716.61
8.0.90.0000.00716.64
8.0.80.0060.00916.88
8.0.70.0040.00416.77
8.0.60.0000.00816.84
8.0.50.0000.00716.92
8.0.30.0120.00817.00
8.0.20.0110.00717.40
8.0.10.0040.00417.00
8.0.00.0130.00416.69
7.4.330.0000.00415.55
7.4.320.0070.00016.44
7.4.300.0000.00616.52
7.4.290.0030.00316.44
7.4.280.0090.00016.45
7.4.270.0030.00316.44
7.4.260.0000.00716.36
7.4.250.0070.00016.48
7.4.240.0030.00516.43
7.4.230.0040.00416.32
7.4.220.0030.00316.55
7.4.210.0070.00816.42
7.4.200.0000.00816.61
7.4.160.0080.01116.45
7.4.150.0180.00017.40
7.4.140.0110.00817.86
7.4.130.0120.01216.47
7.4.120.0120.00716.51
7.4.110.0070.01016.38
7.4.100.0070.01016.36
7.4.90.0060.01016.46
7.4.80.0080.00819.39
7.4.70.0130.01216.28
7.4.60.0060.00916.32
7.4.50.0070.00716.42
7.4.40.0060.01116.48
7.4.30.0130.01016.32
7.4.00.0100.00614.69
7.3.330.0060.00013.00
7.3.320.0050.00012.87
7.3.310.0000.00715.95
7.3.300.0030.00316.17
7.3.290.0040.00415.99
7.3.280.0090.00816.12
7.3.270.0100.00717.40
7.3.260.0130.00716.17
7.3.250.0120.00816.28
7.3.240.0110.00616.26
7.3.230.0100.00716.14
7.3.210.0100.00716.39
7.3.200.0030.01316.11
7.3.190.0130.00316.22
7.3.180.0160.00616.02
7.3.170.0160.00715.98
7.3.160.0070.00716.09
7.2.330.0180.00016.44
7.2.320.0160.00716.54
7.2.310.0110.00616.66
7.2.300.0130.00316.34
7.2.290.0130.00316.41
7.2.60.0030.01016.96
7.1.200.0000.01115.85
7.1.100.0780.01016.30
7.1.90.0780.00716.29
7.1.80.0610.01215.93
7.1.70.0630.00415.35
7.1.60.0910.01733.23
7.1.50.0960.01832.94
7.1.40.0840.02032.63
7.1.30.0890.01732.59
7.1.20.1050.01332.59
7.1.10.0780.01214.71
7.1.00.0540.00914.72
7.0.240.0670.01116.10
7.0.230.0580.00616.02
7.0.220.0670.00716.14
7.0.210.0550.01014.62
7.0.200.0840.00314.77
7.0.190.0870.00714.53
7.0.180.1030.00914.43
7.0.170.0860.00714.57
7.0.160.0560.01314.25
7.0.150.0860.00714.31
7.0.140.0860.00614.37
7.0.130.0580.00614.64
7.0.120.0830.01014.36
7.0.110.1040.00414.41
7.0.100.0800.01014.44
7.0.90.0770.00914.61
7.0.80.0610.00714.50
7.0.70.0790.00714.31
7.0.60.0900.00714.01
7.0.50.0800.01014.43
7.0.40.0870.00314.52
7.0.30.0590.01014.73
7.0.20.0750.00714.50
7.0.10.0780.00714.59
7.0.00.0730.01114.50

preferences:
65.6 ms | 400 KiB | 5 Q