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.0090.00616.75
8.3.50.0140.00722.11
8.3.40.0120.00318.67
8.3.30.0040.01118.72
8.3.20.0040.00420.34
8.3.10.0040.00423.65
8.3.00.0000.00819.13
8.2.180.0040.01118.21
8.2.170.0120.00622.96
8.2.160.0070.01020.52
8.2.150.0030.00624.18
8.2.140.0030.00624.66
8.2.130.0060.00317.75
8.2.120.0040.00426.35
8.2.110.0060.00322.20
8.2.100.0110.00017.84
8.2.90.0000.00917.63
8.2.80.0040.00417.97
8.2.70.0040.00417.93
8.2.60.0040.00417.97
8.2.50.0030.00618.10
8.2.40.0050.00318.19
8.2.30.0030.00618.11
8.2.20.0000.00817.72
8.2.10.0030.00618.19
8.2.00.0080.00018.10
8.1.280.0070.01425.92
8.1.270.0030.00624.02
8.1.260.0070.00028.09
8.1.250.0040.00428.09
8.1.240.0050.00323.96
8.1.230.0110.00017.95
8.1.220.0000.00817.88
8.1.210.0030.00618.77
8.1.200.0080.00017.22
8.1.190.0030.00619.13
8.1.180.0040.00818.10
8.1.170.0000.00818.66
8.1.160.0000.00718.87
8.1.150.0000.00718.84
8.1.140.0040.00419.61
8.1.130.0000.00717.67
8.1.120.0060.00317.47
8.1.110.0000.00717.45
8.1.100.0060.00317.45
8.1.90.0000.00717.32
8.1.80.0000.00717.52
8.1.70.0030.00317.42
8.1.60.0030.00517.57
8.1.50.0000.00817.53
8.1.40.0000.00917.58
8.1.30.0040.00417.61
8.1.20.0000.00717.56
8.1.10.0040.00417.42
8.1.00.0000.00717.36
8.0.300.0030.00521.42
8.0.290.0040.00716.63
8.0.280.0030.00518.49
8.0.270.0030.00317.21
8.0.260.0060.00017.27
8.0.250.0030.00516.98
8.0.240.0000.00717.04
8.0.230.0070.00017.06
8.0.220.0040.00416.88
8.0.210.0000.00916.88
8.0.200.0060.00016.90
8.0.190.0080.00016.98
8.0.180.0040.00416.95
8.0.170.0000.00816.87
8.0.160.0000.00817.02
8.0.150.0070.00016.96
8.0.140.0080.00016.86
8.0.130.0050.00213.44
8.0.120.0050.00316.95
8.0.110.0080.00016.89
8.0.100.0040.00416.82
8.0.90.0000.00716.82
8.0.80.0040.01116.89
8.0.70.0030.00517.02
8.0.60.0070.00017.02
8.0.50.0000.00716.84
8.0.30.0110.01317.22
8.0.20.0130.00817.40
8.0.10.0040.00416.88
8.0.00.0100.00916.92
7.4.330.0000.00516.71
7.4.320.0040.00416.43
7.4.300.0040.00416.60
7.4.290.0030.00316.42
7.4.280.0040.00416.49
7.4.270.0060.00016.66
7.4.260.0040.00416.62
7.4.250.0040.00416.56
7.4.240.0010.00616.54
7.4.230.0030.00316.49
7.4.220.0100.00716.55
7.4.210.0090.00916.57
7.4.200.0040.00416.61
7.4.160.0040.01116.52
7.4.150.0150.00917.40
7.4.140.0100.01017.86
7.4.130.0090.01016.41
7.4.120.0130.00516.54
7.4.110.0130.01016.41
7.4.100.0120.00916.45
7.4.90.0060.01216.54
7.4.80.0140.00719.39
7.4.70.0060.01216.55
7.4.60.0040.01116.41
7.4.50.0090.00616.50
7.4.40.0170.00016.55
7.4.30.0070.01016.60
7.4.10.0040.01514.82
7.4.00.0080.00814.86
7.3.330.0000.00613.13
7.3.320.0000.00513.23
7.3.310.0040.00416.32
7.3.300.0030.00316.30
7.3.290.0030.00316.23
7.3.280.0090.01116.38
7.3.270.0060.01117.40
7.3.260.0150.00616.66
7.3.250.0080.01216.41
7.3.240.0100.01016.54
7.3.230.0030.01316.41
7.3.210.0090.00916.43
7.3.200.0130.00416.35
7.3.190.0070.01116.43
7.3.180.0030.01316.31
7.3.170.0090.01316.55
7.3.160.0110.00516.44
7.3.130.0100.01015.10
7.3.120.0110.00714.88
7.3.110.0040.01514.80
7.3.100.0030.00914.85
7.3.90.0080.00314.74
7.3.80.0060.00315.20
7.3.70.0030.01214.86
7.3.60.0000.01514.89
7.3.50.0100.00314.81
7.3.40.0070.00314.88
7.3.30.0030.00714.69
7.3.20.0090.00616.81
7.3.10.0030.00716.54
7.3.00.0100.00716.61
7.2.330.0110.00716.73
7.2.320.0030.01516.43
7.2.310.0130.01316.71
7.2.300.0090.00916.63
7.2.290.0100.00616.78
7.2.260.0030.01415.07
7.2.250.0060.00615.38
7.2.240.0060.01015.13
7.2.230.0060.00915.32
7.2.220.0060.00315.00
7.2.210.0070.00715.14
7.2.200.0030.00914.87
7.2.190.0060.00915.20
7.2.180.0000.01315.16
7.2.170.0030.00714.91
7.2.160.0040.00814.93
7.2.150.0070.01116.95
7.2.140.0000.01217.14
7.2.130.0060.00916.66
7.2.120.0090.00616.86
7.2.110.0090.00316.72
7.2.100.0030.00617.00
7.2.90.0030.01016.96
7.2.80.0100.00317.11
7.2.70.0030.00617.14
7.2.60.0020.01116.85
7.2.50.0090.00616.97
7.2.40.0070.00416.96
7.2.30.0080.00316.98
7.2.20.0090.00617.14
7.2.10.0060.00917.11
7.2.00.0070.00518.28
7.1.330.0030.00915.70
7.1.320.0000.01515.95
7.1.310.0110.00416.01
7.1.300.0000.01315.82
7.1.290.0080.00615.51
7.1.280.0070.00715.95
7.1.270.0040.00815.60
7.1.260.0100.00315.61
7.1.250.0030.01416.01
7.1.240.0060.00615.83
7.1.230.0090.00315.63
7.1.220.0080.00315.61
7.1.210.0080.00315.99
7.1.200.0030.01015.87
7.1.190.0080.00015.93
7.1.180.0110.00415.99
7.1.170.0060.00915.95
7.1.160.0040.00715.94
7.1.150.0070.00315.89
7.1.140.0070.00715.91
7.1.130.0080.00415.80
7.1.120.0140.00315.94
7.1.110.0080.00815.83
7.1.100.0060.00816.91
7.1.90.0030.01015.99
7.1.80.0040.00416.04
7.1.70.0050.00516.41
7.1.60.0080.01217.57
7.1.50.0120.01325.24
7.1.40.0000.01115.49
7.1.30.0070.00715.61
7.1.20.0030.00915.78
7.1.10.0070.01015.91
7.1.00.0030.04519.03
7.0.330.0040.00415.49
7.0.320.0100.00315.51
7.0.310.0060.00615.38
7.0.300.0120.00315.36
7.0.290.0030.00615.35
7.0.280.0070.00415.46
7.0.270.0070.00715.49
7.0.260.0090.00615.33
7.0.250.0130.00315.24
7.0.240.0030.00915.61
7.0.230.0030.00815.59
7.0.220.0030.01015.57
7.0.210.0040.00415.31
7.0.200.0160.00715.08
7.0.190.0090.00315.48
7.0.180.0070.00415.58
7.0.170.0030.00715.37
7.0.160.0030.01015.52
7.0.150.0060.00615.59
7.0.140.0080.00015.60
7.0.130.0070.00715.41
7.0.120.0080.00015.37
7.0.110.0000.01215.38
7.0.100.0000.01115.19
7.0.90.0000.01115.29
7.0.80.0100.00615.25
7.0.70.0060.00315.12
7.0.60.0070.04017.72
7.0.50.0090.02016.60
7.0.40.0060.04816.89
7.0.30.0080.03016.85
7.0.20.0130.04316.73
7.0.10.0050.04716.84
7.0.00.0050.03416.76
5.6.400.0030.01214.52
5.6.390.0130.00014.30
5.6.380.0030.00914.21
5.6.370.0000.01314.22
5.6.360.0080.00614.58
5.6.350.0080.00414.58
5.6.340.0030.01014.32
5.6.330.0030.01014.45
5.6.320.0000.00914.30
5.6.310.0040.00814.53
5.6.300.0030.00914.33
5.6.290.0050.00514.49
5.6.280.0030.04017.50
5.6.270.0050.00614.66
5.6.260.0000.00914.58
5.6.250.0030.01114.38
5.6.240.0090.00314.61
5.6.230.0080.00814.28
5.6.220.0030.00914.02
5.6.210.0100.04217.43
5.6.200.0080.03616.19
5.6.190.0070.03217.44
5.6.180.0190.03517.33
5.6.170.0180.04117.53
5.6.160.0030.05017.35
5.6.150.0110.04116.08
5.6.140.0070.04216.19
5.6.130.0130.01916.29
5.6.120.0110.02117.74
5.6.110.0040.03917.72
5.6.100.0080.03317.50
5.6.90.0100.04317.67
5.6.80.0030.02617.26
5.6.70.0070.00714.25
5.6.60.0130.00014.44
5.6.50.0070.01114.24
5.6.40.0070.00714.38
5.6.30.0040.01214.38
5.6.20.0080.00614.27
5.6.10.0040.00414.37
5.6.00.0080.00014.42
5.5.380.0090.00614.52
5.5.370.0040.01114.39
5.5.360.0040.00414.68
5.5.350.1980.02917.36
5.5.340.0080.04316.00
5.5.330.0030.02517.29
5.5.320.0020.04217.54
5.5.310.0100.02417.48
5.5.300.0050.03316.14
5.5.290.0050.03816.32
5.5.280.0080.03817.53
5.5.270.0070.02317.69
5.5.260.0020.03017.35
5.5.250.0060.03417.36
5.5.240.0200.03317.14
5.5.230.0060.00914.29
5.5.220.0040.00414.31
5.5.210.0110.00014.38
5.5.200.0000.01514.39
5.5.190.0030.00614.55
5.5.180.0040.00714.38
5.5.170.0120.00014.36
5.5.160.0130.00313.91
5.5.150.0120.00314.01
5.5.140.0070.01014.21
5.5.130.0030.01014.48
5.5.120.0000.00914.11
5.5.110.0040.00713.91
5.5.100.0040.01114.30
5.5.90.0070.00713.94
5.5.80.0030.01014.52
5.5.70.0060.00614.09
5.5.60.0000.00913.79
5.5.50.0060.00614.19
5.5.40.0000.01813.95
5.5.30.0110.00414.36
5.5.20.0040.01114.23
5.5.10.0000.01214.18
5.5.00.0090.00014.22

preferences:
55.34 ms | 401 KiB | 5 Q