3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(array_merge(['foo' => 'foo', 'bar' => null], ['foo' => null, 'bar' => 'bar']));

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.0070.01018.18
8.3.50.0100.00718.25
8.3.40.0110.00418.54
8.3.30.0060.00918.40
8.3.20.0000.00719.03
8.3.10.0040.00420.77
8.3.00.0030.00617.91
8.2.180.0110.00418.17
8.2.170.0030.01422.96
8.2.160.0030.01018.79
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00019.70
8.2.120.0000.00826.35
8.2.110.0060.00322.11
8.2.100.0080.00417.59
8.2.90.0030.00617.50
8.2.80.0090.00018.52
8.2.70.0060.00317.80
8.2.60.0050.00317.91
8.2.50.0040.00418.10
8.2.40.0060.00319.14
8.2.30.0000.00719.31
8.2.20.0070.00017.96
8.2.10.0000.00817.95
8.2.00.0040.00419.21
8.1.280.0170.00025.92
8.1.270.0000.00923.82
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0040.00819.06
8.1.230.0070.00319.15
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0060.00317.09
8.1.190.0030.00517.10
8.1.180.0050.00318.10
8.1.170.0060.00318.36
8.1.160.0070.00018.68
8.1.150.0000.00818.82
8.1.140.0040.00417.48
8.1.130.0000.00718.95
8.1.120.0070.00017.34
8.1.110.0000.01117.17
8.1.100.0060.00317.25
8.1.90.0000.00717.31
8.1.80.0030.00617.39
8.1.70.0000.00717.22
8.1.60.0060.00617.42
8.1.50.0000.00717.30
8.1.40.0000.00817.39
8.1.30.0030.00517.41
8.1.20.0050.00317.52
8.1.10.0060.00317.34
8.1.00.0030.00517.21
8.0.300.0040.00418.77
8.0.290.0000.00716.58
8.0.280.0000.00718.28
8.0.270.0070.00017.04
8.0.260.0030.00317.12
8.0.250.0030.00316.85
8.0.240.0030.00316.84
8.0.230.0060.00016.77
8.0.220.0030.00316.63
8.0.210.0030.00316.66
8.0.200.0000.00616.88
8.0.190.0040.00416.71
8.0.180.0000.00816.81
8.0.170.0090.00016.77
8.0.160.0000.00816.74
8.0.150.0000.00716.73
8.0.140.0000.00716.73
8.0.130.0000.00613.12
8.0.120.0030.00516.74
8.0.110.0030.00316.54
8.0.100.0040.00416.73
8.0.90.0050.00316.56
8.0.80.0080.00716.77
8.0.70.0070.00016.65
8.0.60.0000.00816.72
8.0.50.0000.00816.70
8.0.30.0110.00716.91
8.0.20.0070.01217.40
8.0.10.0070.00016.95
8.0.00.0100.00816.71
7.4.330.0050.00015.55
7.4.320.0000.00616.30
7.4.300.0030.00316.42
7.4.290.0000.00816.30
7.4.280.0000.00816.31
7.4.270.0000.00716.50
7.4.260.0030.00316.45
7.4.250.0030.00316.44
7.4.240.0050.00216.48
7.4.230.0030.00316.22
7.4.220.0030.00516.53
7.4.210.0110.00616.49
7.4.200.0070.00016.50
7.4.160.0080.00816.38
7.4.140.0090.01117.86
7.4.130.0070.01016.16
7.4.120.0100.00916.31
7.4.110.0130.01016.41
7.4.100.0060.01116.49
7.4.90.0030.01716.47
7.4.80.0070.01019.39
7.4.70.0100.01016.33
7.4.60.0100.00616.50
7.4.50.0060.00916.42
7.4.40.0110.00616.40
7.4.00.0030.01414.98
7.3.330.0060.00012.89
7.3.320.0030.00312.88
7.3.310.0070.00016.29
7.3.300.0030.00316.19
7.3.290.0030.00316.13
7.3.280.0090.01016.17
7.3.260.0090.00716.29
7.3.240.0090.00916.25
7.3.230.0140.00516.11
7.3.210.0060.01016.19
7.3.200.0090.00916.34
7.3.190.0120.00416.18
7.3.180.0090.00816.30
7.3.170.0030.01316.30
7.3.160.0090.00616.28
7.2.330.0150.00316.23
7.2.320.0120.00616.08
7.2.310.0090.00816.63
7.2.300.0090.00916.48
7.2.290.0140.00416.37
7.2.60.0120.00914.77
7.2.50.0170.00714.96
7.2.40.0910.00815.09
7.2.30.0130.01215.36
7.2.20.0130.00615.20
7.2.10.0260.00815.36
7.2.00.7770.00615.29
7.1.200.0100.00315.59
7.1.170.0080.00913.71
7.1.160.0140.00716.57
7.1.150.0150.00916.46
7.1.140.0140.00616.85
7.1.130.0140.00916.87
7.1.120.0110.01116.66
7.1.110.0110.01116.31
7.1.100.0100.00816.03
7.1.90.0110.00615.70
7.1.80.0100.00816.16
7.1.70.0080.00715.07
7.1.60.0310.00933.06
7.1.50.0330.01333.02
7.1.40.0260.01432.59
7.1.30.0290.01432.66
7.1.20.0250.01332.66
7.1.10.0100.01014.64
7.1.00.8790.01414.93

preferences:
62.02 ms | 401 KiB | 5 Q