3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = [0] + array_fill(4, 9, null) + array_fill(1, 4, null); var_dump($arr);

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.0110.01418.31
8.3.50.0180.00018.32
8.3.40.0160.00018.48
8.3.30.0060.00918.61
8.3.20.0080.00019.16
8.3.10.0060.00323.61
8.3.00.0070.00020.75
8.2.180.0070.00716.38
8.2.170.0070.01422.96
8.2.160.0100.00322.14
8.2.150.0080.00024.18
8.2.140.0000.00724.66
8.2.130.0040.00419.71
8.2.120.0040.00426.35
8.2.110.0060.00321.03
8.2.100.0000.01217.72
8.2.90.0060.00620.90
8.2.80.0080.00017.97
8.2.70.0000.00818.04
8.2.60.0000.00818.09
8.2.50.0090.00318.10
8.2.40.0050.00319.41
8.2.30.0050.00219.18
8.2.20.0060.00317.87
8.2.10.0040.00417.98
8.2.00.0050.00317.64
8.1.280.0120.00325.92
8.1.270.0040.00418.88
8.1.260.0030.00626.35
8.1.250.0050.00228.09
8.1.240.0000.00922.33
8.1.230.0030.00720.90
8.1.220.0000.00817.74
8.1.210.0030.00518.82
8.1.200.0040.00417.36
8.1.190.0000.00817.11
8.1.180.0000.00718.10
8.1.170.0040.00418.49
8.1.160.0070.00018.82
8.1.150.0000.00718.76
8.1.140.0040.00422.02
8.1.130.0040.00422.03
8.1.120.0030.00317.34
8.1.110.0000.00717.30
8.1.100.0080.00017.40
8.1.90.0070.00017.38
8.1.80.0020.00517.32
8.1.70.0040.00717.39
8.1.60.0070.00017.45
8.1.50.0030.00517.45
8.1.40.0040.00417.39
8.1.30.0110.00017.48
8.1.20.0050.00217.59
8.1.10.0070.00017.38
8.1.00.0070.00317.34
8.0.300.0000.00719.95
8.0.290.0040.00416.75
8.0.280.0030.00318.31
8.0.270.0030.00317.11
8.0.260.0000.00618.38
8.0.250.0000.00716.87
8.0.240.0030.00316.86
8.0.230.0040.00416.91
8.0.220.0030.00716.90
8.0.210.0000.00716.77
8.0.200.0000.00716.96
8.0.190.0040.00416.96
8.0.180.0080.00016.85
8.0.170.0000.00916.98
8.0.160.0000.00716.90
8.0.150.0040.00416.70
8.0.140.0000.00716.69
8.0.130.0000.00613.35
8.0.120.0000.00816.74
8.0.110.0040.00416.86
8.0.100.0040.00416.93
8.0.90.0040.00416.77
8.0.80.0080.00816.87
8.0.70.0050.00316.73
8.0.60.0000.00716.89
8.0.50.0000.00716.88
8.0.30.0060.01417.10
8.0.20.0070.01117.40
8.0.10.0000.00816.91
8.0.00.0160.00216.70
7.4.330.0050.00015.55
7.4.320.0000.00616.44
7.4.300.0030.00316.29
7.4.290.0030.00316.35
7.4.280.0000.00916.56
7.4.270.0070.00316.45
7.4.260.0060.00316.45
7.4.250.0000.00716.55
7.4.240.0070.00016.54
7.4.230.0070.00016.52
7.4.220.0030.00616.25
7.4.210.0080.00716.51
7.4.200.0030.00316.52
7.4.160.0090.00716.42
7.4.140.0120.00817.86
7.4.130.0100.00716.31
7.4.120.0100.00816.46
7.4.110.0100.01016.17
7.4.100.0060.01116.29
7.4.90.0100.01016.25
7.4.80.0140.00319.39
7.4.70.0060.01016.37
7.4.60.0080.00916.25
7.4.50.0040.01116.42
7.4.40.0130.00616.55
7.3.330.0020.00213.08
7.3.320.0050.00013.10
7.3.310.0060.00316.24
7.3.300.0060.00016.14
7.3.290.0040.00416.15
7.3.280.0060.01016.12
7.3.260.0120.00816.34
7.3.240.0080.01116.19
7.3.230.0110.00716.26
7.3.210.0130.00316.27
7.3.200.0090.01216.40
7.3.190.0070.01016.39
7.3.180.0030.01416.17
7.3.170.0100.01016.19
7.3.160.0100.01016.32
7.2.330.0040.01416.58
7.2.320.0170.00716.61
7.2.310.0030.01616.32
7.2.300.0100.01016.61
7.2.290.0090.00916.60

preferences:
44.93 ms | 401 KiB | 5 Q