3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = ['1' => 'value']; $keys = array_keys($a); var_dump($a); var_dump($keys);

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.20.0030.01719.28
8.4.10.0160.00319.41
8.3.150.0120.00316.79
8.3.140.0060.01216.97
8.3.130.0030.00718.49
8.3.120.0080.00020.68
8.3.110.0030.00520.94
8.3.100.0160.00324.06
8.3.90.0140.00326.77
8.3.80.0060.00318.18
8.3.70.0040.01116.50
8.3.60.0140.00016.63
8.3.50.0120.00922.05
8.3.40.0030.01218.54
8.3.30.0070.00718.42
8.3.20.0040.00421.60
8.3.10.0050.00323.41
8.3.00.0040.00419.08
8.2.270.0110.00716.92
8.2.260.0090.00916.66
8.2.250.0000.00816.39
8.2.240.0060.00316.87
8.2.230.0000.00822.58
8.2.220.0050.00337.54
8.2.210.0030.00626.77
8.2.200.0090.00018.29
8.2.190.0180.00018.26
8.2.180.0110.00417.91
8.2.170.0090.00622.96
8.2.160.0100.01020.38
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0080.00021.05
8.2.110.0060.00320.97
8.2.100.0060.00617.61
8.2.90.0040.00417.63
8.2.80.0040.00417.97
8.2.70.0000.00817.91
8.2.60.0030.00618.09
8.2.50.0050.00318.10
8.2.40.0000.00820.45
8.2.30.0040.00419.05
8.2.20.0000.00817.98
8.2.10.0030.00518.04
8.2.00.0050.00217.67
8.1.310.0140.00018.38
8.1.300.0100.00320.07
8.1.290.0030.00630.84
8.1.280.0040.01125.92
8.1.270.0040.00420.41
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0030.00620.51
8.1.230.0110.00017.64
8.1.220.0000.00817.77
8.1.210.0040.00418.77
8.1.200.0060.00317.10
8.1.190.0090.00317.35
8.1.180.0000.00818.10
8.1.170.0000.00820.15
8.1.160.0040.00418.82
8.1.150.0000.00720.25
8.1.140.0070.00019.40
8.1.130.0040.00419.00
8.1.120.0000.00717.41
8.1.110.0000.00717.36
8.1.100.0000.00717.23
8.1.90.0000.00817.44
8.1.80.0000.00717.40
8.1.70.0070.00017.31
8.1.60.0030.00517.39
8.1.50.0040.00417.43
8.1.40.0070.00017.45
8.1.30.0080.00017.55
8.1.20.0030.00517.51
8.1.10.0040.00417.32
8.1.00.0000.00717.33
8.0.300.0040.00418.77
8.0.290.0030.00616.63
8.0.280.0030.00318.42
8.0.270.0070.00017.17
8.0.260.0000.00817.09
8.0.250.0020.00516.83
8.0.240.0030.00316.90
8.0.230.0040.00416.80
8.0.220.0060.00316.85
8.0.210.0030.00316.72
8.0.200.0000.00716.82
8.0.190.0070.00016.89
8.0.180.0000.00716.83
8.0.170.0040.00416.84
8.0.160.0070.00016.89
8.0.150.0040.00416.75
8.0.140.0070.00016.84
8.0.130.0030.00313.27
8.0.120.0080.00016.61
8.0.110.0070.00016.82
8.0.100.0040.00416.68
8.0.90.0030.00316.72
8.0.80.0140.00016.77
8.0.70.0040.00416.61
8.0.60.0040.00416.71
8.0.50.0030.00516.85
8.0.30.0110.00516.91
8.0.20.0140.00917.40
8.0.10.0040.00416.98
8.0.00.0070.01016.93
7.4.330.0040.00015.55
7.4.320.0000.00716.46
7.4.300.0060.00016.32
7.4.290.0030.00316.42
7.4.280.0000.00716.32
7.4.270.0040.00416.44
7.4.260.0000.00716.43
7.4.250.0040.00416.31
7.4.240.0050.00216.45
7.4.230.0020.00516.62
7.4.220.0120.01316.52
7.4.210.0070.00716.54
7.4.200.0040.00416.55
7.4.160.0160.00216.36
7.4.150.0060.01417.40
7.4.140.0110.01717.86
7.4.130.0080.01216.45
7.4.120.0080.01016.38
7.4.110.0060.01216.39
7.4.100.0100.01516.25
7.4.90.0090.00916.27
7.4.80.0070.01019.39
7.4.70.0120.00516.50
7.4.60.0100.01016.28
7.4.50.0070.00716.46
7.4.40.0030.01316.43
7.4.30.0120.00616.26
7.4.00.0030.01014.91
7.3.330.0040.00412.97
7.3.320.0000.00613.00
7.3.310.0030.00315.95
7.3.300.0080.00016.15
7.3.290.0060.00816.07
7.3.280.0080.01016.13
7.3.270.0130.00617.40
7.3.260.0120.01116.28
7.3.250.0110.00716.31
7.3.240.0100.00916.29
7.3.230.0070.01016.43
7.3.210.0160.00716.11
7.3.200.0100.00619.39
7.3.190.0140.00716.23
7.3.180.0100.00616.04
7.3.170.0040.01316.33
7.3.160.0030.01816.28
7.2.330.0060.01216.38
7.2.320.0070.01016.35
7.2.310.0140.00716.26
7.2.300.0090.00916.58
7.2.290.0160.00916.52
7.1.70.0030.00316.96
7.1.60.0090.00917.16
7.1.10.0000.07022.30
7.1.00.0030.06022.65
7.0.200.0000.00716.66
7.0.140.0000.06321.94
7.0.130.0200.05021.96
7.0.120.0070.05322.15
7.0.110.0070.05721.95
7.0.100.0130.05021.96
7.0.90.0030.06022.07
7.0.80.0000.06322.18
7.0.70.0100.07321.97
7.0.60.0070.05721.86
7.0.50.0070.05722.00
7.0.40.0070.07721.99
7.0.30.0100.05322.02
7.0.20.0170.04722.16
7.0.10.0030.05722.01
7.0.00.0070.05722.19

preferences:
65.44 ms | 403 KiB | 5 Q