3v4l.org

run code in 300+ PHP versions simultaneously
<?php $r = [ '123' => "1", 'W' => "123", ]; var_dump($r); print_r($r['W']); $r['W'] = '999'; var_dump($r); print_r($r['W']);

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.0060.01218.48
8.3.50.0110.00417.95
8.3.40.0000.01518.82
8.3.30.0110.00318.76
8.3.20.0040.00420.90
8.3.10.0060.00323.70
8.3.00.0040.00423.53
8.2.180.0110.00418.29
8.2.170.0070.00722.96
8.2.160.0100.00322.20
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00019.82
8.2.120.0060.00326.35
8.2.110.0060.00320.51
8.2.100.0040.00817.84
8.2.90.0000.00819.21
8.2.80.0040.00417.97
8.2.70.0080.00017.93
8.2.60.0000.00918.16
8.2.50.0050.00318.10
8.2.40.0080.00018.99
8.2.30.0070.00019.18
8.2.20.0040.00418.06
8.2.10.0040.00419.15
8.2.00.0030.00619.14
8.1.280.0100.01025.92
8.1.270.0070.00718.79
8.1.260.0040.00426.35
8.1.250.0030.00528.09
8.1.240.0060.00322.07
8.1.230.0040.00717.77
8.1.220.0060.00317.74
8.1.210.0080.00018.77
8.1.200.0070.00317.23
8.1.190.0080.00017.25
8.1.180.0080.00018.10
8.1.170.0000.00918.51
8.1.160.0000.00818.73
8.1.150.0000.00718.82
8.1.140.0030.00322.09
8.1.130.0000.00717.41
8.1.120.0000.00717.44
8.1.110.0000.00717.28
8.1.100.0000.00817.28
8.1.90.0070.00017.22
8.1.80.0000.00817.38
8.1.70.0040.00417.32
8.1.60.0050.00317.53
8.1.50.0040.00417.34
8.1.40.0000.00817.48
8.1.30.0040.00417.56
8.1.20.0000.00917.39
8.1.10.0000.00717.56
8.1.00.0040.00417.41
8.0.300.0000.00718.77
8.0.290.0090.00016.63
8.0.280.0070.00018.42
8.0.270.0030.00317.13
8.0.260.0000.00716.86
8.0.250.0070.00016.94
8.0.240.0030.00516.98
8.0.230.0030.00316.99
8.0.220.0000.00716.90
8.0.210.0030.00316.77
8.0.200.0060.00016.86
8.0.190.0000.00716.98
8.0.180.0070.00016.88
8.0.170.0030.00516.73
8.0.160.0030.00316.82
8.0.150.0040.00416.89
8.0.140.0000.00716.86
8.0.130.0000.00613.33
8.0.120.0000.00716.76
8.0.110.0040.00416.75
8.0.100.0080.00016.73
8.0.90.0000.00716.75
8.0.80.0080.00916.86
8.0.70.0000.00716.72
8.0.60.0070.00016.89
8.0.50.0050.00316.74
8.0.30.0090.00717.10
8.0.20.0140.00717.40
8.0.10.0040.00417.07
8.0.00.0080.00916.74
7.4.330.0000.00615.55
7.4.320.0060.00016.59
7.4.300.0030.00316.29
7.4.290.0070.00016.43
7.4.280.0000.00716.55
7.4.270.0000.00716.45
7.4.260.0030.00616.35
7.4.250.0040.00416.34
7.4.240.0000.00716.45
7.4.230.0070.00016.52
7.4.220.0000.00716.44
7.4.210.0090.01016.48
7.4.200.0030.00316.35
7.4.160.0110.00716.59
7.4.140.0110.00717.86
7.4.130.0120.00816.45
7.4.120.0000.01916.33
7.4.110.0090.00916.21
7.4.100.0180.00616.51
7.4.90.0030.01316.32
7.4.80.0060.01819.39
7.4.70.0070.01116.41
7.4.60.0060.01116.50
7.4.50.0000.01816.49
7.4.40.0090.00616.55
7.4.00.0130.00314.89
7.3.330.0000.00513.18
7.3.320.0060.00013.17
7.3.310.0040.00416.10
7.3.300.0000.00716.30
7.3.290.0070.00016.29
7.3.280.0110.00416.25
7.3.260.0110.00916.32
7.3.240.0120.00916.41
7.3.230.0060.01216.57
7.3.210.0140.00716.53
7.3.200.0060.00916.24
7.3.190.0130.00616.33
7.3.180.0060.01316.69
7.3.170.0140.00316.32
7.3.160.0160.00716.32
7.3.10.0100.00316.36
7.3.00.0440.00714.89
7.2.330.0140.00416.35
7.2.320.0100.01016.62
7.2.310.0140.00316.29
7.2.300.0080.00816.56
7.2.290.0040.01416.62
7.2.130.0500.01015.15
7.2.120.0540.00515.20
7.2.110.0400.00815.07
7.2.100.0460.00915.18
7.2.90.0330.00615.20
7.2.80.0390.00515.16
7.2.70.0630.00615.13
7.2.60.0460.00915.19
7.2.50.0410.00615.29
7.2.40.0380.00715.22
7.2.30.0460.00815.19
7.2.20.0380.00815.06
7.2.10.0490.00815.26
7.2.00.0480.00715.24
7.1.250.0440.00514.15
7.0.330.0490.00613.58
5.6.380.0080.00814.38

preferences:
64.74 ms | 401 KiB | 5 Q