3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "abc"; var_dump($str[0]);

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.1.70.0030.00317.35
8.1.60.0040.00417.52
8.1.50.0030.00617.36
8.1.40.0040.00417.35
8.1.30.0000.00817.39
8.1.20.0040.00417.61
8.1.10.0070.00017.47
8.1.00.0080.00017.45
8.0.200.0030.00316.76
8.0.190.0080.00016.88
8.0.180.0000.00716.75
8.0.170.0000.00716.82
8.0.160.0000.00716.85
8.0.150.0000.00816.79
8.0.140.0070.00016.69
8.0.130.0000.00613.30
8.0.120.0040.00416.75
8.0.110.0040.00416.72
8.0.100.0080.00016.77
8.0.90.0000.00716.79
8.0.80.0090.00716.81
8.0.70.0000.00816.67
8.0.60.0040.00416.71
8.0.50.0000.00716.85
8.0.30.0050.01417.13
8.0.20.0100.01217.40
8.0.10.0000.00816.77
8.0.00.0080.00816.69
7.4.300.0000.00616.35
7.4.290.0070.00016.45
7.4.280.0060.00316.50
7.4.270.0040.00416.45
7.4.260.0060.00016.51
7.4.250.0000.00716.50
7.4.240.0050.00216.42
7.4.230.0030.00316.24
7.4.220.0110.01116.55
7.4.210.0110.00316.49
7.4.200.0030.00316.45
7.4.190.0030.00316.52
7.4.160.0060.00916.65
7.4.150.0070.01017.40
7.4.140.0150.01017.86
7.4.130.0100.01016.36
7.4.120.0120.00616.57
7.4.110.0140.00416.61
7.4.100.0070.01416.30
7.4.90.0100.00616.38
7.4.80.0120.00619.39
7.4.70.0120.00916.34
7.4.60.0120.00416.39
7.4.50.0040.00416.36
7.4.40.0070.00722.77
7.4.30.0110.00816.43
7.4.00.0030.01414.61
7.3.330.0050.00013.00
7.3.320.0030.00313.03
7.3.310.0000.00816.04
7.3.300.0000.00716.20
7.3.290.0070.00716.24
7.3.280.0060.00816.19
7.3.270.0030.01317.40
7.3.260.0070.01016.28
7.3.250.0120.00516.41
7.3.240.0060.01016.29
7.3.230.0130.00316.46
7.3.210.0120.00416.18
7.3.200.0090.00616.54
7.3.190.0080.00816.22
7.3.180.0030.01216.09
7.3.170.0080.01216.30
7.3.160.0110.00516.36
7.3.120.0080.00514.82
7.3.10.0080.00815.91
7.3.00.0070.00715.87
7.2.330.0160.00316.37
7.2.320.0090.00916.49
7.2.310.0110.00716.43
7.2.300.0100.00716.52
7.2.290.0140.00316.60
7.2.130.0090.00615.90
7.2.120.0050.00916.26
7.2.110.0130.00616.08
7.2.100.0180.00316.39
7.2.90.0100.00315.94
7.2.80.0050.01116.16
7.2.70.0070.01116.47
7.2.60.0080.00616.55
7.2.50.0110.01116.07
7.2.40.0060.01616.04
7.2.30.0110.01116.13
7.2.20.0130.01016.25
7.2.10.0150.01216.75
7.2.00.0170.00517.93
7.1.250.0190.00315.30
7.1.200.0060.00315.68
7.1.100.0000.00818.27
7.1.70.0000.00816.95
7.1.60.0130.01019.46
7.1.50.0070.01416.78
7.1.00.0030.07722.27
7.0.200.0040.00416.63
7.0.140.0070.06721.96
7.0.60.0100.07719.93
7.0.50.0070.06717.80
7.0.40.0070.09020.09
7.0.30.0270.07720.20
7.0.20.0270.07020.11
7.0.10.0070.05720.12
7.0.00.0030.08720.19
5.6.280.0000.07721.11
5.6.210.0030.08320.64
5.6.200.0030.08718.09
5.6.190.0100.08720.56
5.6.180.0100.05020.60
5.6.170.0230.03720.52
5.6.160.0000.05320.71
5.6.150.0070.06018.07
5.6.140.0070.08018.12
5.6.130.0070.08018.14
5.6.120.0070.04320.99
5.6.110.0200.07321.11
5.6.100.0070.09320.97
5.6.90.0100.07720.99
5.6.80.0130.06020.53
5.6.70.4100.04320.37
5.5.350.0070.08720.39
5.5.340.0000.04017.92
5.5.330.0100.06720.25
5.5.320.0070.03720.35
5.5.310.0200.08020.20
5.5.300.0130.03017.98
5.5.290.0100.03717.96
5.5.280.0270.06720.77
5.5.270.0170.07320.78
5.5.260.0030.07720.79
5.5.250.0000.04720.77
5.5.240.0230.07720.16
5.4.450.0130.07319.47
5.4.440.0970.06019.42
5.4.430.0930.05019.63
5.4.420.0700.00019.44
5.4.410.0100.06018.83
5.4.400.0200.05718.50
5.4.390.0200.05318.59
5.4.380.0100.05718.46
5.4.370.0200.03318.59
5.4.360.0000.05318.52
5.4.350.0060.04011.97
5.4.340.0120.04311.97
5.4.320.0060.03712.45
5.4.310.0080.05412.45
5.4.300.0020.04112.45
5.4.290.0040.04212.43
5.4.280.0130.04612.33
5.4.270.0090.04412.33
5.4.260.0130.05012.33
5.4.250.0070.05212.33
5.4.240.0100.04412.33
5.4.230.0090.04212.32
5.4.220.0070.04012.32
5.4.210.0120.04412.32
5.4.200.0040.05612.32
5.4.190.0110.05112.32
5.4.180.0080.03612.32
5.4.170.0130.03412.33
5.4.160.0060.03812.33
5.4.150.0080.05612.32
5.4.140.0100.05112.00
5.4.130.0080.04512.00
5.4.120.0110.04511.95
5.4.110.0080.05011.95
5.4.100.0080.03411.95
5.4.90.0050.03811.95
5.4.80.0080.03511.95
5.4.70.0060.03511.95
5.4.60.0070.03411.95
5.4.50.0060.03611.95
5.4.40.0040.04211.94
5.4.30.0060.03711.93
5.4.20.0040.04311.93
5.4.10.0160.03711.93
5.4.00.0120.05811.42
5.3.290.0060.04012.80
5.3.280.0100.04312.71
5.3.270.0040.06012.73
5.3.260.0060.05512.72
5.3.250.0080.04512.72
5.3.240.0120.04612.72
5.3.230.0080.04412.70
5.3.220.0080.04012.68
5.3.210.0040.04312.68
5.3.200.0100.03512.68
5.3.190.0060.04512.68
5.3.180.0080.03712.67
5.3.170.0040.04312.67
5.3.160.0090.04312.67
5.3.150.0050.04712.67
5.3.140.0100.04612.66
5.3.130.0050.04612.65
5.3.120.0060.05712.66
5.3.110.0050.04212.66
5.3.100.0080.03712.12
5.3.90.0090.04612.08
5.3.80.0100.04612.07
5.3.70.0060.04012.07
5.3.60.0070.03812.07
5.3.50.0060.03912.00
5.3.40.0050.04112.00
5.3.30.0070.04211.94
5.3.20.0060.04611.71
5.3.10.0050.03811.69
5.3.00.0060.03911.68
5.2.170.0060.0329.18
5.2.160.0050.0319.17
5.2.150.0050.0329.17
5.2.140.0100.0299.17
5.2.130.0080.0289.13
5.2.120.0090.0319.13
5.2.110.0090.0319.14
5.2.100.0070.0299.13
5.2.90.0050.0349.14
5.2.80.0170.0679.13
5.2.70.0050.0379.13
5.2.60.0050.0419.09
5.2.50.0070.0389.05
5.2.40.0030.0389.02
5.2.30.0040.0349.01
5.2.20.0100.0459.00
5.2.10.0080.0338.91
5.2.00.0030.0338.77
5.1.60.0050.0368.06
5.1.50.0070.0378.05
5.1.40.0060.0318.04
5.1.30.0070.0268.39
5.1.20.0040.0348.41
5.1.10.0030.0298.13
5.1.00.0040.0288.13
5.0.50.0050.0216.61
5.0.40.0050.0196.47
5.0.30.0010.0366.28
5.0.20.0090.0226.25
5.0.10.0030.0246.23
5.0.00.0070.0326.22
4.4.90.0050.0194.78
4.4.80.0060.0254.75
4.4.70.0040.0254.75
4.4.60.0070.0234.76
4.4.50.0080.0244.77
4.4.40.0240.0764.70
4.4.30.0040.0164.76
4.4.20.0050.0154.85
4.4.10.0050.0144.85
4.4.00.0030.0274.76
4.3.110.0040.0154.67
4.3.100.0040.0184.66
4.3.90.0060.0314.63
4.3.80.0090.0464.58
4.3.70.0080.0424.63
4.3.60.0030.0194.63
4.3.50.0040.0154.63
4.3.40.0070.0244.54
4.3.30.0040.0283.28
4.3.20.0020.0193.25
4.3.10.0020.0313.22
4.3.00.0170.0276.80

preferences:
12.6 ms | 406 KiB | 5 Q