3v4l.org

run code in 300+ PHP versions simultaneously
<?php $default = [ 'value' => '', ]; $input = [ 'value' => null, ]; var_dump(array_merge($default, $input));

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.0100.01017.71
8.4.10.0060.01021.73
8.3.150.0110.00720.79
8.3.140.0130.00616.43
8.3.130.0040.00416.37
8.3.120.0130.00618.88
8.3.110.0040.00420.94
8.3.100.0100.01024.06
8.3.90.0040.00426.77
8.3.80.0040.00818.43
8.3.70.0130.00616.58
8.3.60.0090.00616.48
8.3.50.0070.01318.21
8.3.40.0140.00020.47
8.3.30.0040.01118.36
8.3.20.0070.00024.18
8.3.10.0040.00424.66
8.3.00.0040.00426.16
8.2.260.0070.01017.27
8.2.250.0040.00418.26
8.2.240.0120.00317.13
8.2.230.0080.00022.58
8.2.220.0030.00637.54
8.2.210.0040.01126.77
8.2.200.0060.00316.38
8.2.190.0090.00616.58
8.2.180.0200.00325.92
8.2.170.0100.00318.71
8.2.160.0100.00322.96
8.2.150.0040.00425.66
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0040.00419.70
8.2.110.0110.00020.38
8.2.100.0030.00917.91
8.2.90.0040.00417.72
8.2.80.0050.00317.97
8.2.70.0080.00017.55
8.2.60.0090.00018.09
8.2.50.0040.00418.10
8.2.40.0070.00019.36
8.2.30.0040.00419.09
8.2.20.0000.00919.23
8.2.10.0000.00718.05
8.2.00.0040.00419.16
8.1.310.0000.00916.84
8.1.300.0090.00916.06
8.1.290.0030.00730.84
8.1.280.0030.01325.92
8.1.270.0000.00824.66
8.1.260.0050.00326.35
8.1.250.0070.00028.09
8.1.240.0040.00423.84
8.1.230.0070.00322.68
8.1.220.0030.00517.74
8.1.210.0000.00818.77
8.1.200.0030.00617.13
8.1.190.0040.00417.23
8.1.180.0000.01018.10
8.1.170.0060.00318.34
8.1.160.0040.00419.00
8.1.150.0000.00918.50
8.1.140.0040.00417.38
8.1.130.0030.00317.45
8.1.120.0000.00717.41
8.1.110.0000.00717.41
8.1.100.0040.00617.38
8.1.90.0000.01317.39
8.1.80.0040.00917.38
8.1.70.0100.00517.30
8.1.60.0140.00617.42
8.1.50.0140.00617.27
8.1.40.0210.00017.45
8.1.30.0180.00317.40
8.1.20.0120.00817.54
8.1.10.0240.00017.33
8.1.00.0100.01017.38
8.0.300.0070.00019.65
8.0.290.0000.00716.63
8.0.280.0000.00818.27
8.0.270.0000.00717.88
8.0.260.0030.00316.66
8.0.250.0030.00516.78
8.0.240.0000.00716.83
8.0.230.0110.00316.85
8.0.220.0170.00016.78
8.0.210.0140.00416.81
8.0.200.0110.00516.79
8.0.190.0100.00616.82
8.0.180.0110.00416.80
8.0.170.0070.00716.72
8.0.160.0110.00516.79
8.0.150.0160.00016.76
8.0.140.0090.00716.71
8.0.130.0100.00816.79
8.0.120.0130.00316.85
8.0.110.0130.00316.75
8.0.100.0070.00716.70
8.0.90.0090.00616.77
8.0.80.0110.00416.84
8.0.70.0050.01016.68
8.0.60.0080.00716.74
8.0.50.0120.00316.73
8.0.30.0120.00216.83
8.0.20.0050.01116.80
8.0.10.0140.00317.03
7.4.330.0000.00515.55
7.4.320.0030.00316.59
7.4.300.0090.00316.54
7.4.290.0130.00316.50
7.4.280.0130.00316.42
7.4.270.0030.00516.39
7.4.260.0100.00016.48
7.4.250.0040.00416.32
7.4.240.0000.00816.30
7.4.230.0050.00616.46
7.4.220.0110.00516.38
7.4.210.0090.00516.40
7.4.200.0100.00516.42
7.4.190.0070.00716.58
7.4.180.0040.01116.59
7.4.160.0040.00816.50
7.4.150.0110.00616.34
7.4.140.0080.00816.30
7.4.130.0130.00016.33
7.4.120.0050.01016.24
7.4.110.0140.00016.33
7.4.100.0110.00316.45
7.4.90.0070.00516.38
7.4.80.0100.00516.20
7.4.70.0140.00316.20
7.4.60.0120.00416.28
7.4.50.0070.00616.21
7.4.40.0140.00016.25
7.4.30.0060.00616.13
7.4.20.0040.00816.02
7.4.10.0000.01216.27
7.4.00.0100.00316.29

preferences:
46.77 ms | 403 KiB | 5 Q