3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'abc'; echo $str[TRUE]; // Notice: String offset cast occurred echo $str[NULL]; // Notice: String offset cast occurred echo $str[[]]; // Warning: Illegal offset type $int = 123; echo $int[1]; // no error echo $int[TRUE]; // no error echo $int[[]]; // no error $bool = TRUE; echo $bool[1]; // no error echo $bool[TRUE]; // no error echo $bool[[]]; // no error $null = NULL; echo $null[1]; // no error echo $null[TRUE]; // no error echo $null[[]]; // no error

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.0030.01618.40
8.3.50.0140.00622.89
8.3.40.0080.00818.75
8.3.30.0090.00618.74
8.3.20.0070.00020.09
8.3.10.0040.00421.74
8.3.00.0080.00019.78
8.2.180.0110.00416.50
8.2.170.0090.00922.96
8.2.160.0060.00819.16
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0040.00422.27
8.2.120.0000.00726.16
8.2.110.0080.00822.29
8.2.100.0070.00318.09
8.2.90.0040.00422.04
8.2.80.0030.00617.97
8.2.70.0110.00017.93
8.2.60.0000.00818.05
8.2.50.0050.00319.66
8.2.40.0040.00420.59
8.2.30.0040.00421.13
8.2.20.0040.00417.90
8.2.10.0000.00717.92
8.2.00.0070.00018.03
8.1.280.0120.00325.92
8.1.270.0070.00023.99
8.1.260.0090.00026.35
8.1.250.0090.00628.09
8.1.240.0000.00922.18
8.1.230.0110.00019.00
8.1.220.0040.00417.79
8.1.210.0050.00318.77
8.1.200.0000.01017.23
8.1.190.0040.00417.23
8.1.180.0080.00018.10
8.1.170.0030.00618.46
8.1.160.0050.00322.04
8.1.150.0000.00818.82
8.1.140.0040.00419.47
8.1.130.0030.00317.59
8.1.120.0030.00517.30
8.1.110.0040.00417.33
8.1.100.0000.00717.40
8.1.90.0000.01017.39
8.1.80.0070.00017.26
8.1.70.0070.00017.39
8.1.60.0030.00617.48
8.1.50.0040.00417.54
8.1.40.0090.00317.46
8.1.30.0030.00517.54
8.1.20.0040.00417.57
8.1.10.0060.00317.46
8.1.00.0080.00017.53
8.0.300.0060.00319.58
8.0.290.0040.00416.88
8.0.280.0040.00418.30
8.0.270.0030.00317.26
8.0.260.0040.00417.26
8.0.250.0070.00017.05
8.0.240.0030.00317.00
8.0.230.0030.00316.96
8.0.220.0000.00716.86
8.0.210.0030.00316.79
8.0.200.0000.00616.98
8.0.190.0000.00816.91
8.0.180.0030.00616.89
8.0.170.0040.00416.79
8.0.160.0000.00716.88
8.0.150.0080.00016.72
8.0.140.0040.00416.87
8.0.130.0030.00313.39
8.0.120.0050.00316.76
8.0.110.0050.00216.91
8.0.100.0040.00416.88
8.0.90.0040.00416.75
8.0.80.0080.00816.79
8.0.70.0030.00516.86
8.0.60.0040.00416.95
8.0.50.0000.00716.92
8.0.30.0100.01017.21
8.0.20.0130.00617.40
8.0.10.0040.00416.87
8.0.00.0060.01216.52
7.4.330.0030.00315.08
7.4.320.0000.00616.57
7.4.300.0030.00316.34
7.4.290.0050.00316.41
7.4.280.0000.00816.48
7.4.270.0030.00316.34
7.4.260.0070.00016.40
7.4.250.0000.00716.55
7.4.240.0070.00016.43
7.4.230.0070.00016.54
7.4.220.0110.00716.50
7.4.210.0060.00916.47
7.4.200.0070.00016.17
7.4.160.0080.00716.49
7.4.150.0080.01017.40
7.4.140.0110.00717.86
7.4.130.0150.01816.45
7.4.120.0100.00716.47
7.4.110.0100.00616.34
7.4.100.0110.01016.47
7.4.90.0110.00716.48
7.4.80.0100.00719.39
7.4.70.0110.00516.49
7.4.60.0130.00416.61
7.4.50.0030.01216.48
7.4.40.0110.00516.20
7.4.30.0070.01016.51
7.4.00.0030.01414.75
7.3.330.0000.00513.05
7.3.320.0030.00313.01
7.3.310.0060.00016.32
7.3.300.0000.00616.27
7.3.290.0040.00416.24
7.3.280.0050.01416.25
7.3.270.0080.00817.40
7.3.260.0090.00816.45
7.3.250.0080.01316.32
7.3.240.0070.01016.45
7.3.230.0070.01516.39
7.3.210.0070.01016.41
7.3.200.0050.01216.33
7.3.190.0090.00616.51
7.3.180.0080.01116.32
7.3.170.0080.01116.40
7.3.160.0090.00716.54
7.3.120.0030.01514.76
7.3.110.0050.01214.93
7.3.100.0060.01114.73
7.3.90.0100.00414.71
7.3.80.0030.01014.83
7.3.70.0100.00314.79
7.3.60.0050.00614.82
7.3.50.0050.01114.86
7.3.40.0030.01114.75
7.3.30.0060.00814.60
7.3.20.0040.00916.59
7.3.10.0060.00516.50
7.3.00.0080.00416.58
7.2.330.0090.00916.51
7.2.320.0120.00916.55
7.2.310.0100.00716.50
7.2.300.0060.01016.33
7.2.290.0090.01216.39
7.2.250.0050.01215.07
7.2.240.0160.00215.01
7.2.230.0030.01214.86
7.2.220.0080.00615.21
7.2.210.0060.00814.85
7.2.200.0030.01014.91
7.2.190.0090.00314.98
7.2.180.0070.00714.91
7.2.170.0080.00715.04
7.2.130.0050.00516.82
7.2.120.0050.00517.02
7.2.110.0000.00916.61
7.2.100.0030.00916.73
7.2.90.0040.01116.98
7.2.80.0090.00317.06
7.2.70.0100.00616.62
7.2.60.0060.01016.84
7.2.50.0060.00316.86
7.2.40.0030.00916.97
7.2.30.0060.00316.64
7.2.20.0090.00016.86
7.2.10.0060.00317.05
7.2.00.0070.00716.86
7.1.330.0050.00815.66
7.1.320.0070.00315.81
7.1.310.0020.01215.64
7.1.300.0070.00515.63
7.1.290.0090.00215.66
7.1.280.0060.00415.83
7.1.270.0060.00615.71
7.1.260.0020.01015.67
7.1.250.0040.00415.50
7.1.200.0060.00815.73
7.1.70.0000.01016.91
7.1.60.0070.00719.45
7.1.00.0100.07022.54
7.0.200.0030.00316.63
7.0.90.6400.05319.99
7.0.80.0230.07719.98
7.0.70.0270.07019.95
7.0.60.0230.05719.97
7.0.50.0270.05320.31
7.0.40.1000.06020.30
7.0.30.1100.07320.34
7.0.20.1570.06020.42
7.0.10.1800.05320.26
7.0.00.1070.06720.38
5.6.230.0230.06320.76
5.6.220.0100.08020.62
5.6.210.0200.05720.54
5.6.200.0130.06721.08
5.6.190.0270.06321.04
5.6.180.0170.06721.07
5.6.170.0200.06721.06
5.6.160.0170.06321.00
5.6.150.0130.06321.04
5.6.140.0130.06321.16
5.6.130.0230.07721.04
5.6.120.0330.06720.98
5.6.110.0200.08021.15
5.6.100.0230.06021.03
5.6.90.0170.09021.13
5.6.80.0200.05320.38
5.6.70.0200.06320.42
5.6.60.0230.06720.48
5.6.50.0230.06720.45
5.6.40.0200.06020.44
5.6.30.0130.07020.39
5.6.20.0100.06320.40
5.6.10.0030.06720.43
5.6.00.0030.06720.32

preferences:
63.67 ms | 401 KiB | 5 Q