3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = [ 2 => 'ABC', ]; $a[] = 'DEF'; array_push($a, 'GHI'); var_dump($a);

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.130.0030.00518.41
8.3.120.0060.00318.79
8.3.110.0030.00620.94
8.3.100.0000.00924.06
8.3.90.0080.00026.77
8.3.80.0060.00316.63
8.3.70.0100.00716.63
8.3.60.0090.00618.30
8.3.50.0070.01020.31
8.3.40.0090.00620.30
8.3.30.0120.00918.54
8.3.20.0000.00824.18
8.3.10.0050.00324.66
8.3.00.0040.00426.16
8.2.250.0090.00018.22
8.2.240.0160.00017.20
8.2.230.0100.01022.58
8.2.220.0060.00337.54
8.2.210.0000.00926.77
8.2.200.0060.00318.17
8.2.190.0100.01016.63
8.2.180.0070.01325.92
8.2.170.0070.00719.02
8.2.160.0040.01122.96
8.2.150.0070.00025.66
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0040.00419.83
8.2.110.0050.00522.30
8.2.100.0090.00317.72
8.2.90.0080.00017.75
8.2.80.0000.00818.91
8.2.70.0080.00017.50
8.2.60.0060.00317.55
8.2.50.0040.00417.98
8.2.40.0050.00318.16
8.2.30.0000.00718.11
8.2.20.0030.00720.38
8.2.10.0050.00217.93
8.2.00.0070.00019.05
8.1.300.0090.00619.39
8.1.290.0090.00030.84
8.1.280.0120.00625.92
8.1.270.0050.00323.99
8.1.260.0050.00326.35
8.1.250.0070.00028.09
8.1.240.0080.00323.56
8.1.230.0080.00320.87
8.1.220.0080.00017.74
8.1.210.0000.00818.77
8.1.200.0060.00316.98
8.1.190.0040.00417.10
8.1.180.0030.00519.01
8.1.170.0080.00017.62
8.1.160.0040.00418.77
8.1.150.0040.00418.63
8.1.140.0070.00017.42
8.1.130.0040.00418.72
8.1.120.0030.00417.39
8.1.110.0030.00517.40
8.1.100.0040.00417.39
8.1.90.0080.00017.27
8.1.80.0040.00417.32
8.1.70.0000.00917.40
8.1.60.0050.01117.46
8.1.50.0080.01317.41
8.1.40.0080.01217.42
8.1.30.0150.00417.45
8.1.20.0040.01317.50
8.1.10.0090.00917.32
8.1.00.0000.00917.26
8.0.300.0000.00718.77
8.0.290.0040.00416.58
8.0.280.0000.00718.37
8.0.270.0050.00216.63
8.0.260.0030.00518.42
8.0.250.0030.00316.94
8.0.240.0000.00716.89
8.0.230.0030.00316.73
8.0.220.0030.00316.78
8.0.210.0000.00716.81
8.0.200.0040.00416.85
8.0.190.0040.00716.70
8.0.180.0070.00716.66
8.0.170.0130.00416.68
8.0.160.0110.00316.74
8.0.150.0110.00416.65
8.0.140.0050.01016.78
8.0.130.0040.00816.81
8.0.120.0120.00016.86
8.0.110.0100.00716.82
8.0.100.0070.00716.74
8.0.90.0090.00616.71
8.0.80.0160.00416.65
8.0.70.0130.00516.76
8.0.60.0120.00416.66
8.0.50.0110.00616.59
8.0.30.0110.00416.72
8.0.20.0120.00316.83
8.0.10.0140.00016.95
7.4.330.0020.00215.55
7.4.320.0030.00316.38
7.4.300.0040.00816.42
7.4.290.0130.00016.29
7.4.280.0090.00016.52
7.4.270.0080.00416.42
7.4.260.0070.00716.46
7.4.250.0000.01116.48
7.4.240.0100.00216.41
7.4.230.0060.00616.50
7.4.220.0060.00616.29
7.4.210.0060.00316.48
7.4.200.0080.00616.32
7.4.190.0100.00316.40
7.4.180.0060.00616.16
7.4.160.0060.00616.22
7.4.150.0080.00316.25
7.4.140.0080.00416.40
7.4.130.0110.00316.42
7.4.120.0120.00416.34
7.4.110.0090.00316.26
7.4.100.0020.00716.43
7.4.90.0130.00316.24
7.4.80.0080.00316.34
7.4.70.0070.00516.17
7.4.60.0070.00316.49
7.4.50.0070.00416.31
7.4.40.0080.00316.07
7.4.30.0100.00016.24
7.4.20.0030.00716.20
7.4.10.0080.00216.20
7.4.00.0080.00516.39

preferences:
42.03 ms | 403 KiB | 5 Q