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

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.0070.01418.43
8.3.50.0150.00619.60
8.3.40.0110.00418.89
8.3.30.0030.01218.56
8.3.20.0000.00720.34
8.3.10.0080.00021.91
8.3.00.0080.00019.81
8.2.180.0100.00725.92
8.2.170.0090.00618.91
8.2.160.0120.00922.96
8.2.150.0050.00324.18
8.2.140.0050.00324.66
8.2.130.0070.00026.16
8.2.120.0040.00420.98
8.2.110.0090.00022.28
8.2.100.0070.00417.84
8.2.90.0000.00817.91
8.2.80.0030.00519.28
8.2.70.0080.00018.03
8.2.60.0080.00018.03
8.2.50.0040.00418.10
8.2.40.0000.00820.65
8.2.30.0080.00021.05
8.2.20.0040.00417.86
8.2.10.0000.00718.12
8.2.00.0040.00418.11
8.1.280.0040.01425.92
8.1.270.0050.00223.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00323.77
8.1.230.0040.00822.75
8.1.220.0080.00017.78
8.1.210.0000.00818.77
8.1.200.0030.00617.35
8.1.190.0040.00417.22
8.1.180.0000.00818.10
8.1.170.0040.00418.55
8.1.160.0000.00722.20
8.1.150.0040.00418.89
8.1.140.0040.00419.47
8.1.130.0000.00717.74
8.1.120.0030.00317.44
8.1.110.0000.00717.28
8.1.100.0050.00217.46
8.1.90.0080.00217.44
8.1.80.0000.00817.38
8.1.70.0030.00317.31
8.1.60.0080.00017.44
8.1.50.0060.00317.41
8.1.40.0000.01217.48
8.1.30.0040.00417.48
8.1.20.0040.00417.60
8.1.10.0040.00417.57
8.1.00.0000.00817.37
8.0.300.0000.00720.00
8.0.290.0050.00216.63
8.0.280.0040.00418.38
8.0.270.0030.00317.26
8.0.260.0060.00017.26
8.0.250.0000.00817.03
8.0.240.0030.00316.95
8.0.230.0000.00716.93
8.0.220.0000.00716.89
8.0.210.0030.00316.82
8.0.200.0060.00017.02
8.0.190.0030.00616.83
8.0.180.0040.00816.92
8.0.170.0080.00016.88
8.0.160.0000.00716.86
8.0.150.0040.00416.96
8.0.140.0040.00416.82
8.0.130.0000.00513.28
8.0.120.0000.00816.87
8.0.110.0040.00416.89
8.0.100.0040.00416.88
8.0.90.0040.00416.91
8.0.80.0080.00816.84
8.0.70.0040.00416.76
8.0.60.0040.00416.95
8.0.50.0030.00516.93
8.0.30.0130.00717.23
8.0.20.0100.00917.40
8.0.10.0050.00316.89
8.0.00.0130.00416.77
7.4.330.0050.00015.08
7.4.320.0000.00616.44
7.4.300.0030.00316.36
7.4.290.0030.00316.44
7.4.280.0050.00316.40
7.4.270.0030.00316.53
7.4.260.0000.00616.39
7.4.250.0000.00716.40
7.4.240.0070.00016.55
7.4.230.0030.00316.24
7.4.220.0110.00816.45
7.4.210.0080.00916.59
7.4.200.0030.00316.32
7.4.160.0150.00216.51
7.4.150.0130.00517.40
7.4.140.0100.00717.86
7.4.130.0120.00716.45
7.4.120.0110.00516.44
7.4.110.0110.00716.60
7.4.100.0070.01016.67
7.4.90.0110.00716.51
7.4.80.0120.00619.39
7.4.70.0040.01216.61
7.4.60.0100.00716.51
7.4.50.0070.00716.36
7.4.40.0070.01216.31
7.4.30.0100.00716.46
7.4.00.0050.01214.92
7.3.330.0030.00313.10
7.3.320.0000.00613.13
7.3.310.0000.00716.19
7.3.300.0030.00316.30
7.3.290.0030.00316.16
7.3.280.0060.01316.26
7.3.270.0120.01217.40
7.3.260.0110.00516.41
7.3.250.0110.00616.25
7.3.240.0140.00516.43
7.3.230.0110.00616.57
7.3.210.0000.01616.31
7.3.200.0140.00616.29
7.3.190.0060.00916.44
7.3.180.0060.01116.57
7.3.170.0140.01116.27
7.3.160.0110.00716.38
7.3.120.0030.00814.84
7.3.110.0100.00814.85
7.3.100.0070.00714.85
7.3.90.0030.00814.63
7.3.80.0080.00314.79
7.3.70.0030.01014.78
7.3.60.0040.00914.77
7.3.50.0090.00414.73
7.3.40.0040.00914.73
7.3.30.0040.01114.76
7.3.20.0100.00316.57
7.3.10.0070.00416.64
7.3.00.0060.00816.55
7.2.330.0130.00416.26
7.2.320.0060.01316.49
7.2.310.0070.01016.36
7.2.300.0070.01016.50
7.2.290.0100.01516.58
7.2.250.0050.01214.87
7.2.240.0050.01514.78
7.2.230.0030.01214.81
7.2.220.0060.00815.00
7.2.210.0050.00814.84
7.2.200.0070.00715.00
7.2.190.0080.00514.92
7.2.180.0090.00414.95
7.2.170.0040.00914.87
7.2.130.0070.00716.91
7.2.120.0060.00616.95
7.2.110.0070.00316.84
7.2.100.0070.00717.02
7.2.90.0030.00916.93
7.2.80.0030.01016.97
7.2.70.0030.01016.91
7.2.60.0040.01016.96
7.2.50.0000.01016.87
7.2.40.0100.00316.85
7.2.30.0000.01416.71
7.2.20.0040.00416.88
7.2.10.0070.00716.84
7.2.00.0040.00817.88
7.1.330.0030.01215.72
7.1.320.0070.00515.65
7.1.310.0030.00815.74
7.1.300.0040.00915.69
7.1.290.0070.00715.69
7.1.280.0040.00915.66
7.1.270.0050.00715.56
7.1.260.0060.00515.88
7.1.250.0030.01315.75
7.1.200.0070.00315.86
7.1.70.0100.00317.04
7.1.60.0070.00319.45
7.1.00.0100.07022.30
7.0.200.0000.00816.75
7.0.90.0870.05020.00
7.0.80.0830.05719.95
7.0.70.0170.05320.06
7.0.60.0100.06019.82
7.0.50.0070.08020.32
7.0.40.0170.05320.25
7.0.30.0100.06320.32
7.0.20.0100.06320.27
7.0.10.0170.05320.38
7.0.00.0000.07320.33
5.6.230.0130.06720.80
5.6.220.0070.06720.64
5.6.210.0200.05020.68
5.6.200.0200.05721.17
5.6.190.0070.06321.09
5.6.180.0200.05021.05
5.6.170.0030.06721.07
5.6.160.0170.05321.06
5.6.150.0170.05721.06
5.6.140.0170.05021.07
5.6.130.0170.05721.06
5.6.120.0070.06721.16
5.6.110.0230.05021.07
5.6.100.0130.05721.00
5.6.90.0130.05721.07
5.6.80.0100.05720.51
5.6.70.0100.06020.44
5.6.60.0100.06020.44
5.6.50.0130.05720.46
5.6.40.0200.04720.37
5.6.30.0170.05020.40
5.6.20.0030.07020.51
5.6.10.0200.05320.48
5.6.00.0100.05320.53

preferences:
59.84 ms | 400 KiB | 5 Q