3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(substr('f', 257, 1), substr('f', -257, 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.4.20.0030.01617.36
8.4.10.0080.00817.38
8.3.150.0140.00017.22
8.3.140.0160.00316.57
8.3.130.0090.00016.49
8.3.120.0120.00320.33
8.3.110.0040.00418.49
8.3.100.0040.00418.12
8.3.90.0060.00326.77
8.3.80.0100.00016.50
8.3.70.0160.00018.18
8.3.60.0150.00716.63
8.3.50.0070.01521.14
8.3.40.0040.01118.46
8.3.30.0070.00718.64
8.3.20.0040.00420.21
8.3.10.0000.00821.72
8.3.00.0000.00819.55
8.2.270.0090.00916.92
8.2.260.0100.00716.29
8.2.250.0040.01216.35
8.2.240.0090.00017.21
8.2.230.0120.00420.94
8.2.220.0060.00324.06
8.2.210.0110.00426.77
8.2.200.0060.00318.29
8.2.190.0130.00718.29
8.2.180.0070.01116.32
8.2.170.0070.01022.96
8.2.160.0130.00321.02
8.2.150.0070.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00419.64
8.2.110.0060.00321.03
8.2.100.0040.00717.78
8.2.90.0060.00319.33
8.2.80.0000.00817.97
8.2.70.0090.00017.64
8.2.60.0040.00418.03
8.2.50.0040.00418.10
8.2.40.0000.00822.32
8.2.30.0020.00519.07
8.2.20.0040.00417.90
8.2.10.0000.00718.16
8.2.00.0050.00218.10
8.1.310.0100.00716.35
8.1.300.0130.00618.13
8.1.290.0030.00630.84
8.1.280.0040.01125.92
8.1.270.0050.00322.14
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0060.00317.39
8.1.230.0040.00822.66
8.1.220.0080.00019.11
8.1.210.0000.00818.77
8.1.200.0000.01217.23
8.1.190.0040.00417.10
8.1.180.0080.00018.10
8.1.170.0070.00018.74
8.1.160.0040.00418.61
8.1.150.0070.00020.06
8.1.140.0040.00419.48
8.1.130.0000.00818.91
8.1.120.0040.00417.31
8.1.110.0070.00017.31
8.1.100.0040.00417.20
8.1.90.0070.00017.30
8.1.80.0040.00417.35
8.1.70.0000.00617.36
8.1.60.0040.00417.45
8.1.50.0050.00217.38
8.1.40.0060.00317.36
8.1.30.0030.00617.39
8.1.20.0040.00417.40
8.1.10.0080.00017.39
8.1.00.0040.00417.31
8.0.300.0050.00321.56
8.0.290.0040.00416.58
8.0.280.0050.00318.30
8.0.270.0030.00517.00
8.0.260.0030.00319.04
8.0.250.0050.00316.71
8.0.240.0020.00516.80
8.0.230.0060.00316.78
8.0.220.0000.00716.65
8.0.210.0070.00016.61
8.0.200.0030.00316.72
8.0.190.0000.00716.79
8.0.180.0000.00716.70
8.0.170.0000.00716.80
8.0.160.0060.00316.86
8.0.150.0100.00016.64
8.0.140.0030.00616.77
8.0.130.0000.00613.18
8.0.120.0040.00416.61
8.0.110.0000.00716.80
8.0.100.0040.00416.70
8.0.90.0030.00516.71
8.0.80.0060.00916.68
8.0.70.0040.00416.61
8.0.60.0070.00016.70
8.0.50.0000.00716.78
8.0.30.0140.00716.90
8.0.20.0100.00817.40
8.0.10.0070.00016.86
8.0.00.0040.01416.50
7.4.330.0030.00315.55
7.4.320.0000.00616.37
7.4.300.0000.00716.46
7.4.290.0030.00316.44
7.4.280.0030.00616.48
7.4.270.0060.00016.46
7.4.260.0070.00016.39
7.4.250.0000.00716.31
7.4.240.0000.00716.48
7.4.230.0000.00816.39
7.4.220.0130.01016.52
7.4.210.0100.00716.40
7.4.200.0060.00316.37
7.4.160.0090.00816.38
7.4.150.0090.01217.40
7.4.140.0100.01017.86
7.4.130.0070.01216.37
7.4.120.0080.01216.37
7.4.110.0040.01216.30
7.4.100.0030.01716.34
7.4.90.0150.00616.34
7.4.80.0070.01719.39
7.4.70.0130.00416.45
7.4.60.0000.01516.47
7.4.50.0000.01516.06
7.4.40.0110.01116.57
7.4.30.0130.01016.49
7.4.10.0100.01014.65
7.4.00.0070.00814.90
7.3.330.0000.00512.98
7.3.320.0030.00313.01
7.3.310.0030.00316.17
7.3.300.0030.00316.07
7.3.290.0030.00316.03
7.3.280.0080.00916.12
7.3.270.0100.01017.40
7.3.260.0070.01316.20
7.3.250.0110.01116.14
7.3.240.0100.00716.31
7.3.230.0130.00316.07
7.3.210.0060.01116.37
7.3.200.0100.01316.25
7.3.190.0140.00316.11
7.3.180.0060.01116.35
7.3.170.0080.00816.23
7.3.160.0120.00916.36
7.3.130.0040.01414.73
7.3.120.0100.00814.55
7.3.110.0050.01114.33
7.3.100.0050.00814.53
7.3.90.0090.00414.78
7.3.80.0070.00714.57
7.3.70.0100.00514.65
7.3.60.0050.01014.49
7.3.50.0040.00814.56
7.3.40.0030.01214.46
7.3.30.0040.00714.65
7.3.20.0050.00716.41
7.3.10.0040.00816.40
7.3.00.0060.00816.40
7.2.330.0070.01016.33
7.2.320.0120.01116.42
7.2.310.0100.00616.32
7.2.300.0150.00616.11
7.2.290.0030.01816.41
7.2.260.0090.00914.63
7.2.250.0120.00514.93
7.2.240.0060.01014.67
7.2.230.0050.00914.90
7.2.220.0040.01014.77
7.2.210.0060.00914.72
7.2.200.0080.00814.88
7.2.190.0020.01414.83
7.2.180.0070.00414.65
7.2.170.0100.00514.75
7.2.160.0070.00814.60
7.2.150.0080.00516.62
7.2.140.0030.00816.38
7.2.130.0050.01116.53
7.2.120.0060.00916.48
7.2.110.0090.00516.58
7.2.100.0070.00716.46
7.2.90.0010.01116.58
7.2.80.0090.00516.62
7.2.70.0060.00816.71
7.2.60.0060.00816.73
7.2.50.0050.00916.66
7.2.40.0050.01016.59
7.2.30.0070.00716.64
7.2.20.0090.00516.62
7.2.10.0090.00716.68
7.2.00.0090.01017.00
7.1.330.0070.00915.49
7.1.320.0080.00715.52
7.1.310.0070.00515.44
7.1.300.0040.01015.29
7.1.290.0080.00515.39
7.1.280.0040.01015.63
7.1.270.0070.00315.49
7.1.260.0020.01015.51
7.1.250.0050.00615.65
7.1.240.0070.00415.44
7.1.230.0080.00515.68
7.1.220.0100.00315.37
7.1.210.0070.00715.51
7.1.200.0080.00615.63
7.1.190.0080.00515.51
7.1.180.0080.00615.46
7.1.170.0040.00915.71
7.1.160.0060.00715.52
7.1.150.0040.00715.56
7.1.140.0060.00815.62
7.1.130.0090.00415.62
7.1.120.0090.00715.86
7.1.110.0090.00815.68
7.1.100.0100.00815.61
7.1.90.0090.00715.54
7.1.80.0080.00815.67
7.1.70.0070.00615.64
7.1.60.0110.00819.33
7.1.50.0140.00519.25
7.1.40.0110.00619.18
7.1.30.0100.00818.94
7.1.20.0070.01019.14
7.1.10.0050.00815.48
7.1.00.0060.00815.51
7.0.330.0070.00615.02
7.0.320.0070.00514.93
7.0.310.0050.00815.24
7.0.300.0070.00615.13
7.0.290.0060.00615.15
7.0.280.0020.01015.14
7.0.270.0060.00615.19
7.0.260.0070.01015.47
7.0.250.0070.00815.30
7.0.240.0090.00915.34
7.0.230.0120.00715.33
7.0.220.0110.00515.11
7.0.210.0090.00615.01
7.0.200.0050.00815.39
7.0.190.0070.00715.33
7.0.180.0070.00615.26
7.0.170.0060.00915.18
7.0.160.0070.00615.18
7.0.150.0040.01115.14
7.0.140.0070.00615.19
7.0.130.0080.00815.27
7.0.120.0080.00915.31
7.0.110.0080.00615.25
7.0.100.0080.00615.14
7.0.90.0080.00615.30
7.0.80.0060.00915.22
7.0.70.0090.00715.13
7.0.60.0090.00615.09
7.0.50.0090.00515.37
7.0.40.0080.00613.82
7.0.30.0060.00813.76
7.0.20.0090.00413.76
7.0.10.0080.00613.76
7.0.00.0080.00713.77
5.6.400.0060.00514.29
5.6.390.0050.00614.04
5.6.380.0060.00613.81
5.6.370.0080.00514.12
5.6.360.0060.00514.09
5.6.350.0080.00714.17
5.6.340.0040.00814.10
5.6.330.0080.00514.16
5.6.320.0080.00714.03
5.6.310.0010.01214.11
5.6.300.0050.02516.81
5.6.290.0060.02416.80
5.6.280.0070.02416.94
5.6.270.0050.02616.89
5.6.260.0030.02516.72
5.6.250.0070.02216.86
5.6.240.0060.02716.77
5.6.230.0050.02816.71
5.6.220.0070.02416.74
5.6.210.0040.02516.86
5.6.200.0040.02816.81
5.6.190.0090.02316.82
5.6.180.0090.02116.73
5.6.170.0060.02416.67
5.6.160.0050.02416.76
5.6.150.0070.02416.79
5.6.140.0060.02416.71
5.6.130.0090.02316.67
5.6.120.0040.02516.85
5.6.110.0050.03516.66
5.6.100.0040.02716.69
5.6.90.0060.02416.75
5.6.80.0060.02216.41
5.6.70.0050.02916.52
5.6.60.0040.02916.43
5.6.50.0100.02616.41
5.6.40.0070.02316.46
5.6.30.0070.02116.42
5.6.20.0070.02316.45
5.6.10.0070.02016.31
5.6.00.0080.02116.44
5.5.380.0090.03115.30
5.5.370.0040.03515.29
5.5.360.0070.03315.28
5.5.350.0020.03615.25
5.5.340.0040.03715.63
5.5.330.0050.03215.60
5.5.320.0050.03915.63
5.5.310.0020.04315.60
5.5.300.0060.03715.54
5.5.290.0050.03515.66
5.5.280.0050.03815.60
5.5.270.0080.03515.61
5.5.260.0030.03615.48
5.5.250.0080.03315.41
5.5.240.0020.03615.19
5.5.230.0010.04315.25
5.5.220.0070.03115.19
5.5.210.0080.04215.20
5.5.200.0060.03015.14
5.5.190.0040.03815.16
5.5.180.0060.03515.17
5.5.170.0060.00310.90
5.5.160.0070.03515.20
5.5.150.0050.03215.09
5.5.140.0040.03615.23
5.5.130.0060.03015.23
5.5.120.0060.04515.02
5.5.110.0050.03815.23
5.5.100.0070.03315.11
5.5.90.0060.03314.98
5.5.80.0160.02715.17
5.5.70.0020.03415.13
5.5.60.0080.02815.00
5.5.50.0090.03015.09
5.5.40.0080.02815.02
5.5.30.0040.04415.12
5.5.20.0040.03615.07
5.5.10.0030.03815.15
5.5.00.0020.03415.13
5.4.450.0080.03516.58
5.4.440.0090.04516.54
5.4.430.0050.03416.47
5.4.420.0100.03416.56
5.4.410.0060.03116.44
5.4.400.0050.03316.31
5.4.390.0080.03116.26
5.4.380.0080.03616.25
5.4.370.0120.03216.29
5.4.360.0070.02916.22
5.4.350.0030.03316.27
5.4.340.0060.04116.31
5.4.330.0000.00710.90
5.4.320.0060.03516.27
5.4.310.0050.03116.34
5.4.300.0050.03216.33
5.4.290.0050.03416.24
5.4.280.0030.03416.24
5.4.270.0040.04516.24
5.4.260.0070.03316.31
5.4.250.0060.03216.26
5.4.240.0040.04016.36
5.4.230.0070.03816.32
5.4.220.0060.03216.38
5.4.210.0060.03116.21
5.4.200.0040.03416.27
5.4.190.0080.03216.33
5.4.180.0020.03316.26
5.4.170.0020.03316.40
5.4.160.0090.02716.25
5.4.150.0080.03316.22
5.4.140.0050.03714.54
5.4.130.0050.03014.62
5.4.120.0030.03114.63
5.4.110.0080.03214.63
5.4.100.0040.03414.63
5.4.90.0090.02514.60
5.4.80.0060.03114.65
5.4.70.0110.02714.57
5.4.60.0080.04314.61
5.4.50.0050.03214.67
5.4.40.0070.04214.72
5.4.30.0070.04814.62
5.4.20.0070.04114.65
5.4.10.0080.03114.67
5.4.00.0060.02914.16
5.3.290.0030.03613.51
5.3.280.0020.03213.47
5.3.270.0050.03113.47
5.3.260.0050.03213.53
5.3.250.0080.03013.41
5.3.240.0040.03913.47
5.3.230.0050.03013.46
5.3.220.0090.03413.52
5.3.210.0050.03813.50
5.3.200.0090.02613.44
5.3.190.0090.02613.46
5.3.180.0060.03013.51
5.3.170.0070.02813.44
5.3.160.0040.03613.52
5.3.150.0050.04313.51
5.3.140.0050.04913.49
5.3.130.0070.03613.48
5.3.120.0070.03313.45
5.3.110.0050.03613.50
5.3.100.0100.03113.28
5.3.90.0070.03313.35
5.3.80.0030.03213.31
5.3.70.0010.03313.27
5.3.60.0050.03013.27
5.3.50.0050.03013.19
5.3.40.0050.03113.23
5.3.30.0090.03313.30
5.3.20.0030.03113.24
5.3.10.0040.03013.13
5.3.00.0050.03113.18
5.2.170.0050.02712.37
5.2.160.0080.02112.36
5.2.150.0060.02912.37
5.2.140.0030.03112.37
5.2.130.0020.02512.30
5.2.120.0040.02312.38
5.2.110.0060.02312.34
5.2.100.0040.02412.37
5.2.90.0060.02412.30
5.2.80.0040.02412.28
5.2.70.0080.02612.35
5.2.60.0040.02912.27
5.2.50.0060.02512.30
5.2.40.0030.02612.34
5.2.30.0040.02712.30
5.2.20.0050.02212.33
5.2.10.0040.02412.27
5.2.00.0030.02312.21
5.1.60.0050.01911.96
5.1.50.0020.02312.00
5.1.40.0060.02211.93
5.1.30.0030.02412.07
5.1.20.0030.02412.10
5.1.10.0050.02012.01
5.1.00.0040.02112.03
5.0.50.0020.01911.68
5.0.40.0050.01611.68
5.0.30.0030.02611.68
5.0.20.0020.02111.68
5.0.10.0040.01911.68
5.0.00.0010.02911.68
4.4.90.0040.01411.68
4.4.80.0050.01311.68
4.4.70.0030.01611.68
4.4.60.0040.01411.68
4.4.50.0020.01711.68
4.4.40.0000.02311.68
4.4.30.0010.01411.68
4.4.20.0060.01311.68
4.4.10.0070.00911.68
4.4.00.0000.02511.68
4.3.110.0030.01311.68
4.3.100.0040.01511.68
4.3.90.0040.01311.68
4.3.80.0020.02111.68
4.3.70.0050.01211.68
4.3.60.0030.01511.68
4.3.50.0030.01311.68
4.3.40.0030.01911.68
4.3.30.0000.01711.68
4.3.20.0040.01411.68
4.3.10.0020.01511.68
4.3.00.0000.01711.68

preferences:
31.68 ms | 403 KiB | 5 Q