3v4l.org

run code in 300+ PHP versions simultaneously
<?php $strings = array("0001","0000","0010"); $length = strlen($strings[0]); echo $length;

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.0090.01218.18
8.3.50.0080.00821.14
8.3.40.0140.00318.63
8.3.30.0090.00920.23
8.3.20.0040.00420.16
8.3.10.0040.00422.09
8.3.00.0070.00022.52
8.2.180.0090.00916.38
8.2.170.0080.00622.96
8.2.160.0070.00722.26
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0030.00626.16
8.2.120.0080.00019.79
8.2.110.0030.00622.13
8.2.100.0000.01119.16
8.2.90.0040.00419.17
8.2.80.0020.00519.22
8.2.70.0060.00317.47
8.2.60.0080.00017.93
8.2.50.0030.00618.07
8.2.40.0000.00718.34
8.2.30.0040.00418.10
8.2.20.0040.00417.77
8.2.10.0050.00217.67
8.2.00.0060.00317.73
8.1.280.0140.00425.92
8.1.270.0220.00320.43
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0050.00523.96
8.1.230.0080.00419.09
8.1.220.0000.00817.79
8.1.210.0000.00918.77
8.1.200.0000.00917.23
8.1.190.0040.00417.50
8.1.180.0040.00418.43
8.1.170.0040.00418.46
8.1.160.0030.00322.06
8.1.150.0040.00418.61
8.1.140.0000.00717.22
8.1.130.0030.00317.72
8.1.120.0030.00317.46
8.1.110.0000.00817.45
8.1.100.0030.00517.28
8.1.90.0040.00417.35
8.1.80.0000.00717.38
8.1.70.0030.00317.36
8.1.60.0030.00617.50
8.1.50.0040.00417.38
8.1.40.0000.00717.41
8.1.30.0000.00817.57
8.1.20.0000.00717.48
8.1.10.0000.00817.46
8.1.00.0050.00217.54
8.0.300.0040.00418.77
8.0.290.0070.00017.05
8.0.280.0070.00018.44
8.0.270.0070.00017.32
8.0.260.0000.00618.43
8.0.250.0050.00216.87
8.0.240.0050.00316.85
8.0.230.0040.00416.93
8.0.220.0030.00516.86
8.0.210.0000.00716.82
8.0.200.0000.00616.79
8.0.190.0040.00416.86
8.0.180.0030.00516.85
8.0.170.0070.00016.89
8.0.160.0030.00316.75
8.0.150.0030.00316.82
8.0.140.0030.00316.73
8.0.130.0030.00313.25
8.0.120.0040.00416.76
8.0.110.0000.00816.84
8.0.100.0070.00016.61
8.0.90.0000.00716.80
8.0.80.0070.01416.75
8.0.70.0070.00016.78
8.0.60.0000.00716.77
8.0.50.0000.00716.93
8.0.30.0090.00916.96
8.0.20.0100.01017.40
8.0.10.0000.00717.00
8.0.00.0100.01016.68
7.4.330.0000.00515.00
7.4.320.0050.00216.44
7.4.300.0030.00316.52
7.4.290.0030.00316.57
7.4.280.0030.00316.51
7.4.270.0030.00316.52
7.4.260.0060.00316.27
7.4.250.0020.00516.32
7.4.240.0000.00816.44
7.4.230.0040.00416.55
7.4.220.0130.00616.50
7.4.210.0100.00616.42
7.4.200.0070.00016.34
7.4.190.0000.00816.47
7.4.160.0120.00416.25
7.4.150.0030.01317.40
7.4.140.0080.00817.86
7.4.130.0140.00716.41
7.4.120.0120.00916.51
7.4.110.0040.01416.70
7.4.100.0040.01316.49
7.4.90.0110.00816.48
7.4.80.0100.00619.39
7.4.70.0100.01316.38
7.4.60.0100.01016.63
7.4.50.0030.00616.38
7.4.40.0070.01022.77
7.4.30.0080.00816.68
7.4.00.0070.00714.98
7.3.330.0050.00013.18
7.3.320.0000.00513.10
7.3.310.0030.00316.11
7.3.300.0070.00016.24
7.3.290.0130.00616.17
7.3.280.0100.00416.31
7.3.270.0070.01517.40
7.3.260.0110.00716.28
7.3.250.0100.01016.30
7.3.240.0060.01316.61
7.3.230.0100.00716.50
7.3.210.0120.00416.46
7.3.200.0120.01219.39
7.3.190.0110.01116.28
7.3.180.0170.00316.54
7.3.170.0070.01016.37
7.3.160.0000.01516.39
7.3.120.0060.01114.79
7.3.110.0060.00614.67
7.3.100.0000.01814.85
7.3.90.0060.01014.80
7.3.80.0060.00914.46
7.3.70.0030.01414.89
7.3.60.0100.00314.55
7.3.50.0040.00414.75
7.3.40.0080.00414.64
7.3.30.0000.01714.73
7.3.20.0060.01016.77
7.3.10.0060.00316.46
7.3.00.0080.00416.52
7.2.330.0150.00316.45
7.2.320.0100.01016.64
7.2.310.0070.01016.42
7.2.300.0090.00916.54
7.2.290.0130.00316.54
7.2.250.0140.00415.09
7.2.240.0100.01014.82
7.2.230.0030.01514.95
7.2.220.0120.00414.84
7.2.210.0030.01014.98
7.2.200.0070.01014.74
7.2.190.0030.01114.89
7.2.180.0070.01015.03
7.2.170.0070.00714.92
7.2.00.0100.00319.28
7.1.330.0070.00715.69
7.1.320.0000.01415.60
7.1.310.0130.00015.82
7.1.300.0040.00715.79
7.1.290.0080.00515.62
7.1.280.0080.00415.75
7.1.270.0060.00615.72
7.1.260.0080.00415.54
7.1.100.0030.00817.95
7.1.70.0030.00817.21
7.1.60.0130.01019.40
7.1.50.0040.01816.95
7.1.00.0030.03722.33
7.0.200.0020.00516.52
7.0.140.0100.06322.13
7.0.60.0100.08319.92
7.0.50.0100.07017.80
7.0.40.0000.05019.98
7.0.30.0500.07020.08
7.0.20.0270.05320.16
7.0.10.0170.05020.13
7.0.00.0100.08720.16
5.6.280.0070.07020.77
5.6.210.0170.06020.74
5.6.200.0130.08018.22
5.6.190.0070.08720.60
5.6.180.0330.05320.25
5.6.170.0400.07020.51
5.6.160.0070.08320.51
5.6.150.0030.04018.16
5.6.140.0100.08018.20
5.6.130.0070.04318.18
5.6.120.0130.06721.00
5.6.110.0030.04021.13
5.6.100.0030.06720.97
5.6.90.0030.08320.87
5.6.80.0030.04320.27
5.6.70.0330.07320.38
5.5.350.0200.05020.38
5.5.340.0000.05317.93
5.5.330.0100.08320.20
5.5.320.0400.06320.07
5.5.310.0330.07020.28
5.5.300.0030.04318.00
5.5.290.0100.07718.00
5.5.280.0100.04320.96
5.5.270.0030.06720.64
5.5.260.0070.08320.67
5.5.250.0170.07720.67
5.5.240.0070.08720.22
5.4.450.1830.03319.57
5.4.440.1770.04319.38
5.4.430.1800.05019.54
5.4.420.1530.04319.25
5.4.410.1870.04319.36
5.4.400.1870.07019.13
5.4.390.1930.04019.13
5.4.380.1870.04319.06
5.4.370.1830.04719.25
5.4.360.1870.04319.08
5.4.350.1700.04319.16
5.4.340.1700.04019.10
5.4.320.1830.04019.16
5.4.310.1630.03319.16
5.4.300.1630.03718.80
5.4.290.1800.04718.80
5.4.280.1700.04718.95
5.4.270.1900.03719.08
5.4.260.1830.04319.21
5.4.250.1830.04719.13
5.4.240.1570.03718.91
5.4.230.1800.05018.79
5.4.220.1500.04719.05
5.4.210.1930.03718.92
5.4.200.1900.04019.15
5.4.190.1970.03319.22
5.4.180.1730.03719.24
5.4.170.1770.04319.12
5.4.160.1900.04018.86
5.4.150.1830.04719.11
5.4.140.1600.03716.20
5.4.130.1970.03716.16
5.4.120.1870.06016.43
5.4.110.1770.04016.39
5.4.100.1870.03716.45
5.4.90.1830.04016.39
5.4.80.1870.03016.39
5.4.70.1600.03716.37
5.4.60.1600.03716.16
5.4.50.1630.03316.36
5.4.40.1600.03716.43
5.4.30.2000.03316.20
5.4.20.1900.04716.19
5.4.10.1870.04316.36
5.4.00.1900.04715.82
5.3.290.1830.05014.57
5.3.280.1700.03314.43
5.3.270.1670.03714.54
5.3.260.1870.03714.51
5.3.250.1670.03314.59
5.3.240.1970.04314.62
5.3.230.1930.05014.54
5.3.220.1900.04314.41
5.3.210.1900.05314.39
5.3.200.1830.04014.39
5.3.190.1900.04314.43
5.3.180.1900.04314.50
5.3.170.1670.03014.50
5.3.160.1670.03314.41
5.3.150.1770.03314.41
5.3.140.1770.03314.39
5.3.130.1670.03714.52
5.3.120.1500.04314.49
5.3.110.1870.04014.49
5.3.100.1830.03714.08
5.3.90.1800.04713.92
5.3.80.1630.03714.06
5.3.70.1470.04713.96
5.3.60.1870.03714.05
5.3.50.1870.04313.78
5.3.40.1800.04313.78
5.3.30.1800.04013.92
5.3.20.1830.03713.55
5.3.10.1600.03013.53
5.3.00.1970.03713.48
5.2.170.1500.04311.23
5.2.160.1500.03710.99
5.2.150.1270.03311.03
5.2.140.1500.03711.08
5.2.130.1530.03711.17
5.2.120.1470.03010.95
5.2.110.1300.03310.94
5.2.100.1600.02711.15
5.2.90.1570.03311.04
5.2.80.1400.03311.14
5.2.70.1530.04011.10
5.2.60.1570.03311.05
5.2.50.1330.03011.06
5.2.40.0970.03710.85
5.2.30.1430.02010.98
5.2.20.1130.03011.00
5.2.10.1100.02310.76
5.2.00.1230.03710.80
5.1.60.1100.02310.76
5.1.50.1030.02310.76
5.1.40.1300.03010.76
5.1.30.1100.02710.76
5.1.20.1300.03310.76
5.1.10.1230.04010.76
5.1.00.1170.02310.76
5.0.50.0400.03710.76
5.0.40.0700.03310.76
5.0.30.0570.03310.76
5.0.20.0700.03310.76
5.0.10.0670.01710.76
5.0.00.0600.03010.76
4.4.90.0870.02310.76
4.4.80.0670.01710.76
4.4.70.0630.01310.76
4.4.60.0730.02010.76
4.4.50.0730.02310.76
4.4.40.0800.03010.76
4.4.30.0730.02310.76
4.4.20.0700.02010.76
4.4.10.0530.02010.76
4.4.00.0670.04010.76
4.3.110.0830.02710.76
4.3.100.0500.01710.76
4.3.90.0500.01710.76
4.3.80.0630.03310.76
4.3.70.0600.02310.76
4.3.60.0530.01710.76
4.3.50.0700.02710.76
4.3.40.0730.03710.76
4.3.30.0430.02710.76
4.3.20.0300.01310.76
4.3.10.0330.01010.76
4.3.00.0330.02010.76

preferences:
40.48 ms | 401 KiB | 5 Q