3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array( 'value1' => 'key1', 'value2' => 'key2', 'value3' => 'key3', 'value4' => 'key4', ); //typed it the wrong way and need to flip it var_export(array_flip($array));

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.0090.00916.48
8.3.50.0140.00521.99
8.3.40.0140.00418.59
8.3.30.0140.00018.97
8.3.20.0080.00020.25
8.3.10.0080.00023.71
8.3.00.0050.00319.13
8.2.180.0210.00016.75
8.2.170.0090.00622.96
8.2.160.0100.00720.23
8.2.150.0050.00224.18
8.2.140.0040.00424.66
8.2.130.0050.00226.16
8.2.120.0050.00320.79
8.2.110.0040.00422.08
8.2.100.0040.00819.39
8.2.90.0050.00319.05
8.2.80.0000.00817.97
8.2.70.0080.00017.49
8.2.60.0030.00617.80
8.2.50.0040.00418.07
8.2.40.0000.00919.95
8.2.30.0000.00718.05
8.2.20.0000.00817.59
8.2.10.0040.00417.86
8.2.00.0070.00017.52
8.1.280.0120.00425.92
8.1.270.0040.00423.87
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0060.00323.83
8.1.230.0070.00418.80
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0000.00817.23
8.1.190.0080.00016.88
8.1.180.0000.00818.10
8.1.170.0050.00318.57
8.1.160.0030.00521.90
8.1.150.0030.00518.60
8.1.140.0000.00717.27
8.1.130.0030.00317.71
8.1.120.0050.00217.35
8.1.110.0080.00017.39
8.1.100.0000.00817.31
8.1.90.0040.00417.30
8.1.80.0040.00417.30
8.1.70.0000.00817.33
8.1.60.0000.00917.36
8.1.50.0000.00817.36
8.1.40.0030.00617.42
8.1.30.0090.00017.60
8.1.20.0000.00717.46
8.1.10.0000.00817.32
8.1.00.0040.00417.25
8.0.300.0000.00818.77
8.0.290.0030.00616.93
8.0.280.0030.00518.37
8.0.270.0030.00317.18
8.0.260.0000.00617.09
8.0.250.0000.00716.86
8.0.240.0050.00216.77
8.0.230.0030.00316.76
8.0.220.0060.00316.83
8.0.210.0030.00316.70
8.0.200.0030.00316.73
8.0.190.0070.00016.92
8.0.180.0080.00016.66
8.0.170.0040.00416.82
8.0.160.0000.00716.88
8.0.150.0030.00316.82
8.0.140.0000.01116.76
8.0.130.0000.00613.28
8.0.120.0050.00316.80
8.0.110.0050.00216.70
8.0.100.0050.00316.64
8.0.90.0040.00416.68
8.0.80.0030.01216.83
8.0.70.0040.00416.66
8.0.60.0040.00416.85
8.0.50.0040.00416.77
8.0.30.0110.00817.10
8.0.20.0070.01117.40
8.0.10.0040.00316.79
8.0.00.0070.01416.61
7.4.330.0040.00415.00
7.4.320.0030.00316.34
7.4.300.0000.00616.49
7.4.290.0040.00416.39
7.4.280.0030.00616.45
7.4.270.0070.00016.54
7.4.260.0030.00316.40
7.4.250.0040.00416.46
7.4.240.0030.00416.50
7.4.230.0030.00316.61
7.4.220.0130.01016.39
7.4.210.0070.00916.47
7.4.200.0000.00716.60
7.4.190.0000.00716.38
7.4.160.0060.01016.40
7.4.150.0100.00717.40
7.4.140.0090.01317.86
7.4.130.0120.00816.40
7.4.120.0120.00516.52
7.4.110.0120.00416.45
7.4.100.0100.01016.51
7.4.90.0180.00016.34
7.4.80.0180.00319.39
7.4.70.0090.00816.37
7.4.60.0070.01416.29
7.4.50.0000.00816.49
7.4.40.0140.00416.17
7.4.30.0030.01316.10
7.4.00.0060.00914.86
7.3.330.0000.00513.03
7.3.320.0000.00512.97
7.3.310.0000.00816.06
7.3.300.0000.00716.14
7.3.290.0050.01116.08
7.3.280.0080.00916.12
7.3.270.0080.01217.40
7.3.260.0170.00316.20
7.3.250.0130.00616.30
7.3.240.0100.00716.21
7.3.230.0110.00716.39
7.3.210.0130.00316.08
7.3.200.0060.00919.39
7.3.190.0160.00716.35
7.3.180.0060.00916.34
7.3.170.0000.01616.27
7.3.160.0160.00316.25
7.3.120.0060.00914.81
7.2.330.0190.00316.43
7.2.320.0100.00716.42
7.2.310.0100.01416.50
7.2.300.0040.01216.50
7.2.290.0170.01216.14
7.2.60.0090.00316.74
7.2.50.0080.00416.60
7.1.200.0060.00615.57
7.1.70.0060.00316.89
7.1.60.0100.01319.46
7.1.50.0120.01616.80
7.1.00.0000.08022.31
7.0.200.0100.00316.80
7.0.140.0070.07022.08
7.0.60.0170.07719.74
7.0.50.0070.04017.77
7.0.40.0070.04320.04
7.0.30.0300.04020.16
7.0.20.0200.06020.16
7.0.10.0070.05020.18
7.0.00.0100.07020.09
5.6.280.0030.07020.82
5.6.210.0130.08020.68
5.6.200.0030.08318.16
5.6.190.0200.02720.27
5.6.180.4100.04720.33
5.6.170.0370.07020.46
5.6.160.0070.08720.44
5.6.150.0000.05018.21
5.6.140.0000.08018.17
5.6.130.0130.06318.20
5.6.120.0070.08020.97
5.6.110.0030.04320.98
5.6.100.0100.07721.07
5.6.90.0100.06021.11
5.6.80.0100.07720.50
5.6.70.0230.08020.39
5.5.350.0330.07320.32
5.5.340.0100.04018.02
5.5.330.0000.04320.44
5.5.320.0230.06720.50
5.5.310.0400.07320.29
5.5.300.0070.06318.00
5.5.290.0000.07317.96
5.5.280.0130.03020.85
5.5.270.0030.08320.84
5.5.260.0000.07320.75
5.5.250.0070.07020.68
5.5.240.0030.06720.27
5.4.450.1800.04019.57
5.4.440.1770.04319.43
5.4.430.1770.03719.57
5.4.420.2000.04719.41
5.4.410.1730.04019.11
5.4.400.1200.04019.24
5.4.390.0030.03718.93
5.4.380.0030.03718.78
5.4.370.1870.05018.89
5.4.360.1830.03319.25
5.4.350.1730.04318.89
5.4.340.1770.04018.92
5.4.320.1830.04019.12
5.4.310.1700.03319.06
5.4.300.1930.02318.81
5.4.290.1730.03718.80
5.4.280.1100.04019.16
5.4.270.0030.03719.16
5.4.260.0030.04019.08
5.4.250.1070.04719.23
5.4.240.1630.03718.77
5.4.230.0030.03719.15
5.4.220.0000.04019.24
5.4.210.0730.03319.08
5.4.200.1500.04019.10
5.4.190.1600.03718.77
5.4.180.1670.03719.07
5.4.170.1670.04019.09
5.4.160.1500.04018.91
5.4.150.1770.03719.13
5.4.140.1800.03716.27
5.4.130.1870.04716.34
5.4.120.1670.03016.32
5.4.110.1730.03716.21
5.4.100.1630.03316.41
5.4.90.0570.03316.06
5.4.80.0070.06716.46
5.4.70.0070.05016.46
5.4.60.1700.04316.37
5.4.50.1870.04016.41
5.4.40.1700.02716.04
5.4.30.1870.04716.20
5.4.20.1730.03716.45
5.4.10.2270.03316.31
5.4.00.1930.03715.78
5.3.290.1970.04014.50
5.3.280.1830.04314.58
5.3.270.1900.03714.53
5.3.260.0270.07014.56
5.3.250.0100.03014.55
5.3.240.0170.04314.54
5.3.230.1770.03014.61
5.3.220.1670.03714.61
5.3.210.1800.05014.62
5.3.200.1770.04014.52
5.3.190.1900.04014.47
5.3.180.1870.04314.46
5.3.170.1900.03314.41
5.3.160.1670.04014.51
5.3.150.1730.04314.52
5.3.140.1670.03714.50
5.3.130.1030.04714.40
5.3.120.0100.03014.59
5.3.110.0100.03714.38
5.3.100.1070.04313.98
5.3.90.1700.04013.91
5.3.80.1870.04313.79
5.3.70.1930.04713.79
5.3.60.1870.04313.88
5.3.50.2170.03713.80
5.3.40.1670.03313.77
5.3.30.1630.03713.85
5.3.20.1630.03713.54
5.3.10.1430.03713.59
5.3.00.1730.03013.41
5.2.170.1300.02710.98
5.2.160.1370.03011.08
5.2.150.1430.03011.19
5.2.140.1430.03011.03
5.2.130.1430.03011.12
5.2.120.1530.03010.96
5.2.110.1800.03011.18
5.2.100.1600.03711.04
5.2.90.1400.03010.94
5.2.80.1430.02710.95
5.2.70.1530.04011.13
5.2.60.1430.02711.13
5.2.50.1570.02011.09
5.2.40.1100.03311.04
5.2.30.0630.03011.02
5.2.20.0070.02310.81
5.2.10.0000.03310.77
5.2.00.0270.03010.62
5.1.60.1170.02310.07
5.1.50.1300.0279.86
5.1.40.1100.02010.06
5.1.30.1130.02310.41
5.1.20.1070.02710.24
5.1.10.1170.02710.11
5.1.00.1270.04010.15
5.0.50.0530.0178.44
5.0.40.0630.0378.53
5.0.30.0670.0338.21
5.0.20.0530.0178.34
5.0.10.0470.0238.09
5.0.00.0500.0308.13
4.4.90.0570.0208.06
4.4.80.0530.0138.06
4.4.70.0630.0178.06
4.4.60.0530.0138.06
4.4.50.0500.0208.06
4.4.40.0500.0278.06
4.4.30.0600.0108.06
4.4.20.0530.0178.06
4.4.10.0000.0208.06
4.4.00.0000.0308.06
4.3.110.0000.0408.06
4.3.100.0070.0138.06
4.3.90.0100.0208.06
4.3.80.0100.0478.06
4.3.70.0000.0178.06
4.3.60.0070.0178.06
4.3.50.0230.0208.06
4.3.40.0530.0208.06
4.3.30.0230.0178.06
4.3.20.0230.0178.06
4.3.10.0270.0138.06
4.3.00.0370.0308.06

preferences:
50.33 ms | 401 KiB | 5 Q