3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string1 = '05% off'. '<br/>'; $string2 = '03% Off'. '<br/>'; $string3 = '50% OFF'. '<br/>'; $string4 = '50% oFf'. '<br/>'; $firstsub = substr( $string1, 4 ); $secondsub = substr( $string2, 4 ); $threesub = substr( $string3, 4 ); $foursub = substr( $string3, 4 ); var_dump($firstsub, $secondsub, $threesub, $foursub); ?>

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.70.0130.01016.34
8.3.60.0110.00718.18
8.3.50.0120.01218.10
8.3.40.0150.00018.45
8.3.30.0100.00718.63
8.3.20.0050.00318.60
8.3.10.0030.00620.40
8.3.00.0040.00419.13
8.2.180.0070.00718.43
8.2.170.0120.00322.96
8.2.160.0070.01120.47
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0070.00020.82
8.2.110.0040.00721.08
8.2.100.0040.00817.78
8.2.90.0080.00019.34
8.2.80.0050.00319.46
8.2.70.0000.00817.63
8.2.60.0030.00917.93
8.2.50.0040.00418.07
8.2.40.0000.00718.09
8.2.30.0070.00017.85
8.2.20.0030.00617.60
8.2.10.0040.00417.67
8.2.00.0050.00217.55
8.1.280.0090.00925.92
8.1.270.0040.00424.66
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0080.00023.86
8.1.230.0120.00021.03
8.1.220.0000.00817.74
8.1.210.0060.00318.85
8.1.200.0000.01016.88
8.1.190.0000.00817.53
8.1.180.0040.00418.10
8.1.170.0030.00718.70
8.1.160.0000.00718.70
8.1.150.0000.00718.57
8.1.140.0040.00417.43
8.1.130.0030.00317.74
8.1.120.0050.00317.36
8.1.110.0080.00017.29
8.1.100.0000.00717.31
8.1.90.0040.00417.41
8.1.80.0030.00317.44
8.1.70.0040.00417.35
8.1.60.0050.00317.50
8.1.50.0030.00617.34
8.1.40.0040.00417.45
8.1.30.0040.00417.43
8.1.20.0000.00717.63
8.1.10.0020.00517.43
8.1.00.0000.00717.31
8.0.300.0060.00319.89
8.0.290.0050.00316.72
8.0.280.0040.00418.38
8.0.270.0000.00817.11
8.0.260.0030.00318.31
8.0.250.0040.00416.79
8.0.240.0030.00316.86
8.0.230.0000.00716.80
8.0.220.0000.00716.72
8.0.210.0000.00716.70
8.0.200.0060.00016.90
8.0.190.0000.00816.86
8.0.180.0040.00416.89
8.0.170.0030.00616.68
8.0.160.0040.00416.83
8.0.150.0000.00816.74
8.0.140.0030.00616.77
8.0.130.0050.00013.30
8.0.120.0000.00716.72
8.0.110.0000.00716.75
8.0.100.0040.00416.77
8.0.90.0030.00516.77
8.0.80.0030.01616.70
8.0.70.0040.00416.70
8.0.60.0070.00016.68
8.0.50.0040.00416.82
8.0.30.0060.01216.90
8.0.20.0090.01316.94
8.0.10.0000.00816.93
8.0.00.0140.00716.69
7.4.330.0000.00512.89
7.4.320.0000.00616.62
7.4.300.0060.00016.48
7.4.290.0040.00416.54
7.4.280.0000.00716.54
7.4.270.0000.00716.51
7.4.260.0030.00313.21
7.4.250.0040.00416.42
7.4.240.0040.00416.54
7.4.230.0030.00316.48
7.4.220.0160.01416.36
7.4.210.0090.00616.43
7.4.200.0070.00016.34
7.4.190.0040.00416.39
7.4.160.0030.01216.34
7.4.150.0030.01516.32
7.4.140.0080.01216.39
7.4.130.0110.00616.38
7.4.120.0130.00816.42
7.4.110.0150.00416.41
7.4.100.0060.00916.55
7.4.90.0110.00816.46
7.4.80.0150.01219.39
7.4.70.0070.01116.37
7.4.60.0090.00616.32
7.4.50.0080.00416.25
7.4.40.0000.01916.44
7.4.30.0110.00516.46
7.4.10.0030.01515.04
7.4.00.0130.00514.89
7.3.330.0060.00012.89
7.3.320.0000.00512.85
7.3.310.0030.00316.19
7.3.300.0070.00016.11
7.3.290.0110.00716.00
7.3.280.0070.01116.15
7.3.270.0100.00716.08
7.3.260.0060.01216.30
7.3.250.0100.00816.14
7.3.240.0130.01016.16
7.3.230.0120.01116.41
7.3.210.0070.01016.37
7.3.200.0130.01016.47
7.3.190.0130.00416.26
7.3.180.0100.01116.15
7.3.170.0030.01316.39
7.3.160.0080.00816.21
7.3.130.0080.00614.73
7.3.120.0100.00814.75
7.3.110.0120.00614.67
7.3.100.0090.00414.72
7.3.90.0120.00314.49
7.3.80.0030.00614.59
7.3.70.0070.00714.73
7.3.60.0100.00314.90
7.3.50.0110.00314.63
7.3.40.0090.00314.40
7.3.30.0030.01414.59
7.3.20.0100.00716.58
7.3.10.0120.00316.61
7.3.00.0110.00416.72
7.2.330.0030.01516.60
7.2.320.0150.00916.66
7.2.310.0150.00616.42
7.2.300.0070.01016.20
7.2.290.0140.00716.43
7.2.260.0090.00614.82
7.2.250.0030.01214.64
7.2.240.0100.00615.09
7.2.230.0060.01015.00
7.2.220.0080.00614.71
7.2.210.0000.01214.93
7.2.200.0110.00414.83
7.2.190.0100.00314.96
7.2.180.0040.00414.69
7.2.170.0030.00915.05
7.2.160.0090.00615.02
7.2.150.0070.00716.84
7.2.140.0060.01316.55
7.2.130.0110.00316.71
7.2.120.0030.01316.75
7.2.110.0030.00716.86
7.2.100.0060.00916.81
7.2.90.0030.01216.73
7.2.80.0070.01016.96
7.2.70.0030.01216.67
7.2.60.0110.00316.84
7.2.50.0000.01616.85
7.2.40.0030.00616.95
7.2.30.0080.00416.85
7.2.20.0090.00616.49
7.2.10.0060.01016.79
7.2.00.0050.01218.01
7.1.330.0060.00915.75
7.1.320.0110.00415.45
7.1.310.0000.00915.84
7.1.300.0060.00315.77
7.1.290.0000.01115.82
7.1.280.0060.00615.81
7.1.270.0000.01115.59
7.1.260.0040.00815.78
7.1.250.0060.00915.74
7.1.240.0030.01015.78
7.1.230.0030.00615.43
7.1.220.0040.00415.67
7.1.210.0080.00815.79
7.1.200.0090.00315.76
7.1.190.0030.00715.78
7.1.180.0090.00315.40
7.1.170.0070.00715.74
7.1.160.0030.01315.90
7.1.150.0060.00915.64
7.1.140.0000.01215.90
7.1.130.0100.00715.86
7.1.120.0030.01315.83
7.1.110.0030.01015.63
7.1.100.0060.01115.89
7.1.90.0030.01015.68
7.1.80.0050.00515.54
7.1.70.0090.00316.22
7.1.60.0140.00417.60
7.1.50.0120.01225.37
7.1.40.0080.00615.89
7.1.30.0060.00915.84
7.1.20.0070.01115.70
7.1.10.0140.00015.77
7.1.00.0040.03918.93
7.0.330.0030.01015.28
7.0.320.0060.01015.41
7.0.310.0000.01615.40
7.0.300.0000.01415.11
7.0.290.0030.01115.35
7.0.280.0030.00515.17
7.0.270.0080.00415.30
7.0.260.0060.00615.18
7.0.250.0030.01015.23
7.0.240.0070.00715.39
7.0.230.0080.00415.04
7.0.220.0100.00315.51
7.0.210.0040.00815.10
7.0.200.0100.00214.96
7.0.190.0030.01015.25
7.0.180.0050.00315.45
7.0.170.0030.00615.29
7.0.160.0060.00915.49
7.0.150.0000.01115.55
7.0.140.0050.03818.63
7.0.130.0070.00715.51
7.0.120.0050.03818.73
7.0.110.0100.00715.36
7.0.100.0030.01415.38
7.0.90.0030.00715.14
7.0.80.0100.00315.27
7.0.70.0030.01315.33
7.0.60.0060.03817.69
7.0.50.0010.02616.63
7.0.40.0050.04415.62
7.0.30.0090.02915.60
7.0.20.0020.02915.53
7.0.10.0030.04315.49
7.0.00.0030.02915.47
5.6.400.0000.01114.25
5.6.390.0100.00314.36
5.6.380.0090.00613.98
5.6.370.0040.01114.16
5.6.360.0060.00614.39
5.6.350.0040.01214.05
5.6.340.0000.01214.41
5.6.330.0030.01314.18
5.6.320.0070.00714.03
5.6.310.0070.00713.96
5.6.300.0030.01414.05
5.6.290.0030.00613.82
5.6.280.0000.04417.58
5.6.270.0070.01014.23
5.6.260.0090.00614.40
5.6.250.0060.00614.04
5.6.240.0060.00314.39
5.6.230.0060.00914.59
5.6.220.0070.00713.97
5.6.210.0100.04217.41
5.6.200.0080.02216.17
5.6.190.0040.02616.23
5.6.180.0070.02316.12
5.6.170.0080.03016.28
5.6.160.0080.02816.24
5.6.150.0100.02316.33
5.6.140.0110.04116.27
5.6.130.0080.04316.34
5.6.120.0070.04916.30
5.6.110.0070.04216.19
5.6.100.0080.04316.13
5.6.90.0040.03616.19
5.6.80.0130.04015.81
5.6.70.0020.02515.88
5.6.60.0020.02715.81
5.6.50.0090.02015.81
5.6.40.0080.03515.75
5.6.30.0120.03215.81
5.6.20.0020.04515.84
5.6.10.0090.04216.02
5.6.00.0120.03415.81
5.5.380.0070.00714.16
5.5.370.0040.01114.03
5.5.360.0000.01314.15
5.5.350.0140.03217.17
5.5.340.0080.04416.09
5.5.330.0030.02615.95
5.5.320.0100.01815.86
5.5.310.0060.03416.09
5.5.300.0080.04615.97
5.5.290.0070.04215.92
5.5.280.0070.04016.13
5.5.270.0090.03916.06
5.5.260.0120.04016.03
5.5.250.0120.04015.80
5.5.240.0070.03415.75
5.5.230.0070.03015.65
5.5.220.0060.03815.72
5.5.210.0050.02215.65
5.5.200.0050.03215.70
5.5.190.0030.02815.82
5.5.180.0070.04515.73
5.5.170.0030.00613.91
5.5.160.0070.04215.71
5.5.150.0030.02515.85
5.5.140.0030.02515.67
5.5.130.0080.03015.57
5.5.120.0100.03715.76
5.5.110.0050.03215.70
5.5.100.0080.04215.52
5.5.90.0070.03915.76
5.5.80.0050.04315.60
5.5.70.0050.02515.50
5.5.60.0100.03515.55
5.5.50.0020.02515.65
5.5.40.0030.04015.47
5.5.30.0030.03715.61
5.5.20.0090.03615.62
5.5.10.0070.02515.51
5.5.00.0100.03215.54
5.4.450.0080.04215.12
5.4.440.0030.03715.15
5.4.430.0080.03815.13
5.4.420.0060.03014.99
5.4.410.0050.03015.10
5.4.400.0080.03714.90
5.4.390.0050.02814.95
5.4.380.0000.02514.96
5.4.370.0030.02914.84
5.4.360.0030.04214.85
5.4.350.0050.02714.90
5.4.340.0030.04614.91
5.4.330.0000.00710.94
5.4.320.0070.03215.12
5.4.310.0060.02014.78
5.4.300.0020.02714.81
5.4.290.0090.03314.81
5.4.280.0050.04314.88
5.4.270.0070.04214.89
5.4.260.0100.03714.90
5.4.250.0110.03714.96
5.4.240.0100.03914.91
5.4.230.0070.02914.91
5.4.220.0100.03514.99
5.4.210.0100.01814.86
5.4.200.0050.04014.81
5.4.190.0050.02814.85
5.4.180.0050.04014.79
5.4.170.0060.04015.01
5.4.160.0040.02914.83
5.4.150.0020.02714.76
5.4.140.0130.02313.53
5.4.130.0050.04213.56
5.4.120.0100.03513.59
5.4.110.0030.04013.49
5.4.100.0070.03813.45
5.4.90.0050.04413.51
5.4.80.0050.02513.54
5.4.70.0070.02013.70
5.4.60.0030.04113.58
5.4.50.0030.04113.60
5.4.40.0030.03713.50
5.4.30.0040.02913.48
5.4.20.0050.03813.67
5.4.10.0100.03513.63
5.4.00.0060.02613.21
5.3.290.0020.02712.52
5.3.280.0070.01812.54
5.3.270.0000.03512.53
5.3.260.0050.04012.56
5.3.250.0060.01812.45
5.3.240.0070.03912.47
5.3.230.0080.04112.40
5.3.220.0020.02812.40
5.3.210.0030.02312.37
5.3.200.0020.04012.46
5.3.190.0080.03712.41
5.3.180.0110.03612.43
5.3.170.0060.03912.44
5.3.160.0030.04112.41
5.3.150.0060.02712.46
5.3.140.0030.02112.46
5.3.130.0020.02712.43
5.3.120.0020.03712.46
5.3.110.0050.03712.37
5.3.100.0070.03512.20
5.3.90.0030.02912.14
5.3.80.0030.03512.19
5.3.70.0080.03712.09
5.3.60.0050.03012.17
5.3.50.0080.03812.14
5.3.40.0030.03712.14
5.3.30.0050.03912.14
5.3.20.0070.03911.93
5.3.10.0030.04311.91
5.3.00.0080.03512.00
5.2.170.0000.03711.06
5.2.160.0030.03310.92
5.2.150.0030.06311.12
5.2.140.0070.05310.97
5.2.130.0070.06311.09
5.2.120.0030.06311.13
5.2.110.0070.05010.96
5.2.100.0000.04311.00
5.2.90.0030.04311.04
5.2.80.0030.04711.23
5.2.70.0070.05711.06
5.2.60.0070.06711.20
5.2.50.0070.04011.16
5.2.40.0070.06011.00
5.2.30.0030.05011.00
5.2.20.0100.06010.94
5.2.10.0070.06311.00
5.2.00.0000.06010.71
5.1.60.0000.0309.97
5.1.50.0030.04710.04
5.1.40.0030.0509.96
5.1.30.0070.05310.32
5.1.20.0070.04310.38
5.1.10.0070.0339.98
5.1.00.0030.02710.03
5.0.50.0000.0238.48
5.0.40.0000.0308.39
5.0.30.0030.0478.36
5.0.20.0000.0308.18
5.0.10.0130.0378.24
5.0.00.0030.0638.12
4.4.90.0070.0137.66
4.4.80.0000.0177.66
4.4.70.0030.0177.66
4.4.60.0070.0137.66
4.4.50.0070.0177.66
4.4.40.0070.0377.66
4.4.30.0000.0407.66
4.4.20.0000.0407.66
4.4.10.0030.0377.66
4.4.00.0030.0407.66
4.3.110.0030.0207.66
4.3.100.0030.0337.66
4.3.90.0000.0207.66
4.3.80.0000.0407.66
4.3.70.0070.0177.66
4.3.60.0070.0307.66
4.3.50.0030.0377.66
4.3.40.0000.0537.66
4.3.30.0030.0207.66
4.3.20.0000.0207.66
4.3.10.0000.0237.66
4.3.00.0070.0307.66

preferences:
43.43 ms | 401 KiB | 5 Q