3v4l.org

run code in 300+ PHP versions simultaneously
<?php $student_comment_new = 'PDI+PEwuMDIwMzEwNDAwODAtVC01UC01PlJvbiBDb21tZW50IDI8ZS4yPg=='; $fixed = base64_decode($student_comment_new); echo $fixed . "\n\n"; //Decode the entire comment $comment_cltxt = base64_decode($student_comment_new); echo $comment_cltxt . "\n\n"; //get the comment number. $comment_nr = explode('><L.', $comment_cltxt)[0]; $comment_nr = explode('<', $comment_nr)[1]; //get the comment end-text $comment_nr_string = '<' . $comment_nr . '>'; $comment_end_string = '<e.' . $comment_nr . '>'; echo $comment_nr . "\n"; echo $comment_nr_string . "\n"; echo $comment_end_string . "\n"; //get the comment text itself $pos1 = substr($comment_cltxt, 0, strlen($comment_nr_string)); $pos2 = substr($comment_cltxt, strlen($comment_cltxt) - strlen($comment_end_string)); $comment_text = substr($comment_cltxt, $pos1, $pos2); echo $comment_text . "\n";

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.0070.00716.75
8.3.50.0140.00921.89
8.3.40.0120.00318.62
8.3.30.0110.00418.85
8.3.20.0070.00020.33
8.3.10.0040.00423.66
8.3.00.0030.00519.51
8.2.180.0110.00716.88
8.2.170.0090.00622.96
8.2.160.0130.00020.39
8.2.150.0050.00524.18
8.2.140.0060.00324.66
8.2.130.0100.00017.38
8.2.120.0040.00426.35
8.2.110.0000.00922.18
8.2.100.0090.00318.16
8.2.90.0050.00319.17
8.2.80.0040.00417.97
8.2.70.0050.00317.50
8.2.60.0050.00317.93
8.2.50.0030.00618.07
8.2.40.0000.00719.39
8.2.30.0000.00720.50
8.2.20.0000.00817.71
8.2.10.0040.00418.07
8.2.00.0030.00618.05
8.1.280.0140.00725.92
8.1.270.0030.00623.85
8.1.260.0070.00028.09
8.1.250.0060.00328.09
8.1.240.0080.00023.80
8.1.230.0120.00019.16
8.1.220.0000.00817.88
8.1.210.0050.00318.77
8.1.200.0090.00017.22
8.1.190.0040.00417.13
8.1.180.0040.00418.10
8.1.170.0000.00818.62
8.1.160.0040.00421.96
8.1.150.0050.00218.87
8.1.140.0040.00417.44
8.1.130.0000.00917.80
8.1.120.0030.00717.36
8.1.110.0040.00417.43
8.1.100.0080.00017.49
8.1.90.0030.00517.35
8.1.80.0080.00017.45
8.1.70.0030.00317.43
8.1.60.0000.00717.51
8.1.50.0030.00517.48
8.1.40.0050.00317.41
8.1.30.0030.00617.63
8.1.20.0050.00217.49
8.1.10.0080.00017.40
8.1.00.0000.00817.57
8.0.300.0070.00018.77
8.0.290.0000.00716.88
8.0.280.0050.00218.38
8.0.270.0000.00716.93
8.0.260.0030.00317.20
8.0.250.0070.00017.08
8.0.240.0000.00717.08
8.0.230.0070.00017.00
8.0.220.0070.00016.84
8.0.210.0030.00616.88
8.0.200.0060.00017.05
8.0.190.0080.00017.00
8.0.180.0070.00017.00
8.0.170.0040.00416.93
8.0.160.0050.00316.89
8.0.150.0080.00016.92
8.0.140.0000.00716.96
8.0.130.0030.00613.35
8.0.120.0030.00616.92
8.0.110.0000.00816.90
8.0.100.0070.00016.93
8.0.90.0040.00416.98
8.0.80.0030.01216.94
8.0.70.0030.00516.82
8.0.60.0000.00716.94
8.0.50.0040.00416.99
8.0.30.0060.01217.15
8.0.20.0100.01017.40
8.0.10.0040.00416.96
8.0.00.0150.00516.68
7.4.330.0000.00516.89
7.4.320.0000.00716.46
7.4.300.0030.00316.54
7.4.290.0030.00316.53
7.4.280.0080.00016.47
7.4.270.0000.00716.54
7.4.260.0070.00016.45
7.4.250.0000.00716.49
7.4.240.0030.00416.54
7.4.230.0000.00716.28
7.4.220.0140.00416.45
7.4.210.0050.01016.55
7.4.200.0020.00516.23
7.4.160.0030.01216.64
7.4.150.0070.01117.40
7.4.140.0130.00517.86
7.4.130.0060.01116.57
7.4.120.0130.00516.47
7.4.110.0160.00316.28
7.4.100.0110.00616.52
7.4.90.0090.01016.43
7.4.80.0030.01419.39
7.4.70.0040.01316.57
7.4.60.0000.01616.39
7.4.50.0030.01316.56
7.4.40.0110.00716.49
7.4.30.0000.01616.35
7.4.10.0080.00614.75
7.4.00.0070.00914.93
7.3.330.0020.00213.14
7.3.320.0050.00013.19
7.3.310.0030.00316.47
7.3.300.0040.00416.24
7.3.290.0000.00716.30
7.3.280.0030.01316.34
7.3.270.0030.01517.40
7.3.260.0090.00916.54
7.3.250.0120.00616.43
7.3.240.0060.01116.48
7.3.230.0070.01016.54
7.3.210.0070.01016.65
7.3.200.0120.00316.45
7.3.190.0130.01016.62
7.3.180.0090.00616.61
7.3.170.0090.01316.42
7.3.160.0120.00316.40
7.3.130.0100.00714.76
7.3.120.0130.00614.91
7.3.110.0000.01514.84
7.3.100.0100.00314.66
7.3.90.0030.01214.91
7.3.80.0060.00314.81
7.3.70.0040.01114.63
7.3.60.0030.00714.91
7.3.50.0000.01314.55
7.3.40.0040.00414.45
7.3.30.0060.00914.94
7.3.20.0060.01016.63
7.3.10.0000.01216.61
7.3.00.0030.00816.44
7.2.330.0110.00616.75
7.2.320.0250.03916.78
7.2.310.0120.00616.57
7.2.300.0140.00716.87
7.2.290.0040.01516.62
7.2.260.0090.00914.90
7.2.250.0100.00314.99
7.2.240.0060.00615.21
7.2.230.0070.01115.16
7.2.220.0070.00714.81
7.2.210.0070.00715.04
7.2.200.0000.01014.86
7.2.190.0030.01015.02
7.2.180.0090.00615.18
7.2.170.0110.00414.85
7.2.160.0030.01314.87
7.2.150.0150.00016.86
7.2.140.0000.01416.41
7.2.130.0030.01417.02
7.2.120.0100.00717.06
7.2.110.0070.01116.79
7.2.100.0090.00616.65
7.2.90.0090.00616.93
7.2.80.0000.01317.13
7.2.70.0070.00716.72
7.2.60.0080.00916.83
7.2.50.0030.01116.79
7.2.40.0060.00917.00
7.2.30.0030.00917.03
7.2.20.0040.01116.71
7.2.10.0070.01016.88
7.2.00.0070.00718.06
7.1.330.0080.00815.61
7.1.320.0030.01315.76
7.1.310.0040.00715.66
7.1.300.0030.01015.51
7.1.290.0080.00315.64
7.1.280.0070.00715.70
7.1.270.0030.01015.91
7.1.260.0000.01715.55
7.1.250.0030.01315.70
7.1.240.0070.00415.84
7.1.230.0070.00715.67
7.1.220.0040.00815.76
7.1.210.0070.00715.93
7.1.200.0050.00715.68
7.1.190.0030.00615.95
7.1.180.0100.00315.77
7.1.170.0040.00415.84
7.1.160.0030.00715.93
7.1.150.0030.01015.55
7.1.140.0030.00915.82
7.1.130.0100.00715.71
7.1.120.0000.00815.74
7.1.110.0000.00915.78
7.1.100.0040.00917.14
7.1.90.0070.00715.79
7.1.80.0090.00615.40
7.1.70.0030.00816.58
7.1.60.0030.01017.34
7.1.50.0080.01125.28
7.1.40.0110.00415.75
7.1.30.0060.00915.92
7.1.20.0090.00615.59
7.1.10.0000.00915.86
7.1.00.0050.04319.07
7.0.330.0060.00615.51
7.0.320.0100.00315.38
7.0.310.0080.00615.23
7.0.300.0040.01115.42
7.0.290.0000.01415.30
7.0.280.0090.00415.55
7.0.270.0060.01015.36
7.0.260.0060.00615.13
7.0.250.0040.00415.63
7.0.240.0040.01115.61
7.0.230.0030.01315.42
7.0.220.0090.00615.41
7.0.210.0070.00315.31
7.0.200.0220.00015.15
7.0.190.0100.00715.06
7.0.180.0110.00415.40
7.0.170.0030.00615.30
7.0.160.0030.00915.20
7.0.150.0030.01015.26
7.0.140.0100.00315.12
7.0.130.0100.00715.22
7.0.120.0100.00315.24
7.0.110.0060.01015.46
7.0.100.0030.00715.27
7.0.90.0040.00415.38
7.0.80.0110.00315.50
7.0.70.0050.00515.24
7.0.60.0080.04017.54
7.0.50.0080.04316.61
7.0.40.0070.04416.62
7.0.30.0100.02916.73
7.0.20.0120.04516.57
7.0.10.0050.04616.81
7.0.00.0090.03116.75
5.6.400.0090.00313.92
5.6.390.0030.00913.90
5.6.380.0030.01013.95
5.6.370.0040.00714.14
5.6.360.0080.00814.54
5.6.350.0040.01114.25
5.6.340.0000.01414.18
5.6.330.0070.01114.42
5.6.320.0070.00714.38
5.6.310.0070.00714.42
5.6.300.0000.01614.39
5.6.290.0060.00314.59
5.6.280.0080.03317.50
5.6.270.0140.00314.17
5.6.260.0060.00914.33
5.6.250.0070.00714.28
5.6.240.0040.01114.41
5.6.230.0030.00914.16
5.6.220.0030.00614.27
5.6.210.0050.03917.46
5.6.200.0030.03816.19
5.6.190.0050.03117.24
5.6.180.0240.03217.41
5.6.170.0180.02217.50
5.6.160.0100.03917.28
5.6.150.0080.02316.21
5.6.140.0080.02116.21
5.6.130.0030.02316.28
5.6.120.0070.04217.60
5.6.110.0120.03917.55
5.6.100.0030.04517.72
5.6.90.0030.05017.66
5.6.80.0100.02017.26
5.6.70.0120.00013.98
5.6.60.0030.00814.28
5.6.50.0070.00714.27
5.6.40.0060.00914.25
5.6.30.0040.01114.03
5.6.20.0070.00314.18
5.6.10.0030.01313.92
5.6.00.0120.00413.92
5.5.380.0060.00614.18
5.5.370.0000.00814.18
5.5.360.0030.00614.56
5.5.350.2000.02217.38
5.5.340.0030.04616.01
5.5.330.0000.02917.17
5.5.320.0020.04517.22
5.5.310.0100.02717.26
5.5.300.0060.04116.00
5.5.290.0070.03716.00
5.5.280.0100.04417.31
5.5.270.0030.04017.33
5.5.260.0050.04117.36
5.5.250.0090.03517.17
5.5.240.0210.04216.95
5.5.230.0000.01313.95
5.5.220.0000.01414.03
5.5.210.0090.01114.44
5.5.200.0110.01114.16
5.5.190.0070.01114.32
5.5.180.0090.00914.10
5.5.170.0140.00314.10
5.5.160.0000.01514.00
5.5.150.0060.00313.59
5.5.140.0060.00914.09
5.5.130.0140.00014.63
5.5.120.0000.01614.15
5.5.110.0110.00014.29
5.5.100.0120.00014.39
5.5.90.0060.00914.23
5.5.80.0080.00414.18
5.5.70.0100.00314.26
5.5.60.0080.00413.93
5.5.50.0030.00714.08
5.5.40.0000.01614.15
5.5.30.0070.00414.07
5.5.20.0040.01113.75
5.5.10.0100.00314.27
5.5.00.0090.00314.18

preferences:
59.18 ms | 401 KiB | 5 Q