3v4l.org

run code in 300+ PHP versions simultaneously
<?php $stringa = "fooooo"; $stringb = "baaaar"; var_dump($stringa[1]); $twostrings = [$stringa, $stringb]; var_dump($twostrings[1]);

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.0150.00618.71
8.3.30.0070.01020.21
8.3.20.0040.00420.10
8.3.10.0050.00322.09
8.3.00.0040.00422.45
8.2.170.0130.00722.96
8.2.160.0110.00721.83
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0040.00419.36
8.2.110.0060.00320.47
8.2.100.0040.00817.78
8.2.90.0030.00617.63
8.2.80.0060.00318.79
8.2.70.0030.00517.63
8.2.60.0050.00317.93
8.2.50.0030.00718.07
8.2.40.0000.00818.22
8.2.30.0070.00318.03
8.2.20.0000.00717.72
8.2.10.0040.00417.76
8.2.00.0050.00317.73
8.1.270.0040.01124.66
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00620.65
8.1.230.0110.00021.04
8.1.220.0040.00417.74
8.1.210.0030.00618.77
8.1.200.0000.00817.34
8.1.190.0000.00917.65
8.1.180.0040.00418.10
8.1.170.0070.00018.58
8.1.160.0000.00820.98
8.1.150.0000.00718.62
8.1.140.0000.00717.37
8.1.130.0030.00317.70
8.1.120.0000.00717.43
8.1.110.0040.00417.43
8.1.100.0030.00517.45
8.1.90.0070.00017.27
8.1.80.0030.00317.39
8.1.70.0030.00317.32
8.1.60.0060.00317.58
8.1.50.0080.00017.38
8.1.40.0040.00417.49
8.1.30.0000.00817.64
8.1.20.0030.00517.63
8.1.10.0040.00417.66
8.1.00.0030.00617.36
8.0.300.0070.00018.77
8.0.290.0050.00216.63
8.0.280.0020.00518.40
8.0.270.0000.00717.16
8.0.260.0000.00616.82
8.0.250.0000.00716.97
8.0.240.0030.00516.85
8.0.230.0040.00316.82
8.0.220.0000.00816.87
8.0.210.0070.00016.92
8.0.200.0070.00016.92
8.0.190.0040.00416.93
8.0.180.0000.00816.91
8.0.170.0040.00416.83
8.0.160.0070.00016.86
8.0.150.0050.00316.85
8.0.140.0040.00316.89
8.0.130.0030.00313.28
8.0.120.0040.00416.88
8.0.110.0040.00416.91
8.0.100.0040.00416.75
8.0.90.0000.00716.71
8.0.80.0040.01116.84
8.0.70.0070.00016.83
8.0.60.0040.00416.99
8.0.50.0000.00816.94
8.0.30.0090.00917.15
8.0.20.0100.00817.40
8.0.10.0040.00416.96
8.0.00.0090.00916.77
7.4.330.0020.00215.00
7.4.320.0030.00316.48
7.4.300.0000.00616.54
7.4.290.0030.00316.63
7.4.280.0040.00416.62
7.4.270.0030.00316.59
7.4.260.0060.00316.48
7.4.250.0000.00716.54
7.4.240.0000.00716.48
7.4.230.0080.00016.40
7.4.220.0120.01216.54
7.4.210.0050.01016.55
7.4.200.0000.00716.34
7.4.190.0070.00016.59
7.4.160.0090.00616.47
7.4.150.0130.00317.40
7.4.140.0100.00717.86
7.4.130.0100.01016.38
7.4.120.0100.00616.45
7.4.110.0100.01316.46
7.4.100.0110.00616.54
7.4.90.0100.00716.49
7.4.80.0030.01319.39
7.4.70.0120.00616.54
7.4.60.0140.00616.34
7.4.50.0000.00816.49
7.4.40.0110.00722.77
7.4.30.0050.01316.14
7.4.00.0000.01615.13
7.3.330.0020.00213.01
7.3.320.0020.00213.07
7.3.310.0040.00416.27
7.3.300.0000.00716.22
7.3.290.0060.00916.42
7.3.280.0070.00816.22
7.3.270.0130.00617.40
7.3.260.0040.01216.29
7.3.250.0110.00716.32
7.3.240.0050.01216.57
7.3.230.0090.01216.47
7.3.210.0120.00616.48
7.3.200.0030.02019.39
7.3.190.0120.00616.29
7.3.180.0060.00916.18
7.3.170.0090.00616.41
7.3.160.0080.00816.30
7.3.120.0090.00614.67
7.2.330.0030.01316.37
7.2.320.0060.01616.50
7.2.310.0060.01016.54
7.2.300.0100.00716.74
7.2.290.0120.00416.50
7.2.80.0100.00716.56
7.2.00.0040.01119.11
7.1.200.0000.01515.96
7.1.100.0040.00718.36
7.1.70.0000.00917.09
7.1.60.0090.01619.32
7.1.50.0070.01717.03
7.1.00.0030.03322.35
7.0.200.0130.00714.66
7.0.140.0000.07722.16
7.0.80.0630.06720.00
7.0.70.0570.06319.98
7.0.60.0500.04019.90
7.0.50.0500.05020.39
7.0.40.0000.06319.96
7.0.30.0100.06720.13
7.0.20.0070.05720.00
7.0.10.0100.05720.08
7.0.00.0070.06020.14
5.6.280.0070.06721.03
5.6.230.0130.07720.62
5.6.220.0030.04320.64
5.6.210.0070.08020.75
5.6.200.0170.04721.09
5.6.190.0000.08021.03
5.6.180.0030.06020.98
5.6.170.0170.08021.04
5.6.160.0030.08021.07
5.6.150.0070.05721.10
5.6.140.0070.08721.11
5.6.130.0030.05720.95
5.6.120.0100.05721.04
5.6.110.0070.04721.02
5.6.100.0100.07021.02
5.6.90.0100.05321.14
5.6.80.0130.07320.46
5.6.70.0000.07320.50
5.6.60.0070.04320.49
5.6.50.0100.05720.38
5.6.40.0070.07720.29
5.6.30.0100.07320.41
5.6.20.0170.05020.30
5.6.10.0100.08320.44
5.6.00.0070.05320.36
5.5.370.0100.07720.34
5.5.360.0000.05020.46
5.5.350.0100.06320.36
5.5.340.0070.08320.79
5.5.330.0030.05720.88
5.5.320.0200.07020.82
5.5.310.0070.04720.88
5.5.300.0070.07720.92
5.5.290.0030.08720.88
5.5.280.0170.04320.78
5.5.270.0000.08020.92
5.5.260.0100.08020.88
5.5.250.0130.07320.70
5.5.240.0130.04720.25
5.5.230.0000.06320.17
5.5.220.0030.07720.21
5.5.210.0030.04320.24
5.5.200.0100.05320.07
5.5.190.0000.05020.16
5.5.180.0130.07020.17
5.5.160.0030.05020.14
5.5.150.0030.05320.22
5.5.140.0030.04720.24
5.5.130.0100.07320.22
5.5.120.0100.07320.13
5.5.110.0070.04720.23
5.5.100.0130.07720.07
5.5.90.0030.06020.05
5.5.80.0100.04720.12
5.5.70.0030.05320.05
5.5.60.0100.08320.18
5.5.50.0070.05720.05
5.5.40.0070.06720.07
5.5.30.0030.05020.07
5.5.20.0130.07020.01
5.5.10.0130.07720.11
5.5.00.0170.06020.10
5.4.450.0130.05319.55
5.4.440.0000.05319.47
5.4.430.0100.07719.46
5.4.420.0030.05019.50
5.4.410.0070.05019.29
5.4.400.0030.05319.23
5.4.390.0170.06719.07
5.4.380.0000.04319.14
5.4.370.0030.06719.09
5.4.360.0130.03319.03
5.4.350.0070.03719.10
5.4.340.0070.06718.98
5.4.320.0070.06719.23
5.4.310.0030.08018.81
5.4.300.0170.06718.94
5.4.290.0100.06719.02
5.4.280.0030.04719.23
5.4.270.0170.06318.78
5.4.260.0100.07019.03
5.4.250.0130.07319.02
5.4.240.0130.06719.08
5.4.230.0030.04319.11
5.4.220.0070.05718.94
5.4.210.0130.06718.88
5.4.200.0100.05018.91
5.4.190.0030.04719.02
5.4.180.0100.06318.93
5.4.170.0100.04319.03
5.4.160.0070.05019.06
5.4.150.0130.03018.92
5.4.140.0030.06016.37
5.4.130.0070.07316.27
5.4.120.0070.07316.05
5.4.110.0100.03016.21
5.4.100.0130.02716.23
5.4.90.0100.07316.41
5.4.80.0170.04316.19
5.4.70.0070.07716.40
5.4.60.0100.04016.24
5.4.50.0130.03716.18
5.4.40.0000.04016.29
5.4.30.0030.07716.28
5.4.20.0070.06716.39
5.4.10.0000.05016.29
5.4.00.0030.07715.73
5.3.290.0130.05314.64
5.3.280.0100.07314.56
5.3.270.0000.08014.47
5.3.260.0000.08714.44
5.3.250.0070.08014.59
5.3.240.0070.05714.59
5.3.230.0070.07314.55
5.3.220.0000.05014.54
5.3.210.0030.04714.53
5.3.200.0030.04014.50
5.3.190.0070.07314.57
5.3.180.0070.04314.55
5.3.170.0030.08014.43
5.3.160.0070.04014.40
5.3.150.0030.04014.57
5.3.140.0100.04714.52
5.3.130.0070.08014.55
5.3.120.0130.07014.41
5.3.110.0200.06714.41
5.3.100.0100.06713.88
5.3.90.0030.05313.96
5.3.80.0100.07313.98
5.3.70.0070.08014.01
5.3.60.0070.07013.99
5.3.50.0100.06713.88
5.3.40.0070.06013.91
5.3.30.0070.07313.87
5.3.20.0070.06713.55
5.3.10.0100.05713.52
5.3.00.0000.08313.63
5.2.170.0130.07011.95
5.2.160.0030.04011.95
5.2.150.0030.03711.95
5.2.140.0030.03711.95
5.2.130.0070.03711.95
5.2.120.0030.04311.95
5.2.110.0070.06311.95
5.2.100.0030.06011.95
5.2.90.0100.05311.95
5.2.80.0030.06311.95
5.2.70.0000.06711.95
5.2.60.0100.05711.95
5.2.50.0000.06311.95
5.2.40.0070.06311.95
5.2.30.0070.04011.95
5.2.20.0070.05711.95
5.2.10.0070.05711.95
5.2.00.0070.05711.95
5.1.60.0000.04011.95
5.1.50.0070.05311.95
5.1.40.0070.04311.95
5.1.30.0070.04011.95
5.1.20.0030.05711.95
5.1.10.0030.04311.95
5.1.00.0030.04311.95
5.0.50.0030.04311.95
5.0.40.0070.02311.95
5.0.30.0000.03311.95
5.0.20.0070.03011.95
5.0.10.0000.04711.95
5.0.00.0130.05011.95
4.4.90.0030.02711.95
4.4.80.0030.03711.95
4.4.70.0030.02311.95
4.4.60.0000.03711.95
4.4.50.0000.03311.95
4.4.40.0070.04711.95
4.4.30.0030.03711.95
4.4.20.0000.02711.95
4.4.10.0030.01711.95
4.4.00.0000.05711.95
4.3.110.0000.03311.95
4.3.100.0000.03311.95
4.3.90.0070.02311.95
4.3.80.0030.03011.95
4.3.70.0030.03311.95
4.3.60.0000.03311.95
4.3.50.0000.04011.95
4.3.40.0000.03311.95
4.3.30.0030.03011.95
4.3.20.0000.02311.95
4.3.10.0000.02311.95
4.3.00.0030.03311.95

preferences:
44 ms | 400 KiB | 5 Q