3v4l.org

run code in 300+ PHP versions simultaneously
<?php $explicit = [-2 => true, true, true]; $fill = array_fill(-2, 3, true); $push = [-2 => true]; $push[] = true; $push[] = true; var_dump($explicit, $fill, $push);

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.0150.00318.56
8.3.50.0120.00318.18
8.3.40.0070.00718.49
8.3.30.0150.00418.57
8.3.20.0050.00221.91
8.3.10.0040.00422.13
8.3.00.0080.00020.93
8.2.180.0110.00725.92
8.2.170.0040.01119.00
8.2.160.0100.00722.96
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00422.26
8.2.120.0040.00426.35
8.2.110.0050.00521.09
8.2.100.0110.00017.84
8.2.90.0040.00417.84
8.2.80.0040.00418.16
8.2.70.0100.00017.63
8.2.60.0050.00317.68
8.2.50.0000.00818.10
8.2.40.0060.00320.42
8.2.30.0000.00820.41
8.2.20.0040.00417.93
8.2.10.0040.00418.04
8.2.00.0000.00818.18
8.1.280.0070.00725.92
8.1.270.0050.00323.92
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0090.00022.14
8.1.230.0070.00322.66
8.1.220.0050.00317.74
8.1.210.0080.00018.77
8.1.200.0040.00417.35
8.1.190.0090.00017.10
8.1.180.0040.00418.10
8.1.170.0040.00418.44
8.1.160.0000.00818.82
8.1.150.0070.00020.18
8.1.140.0000.00719.48
8.1.130.0000.00718.96
8.1.120.0000.00717.43
8.1.110.0040.00417.24
8.1.100.0030.00517.36
8.1.90.0040.00417.39
8.1.80.0000.00717.37
8.1.70.0000.00717.27
8.1.60.0040.00417.52
8.1.50.0040.00417.45
8.1.40.0040.00417.39
8.1.30.0040.00417.57
8.1.20.0000.00817.53
8.1.10.0080.00017.45
8.1.00.0040.00417.41
8.0.300.0070.00019.95
8.0.290.0060.00316.58
8.0.280.0000.00718.44
8.0.270.0030.00317.20
8.0.260.0060.00017.10
8.0.250.0000.00716.80
8.0.240.0040.00416.95
8.0.230.0000.00716.77
8.0.220.0040.00416.73
8.0.210.0030.00316.68
8.0.200.0030.00316.81
8.0.190.0040.00416.80
8.0.180.0040.00416.86
8.0.170.0080.00016.86
8.0.160.0040.00416.90
8.0.150.0030.00316.79
8.0.140.0030.00516.80
8.0.130.0000.00613.19
8.0.120.0000.00816.81
8.0.110.0070.00016.84
8.0.100.0040.00416.89
8.0.90.0070.00016.70
8.0.80.0180.00316.81
8.0.70.0040.00416.89
8.0.60.0040.00416.70
8.0.50.0040.00416.61
8.0.30.0100.01117.08
8.0.20.0110.00817.40
8.0.10.0050.00316.80
8.0.00.0110.00716.55
7.4.330.0000.00515.55
7.4.320.0030.00316.31
7.4.300.0000.00716.56
7.4.290.0070.00316.47
7.4.280.0030.00616.53
7.4.270.0030.00316.45
7.4.260.0000.00716.43
7.4.250.0000.00716.50
7.4.240.0000.00816.58
7.4.230.0060.00016.24
7.4.220.0100.00716.49
7.4.210.0040.01016.46
7.4.200.0040.00416.50
7.4.160.0080.00716.55
7.4.150.0080.01117.40
7.4.140.0080.01217.86
7.4.130.0110.00716.53
7.4.120.0140.00816.46
7.4.110.0130.01216.33
7.4.100.0140.00316.50
7.4.90.0100.00716.53
7.4.80.0030.01719.39
7.4.70.0090.01016.45
7.4.60.0060.01016.48
7.4.50.0060.00616.32
7.4.40.0100.01016.36
7.4.30.0070.01016.55
7.4.00.0130.00314.82
7.3.330.0030.00313.00
7.3.320.0050.00013.04
7.3.310.0000.00716.06
7.3.300.0030.00316.20
7.3.290.0000.00716.15
7.3.280.0080.01016.19
7.3.270.0130.01017.40
7.3.260.0090.00916.38
7.3.250.0100.01016.26
7.3.240.0100.01016.31
7.3.230.0120.00616.36
7.3.210.0160.00016.16
7.3.200.0100.00616.18
7.3.190.0060.00916.59
7.3.180.0060.01016.31
7.3.170.0070.01016.14
7.3.160.0130.00716.61
7.3.00.0070.00716.82
7.2.330.0070.01316.64
7.2.320.0090.01416.48
7.2.310.0080.00816.55
7.2.300.0100.00716.25
7.2.290.0060.01416.62
7.2.130.0030.01217.00
7.2.120.0060.00916.97
7.2.110.0070.00716.86
7.2.100.0070.00716.90
7.2.90.0060.00916.58
7.2.80.0070.00916.72
7.2.70.0060.00616.73
7.2.60.0050.00916.84
7.2.50.0060.00716.74
7.2.40.0120.00317.03
7.2.30.0080.00516.92
7.2.20.0040.00716.78
7.2.10.0070.01016.66
7.2.00.0030.00916.94
7.1.250.0030.01315.68
7.1.240.0040.01115.50
7.1.230.0000.01515.73
7.1.220.0030.00715.56
7.1.210.0080.00615.47
7.1.200.0160.00315.35
7.1.190.0000.01215.81
7.1.180.0030.01015.62
7.1.170.0090.00415.73
7.1.160.0000.00915.84
7.1.150.0030.01315.67
7.1.140.0040.00815.75
7.1.130.0040.01215.71
7.1.120.0110.00415.42
7.1.110.0060.00915.80
7.1.100.0060.01115.65
7.1.90.0040.01115.37
7.1.80.0040.01115.57
7.1.70.0040.00716.37
7.1.60.0060.00616.47
7.1.50.0070.00715.77
7.1.40.0030.01015.41
7.1.30.0030.01215.77
7.1.20.0200.02828.00
7.1.10.0100.03519.02
7.1.00.0100.03219.11
7.0.330.0040.00415.48
7.0.320.0030.01015.39
7.0.310.0030.01015.34
7.0.300.0090.00315.39
7.0.290.0040.00915.37
7.0.280.0080.00015.38
7.0.270.0030.00815.58
7.0.260.0050.00215.12
7.0.250.0090.00315.43
7.0.240.0060.00615.39
7.0.230.0030.01015.49
7.0.220.0000.01015.41
7.0.210.0100.00315.42
7.0.200.0070.00815.98
7.0.190.0070.00415.43
7.0.180.0030.00915.33
7.0.170.0100.00315.46
7.0.160.0060.03218.58
7.0.150.0130.03818.41
7.0.140.0080.03218.47
7.0.130.0080.03018.71
7.0.120.0000.03818.66
7.0.110.0090.03218.57
7.0.100.0120.02818.56
7.0.90.0030.04318.61
7.0.80.0080.03518.60
7.0.70.0030.03318.62
7.0.60.0100.02818.72
7.0.50.0060.03018.61
7.0.40.0060.03317.65
7.0.30.0100.03317.55
7.0.20.0080.03117.73
7.0.10.0040.04117.63
7.0.00.0110.03517.81
5.6.380.0060.00914.31

preferences:
33.86 ms | 400 KiB | 5 Q