3v4l.org

run code in 300+ PHP versions simultaneously
<?php $expected_array_got_string = 'somestring'; var_dump($expected_array_got_string['some_key']); var_dump($expected_array_got_string[0]); var_dump($expected_array_got_string['0']); var_dump($expected_array_got_string[0.5]); var_dump($expected_array_got_string['0.5']); var_dump($expected_array_got_string['0 Mostel']); ?>

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.40.0070.00718.83
8.3.30.0110.00418.90
8.3.20.0070.00020.13
8.3.10.0000.00721.86
8.3.00.0080.00019.51
8.2.170.0000.01522.96
8.2.160.0070.00720.38
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0000.00726.16
8.2.120.0050.00319.36
8.2.110.0000.01020.99
8.2.100.0080.00417.63
8.2.90.0040.00419.22
8.2.80.0050.00317.97
8.2.70.0060.00317.63
8.2.60.0040.00417.93
8.2.50.0000.00818.07
8.2.40.0050.00319.93
8.2.30.0060.00318.05
8.2.20.0030.00617.80
8.2.10.0080.00018.11
8.2.00.0040.00417.67
8.1.270.0060.00318.88
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0060.00322.81
8.1.230.0070.00417.42
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0030.00617.35
8.1.190.0050.00317.13
8.1.180.0000.00718.10
8.1.170.0030.00520.31
8.1.160.0020.00521.87
8.1.150.0000.00718.83
8.1.140.0080.00017.40
8.1.130.0040.00417.84
8.1.120.0090.00017.43
8.1.110.0070.00017.43
8.1.100.0000.00717.27
8.1.90.0040.00417.41
8.1.80.0000.00717.42
8.1.70.0000.00717.34
8.1.60.0080.00017.56
8.1.50.0040.00417.53
8.1.40.0040.00417.50
8.1.30.0040.00417.58
8.1.20.0050.00217.64
8.1.10.0000.00817.59
8.1.00.0030.00617.55
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0000.00718.29
8.0.270.0030.00317.11
8.0.260.0030.00317.11
8.0.250.0050.00316.97
8.0.240.0000.00616.85
8.0.230.0000.00716.97
8.0.220.0000.00716.78
8.0.210.0040.00416.85
8.0.200.0000.00616.97
8.0.190.0030.00616.87
8.0.180.0030.00516.88
8.0.170.0020.00516.79
8.0.160.0080.00016.85
8.0.150.0000.00716.90
8.0.140.0040.00416.90
8.0.130.0090.00013.36
8.0.120.0040.00416.82
8.0.110.0050.00216.85
8.0.100.0040.00416.76
8.0.90.0070.00016.94
8.0.80.0100.00616.90
8.0.70.0050.00216.74
8.0.60.0040.00416.73
8.0.50.0040.00416.85
8.0.30.0060.01616.94
8.0.20.0070.01217.40
8.0.10.0000.00816.84
8.0.00.0090.01216.58
7.4.330.0050.00015.08
7.4.320.0040.00416.59
7.4.300.0030.00316.55
7.4.290.0000.00716.46
7.4.280.0060.00616.52
7.4.270.0000.00816.43
7.4.260.0060.00016.57
7.4.250.0040.00416.42
7.4.240.0020.00516.46
7.4.230.0070.00016.47
7.4.220.0090.00916.42
7.4.210.0070.00716.56
7.4.200.0070.00016.32
7.4.160.0120.00416.32
7.4.150.0120.00617.40
7.4.140.0110.00817.86
7.4.130.0110.00716.43
7.4.120.0070.01016.42
7.4.110.0100.01316.45
7.4.100.0060.01516.54
7.4.90.0080.00816.63
7.4.80.0030.01619.39
7.4.70.0090.00916.41
7.4.60.0060.01016.45
7.4.50.0040.00416.39
7.4.40.0130.00316.45
7.4.30.0100.00616.57
7.4.00.0030.01314.74
7.3.330.0030.00313.13
7.3.320.0040.00812.99
7.3.310.0030.00316.08
7.3.300.0000.00716.23
7.3.290.0030.00316.16
7.3.280.0080.01116.27
7.3.270.0110.00817.40
7.3.260.0130.00316.28
7.3.250.0110.00716.29
7.3.240.0220.00016.21
7.3.230.0090.01216.39
7.3.210.0030.01416.25
7.3.200.0120.00819.39
7.3.190.0100.00616.41
7.3.180.0090.00616.44
7.3.170.0060.01316.35
7.3.160.0110.00616.31
7.2.330.0140.00316.27
7.2.320.0060.01116.61
7.2.310.0070.01116.52
7.2.300.0110.00616.29
7.2.290.0130.01016.45
7.2.00.0000.01219.34
7.1.100.0090.00318.04
7.1.70.0000.00717.14
7.1.60.0070.01819.50
7.1.50.0130.01316.93
7.1.00.0070.07322.57
7.0.200.0050.00514.88
7.0.140.0030.07722.12
7.0.60.0030.07020.04
7.0.50.0000.04317.89
7.0.40.0070.04319.98
7.0.30.0270.05720.17
7.0.20.0300.07320.04
7.0.10.0200.07720.00
7.0.00.0100.06020.13
5.6.210.0070.07720.55
5.6.200.0030.06718.12
5.6.190.0000.04720.49
5.6.180.0600.06320.64
5.6.170.0270.03720.42
5.6.160.0070.08020.41
5.6.150.0030.07018.15
5.6.140.0000.04018.14
5.6.130.0070.05718.07
5.6.120.0070.08321.02
5.6.110.0070.06321.13
5.6.100.0100.08020.98
5.6.90.0070.08721.07
5.6.80.0200.07020.37
5.5.350.3300.02320.29
5.5.340.0030.06717.92
5.5.330.0070.08020.21
5.5.320.0430.06320.21
5.5.310.0230.07020.30
5.5.300.0070.05017.87
5.5.290.0100.07318.02
5.5.280.0030.07320.66
5.5.270.0100.08720.88
5.5.260.0100.07320.64
5.5.250.0030.04020.49
5.5.240.0030.06020.13
5.4.450.0600.06019.47
5.4.440.0870.05019.64
5.4.430.0900.06319.60
5.4.420.0330.07319.60
5.4.410.0170.05318.95
5.4.400.0370.05018.80
5.4.390.0230.06018.57
5.4.380.0400.07318.67
5.4.370.0330.05318.74
5.4.360.0300.07718.48
5.4.350.0330.06318.74
5.4.340.0370.04718.61
5.4.320.0330.05718.67
5.4.310.0270.05718.55
5.4.300.0370.05018.76
5.4.290.0330.05318.69
5.4.280.0400.05318.71
5.4.270.0370.05718.73
5.4.260.0500.06018.49
5.4.250.0370.07318.55
5.4.240.0370.05018.45
5.4.230.0300.05318.57
5.4.220.0370.05318.72
5.4.210.0330.07018.58
5.4.200.0270.05716.48
5.4.190.0370.04718.60
5.4.180.0330.05318.63
5.4.170.0270.05718.65
5.4.160.0370.04718.69
5.4.150.0270.05718.74
5.4.140.0200.06316.13
5.4.130.0370.04716.21
5.4.120.0300.05716.13
5.4.110.0330.05016.30
5.4.100.0370.05016.33
5.4.90.0370.05716.21
5.4.80.0400.04316.25
5.4.70.0270.05716.05
5.4.60.0330.05716.13
5.4.50.0270.05016.19
5.4.40.0300.07016.10
5.4.30.0270.05316.13
5.4.20.0330.04716.13
5.4.10.0330.04716.18
5.4.00.0330.04715.81
5.3.290.0400.05014.73
5.3.280.0330.05314.63
5.3.270.0370.05014.52
5.3.260.0300.06314.59
5.3.250.0270.06714.51
5.3.240.0400.04714.60
5.3.230.0470.06014.56
5.3.220.0270.06314.56
5.3.210.0270.06014.56
5.3.200.0300.05014.66
5.3.190.0330.05014.52
5.3.180.0330.05314.53
5.3.170.0430.05314.53
5.3.160.0300.05014.53
5.3.150.0330.05714.64
5.3.140.0370.07014.62
5.3.130.0330.07014.54
5.3.120.0300.05314.61
5.3.110.0370.04714.45
5.3.100.0300.06014.04
5.3.90.0500.06013.99
5.3.80.0430.06314.04
5.3.70.0330.04713.99
5.3.60.0270.05013.98
5.3.50.0330.04713.93
5.3.40.0370.05313.92
5.3.30.0400.04313.83
5.3.20.0230.05713.72
5.3.10.0270.05013.74
5.3.00.0300.05013.72
5.2.170.0300.05711.06
5.2.160.0200.04311.07
5.2.150.0300.03311.14
5.2.140.0370.05011.12
5.2.130.0230.04011.05
5.2.120.0300.03311.10
5.2.110.0170.04711.15
5.2.100.0200.04011.13
5.2.90.0200.04311.10
5.2.80.0230.04711.05
5.2.70.0270.05011.23
5.2.60.0330.03711.04
5.2.50.0270.04011.04
5.2.40.0200.04310.90
5.2.30.0200.04011.03
5.2.20.0130.04011.10
5.2.10.0170.03710.90
5.2.00.0170.04710.67
5.1.60.0170.03310.05
5.1.50.0170.04310.04
5.1.40.0170.03310.01
5.1.30.0200.03310.37
5.1.20.0230.03010.46
5.1.10.0170.04010.08
5.1.00.0100.04310.11
5.0.50.0130.0278.56
5.0.40.0130.0278.38
5.0.30.0070.0478.20
5.0.20.0070.0308.20
5.0.10.0130.0308.18
5.0.00.0130.0408.28
4.4.90.0100.0205.89
4.4.80.0100.0235.85
4.4.70.0030.0275.88
4.4.60.0030.0275.92
4.4.50.0100.0205.89
4.4.40.0030.0405.90
4.4.30.0070.0235.86
4.4.20.0130.0205.92
4.4.10.0070.0275.96
4.4.00.0100.0375.88
4.3.110.0070.0235.82
4.3.100.0070.0235.80
4.3.90.0100.0235.91
4.3.80.0170.0275.80
4.3.70.0130.0175.79
4.3.60.0100.0205.84
4.3.50.0100.0205.77
4.3.40.0100.0305.79
4.3.30.0030.0234.59
4.3.20.0000.0274.52
4.3.10.0030.0234.49
4.3.00.0130.0206.98

preferences:
40.62 ms | 400 KiB | 5 Q