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 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";

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.0150.00016.75
8.3.50.0140.00422.05
8.3.40.0070.00718.54
8.3.30.0000.01518.84
8.3.20.0040.00420.38
8.3.10.0000.00823.71
8.3.00.0070.00319.25
8.2.180.0120.00316.88
8.2.170.0070.00722.96
8.2.160.0100.00320.57
8.2.150.0060.00325.66
8.2.140.0040.00424.66
8.2.130.0090.00017.75
8.2.120.0040.00426.35
8.2.110.0030.00622.33
8.2.100.0090.00317.91
8.2.90.0050.00319.35
8.2.80.0050.00317.97
8.2.70.0030.00617.50
8.2.60.0050.00318.05
8.2.50.0090.00018.07
8.2.40.0020.00519.18
8.2.30.0040.00420.62
8.2.20.0060.00317.77
8.2.10.0040.00418.07
8.2.00.0080.00018.05
8.1.280.0070.01425.92
8.1.270.0030.00623.97
8.1.260.0050.00328.09
8.1.250.0060.00328.09
8.1.240.0090.00023.92
8.1.230.0110.00019.15
8.1.220.0040.00417.79
8.1.210.0040.00418.77
8.1.200.0060.00317.35
8.1.190.0040.00417.25
8.1.180.0040.00418.10
8.1.170.0090.00018.71
8.1.160.0000.00722.05
8.1.150.0040.00418.90
8.1.140.0000.00819.46
8.1.130.0030.00317.71
8.1.120.0070.00317.41
8.1.110.0040.00417.50
8.1.100.0000.00817.43
8.1.90.0000.00817.43
8.1.80.0000.00717.46
8.1.70.0060.00317.39
8.1.60.0000.00817.62
8.1.50.0060.00317.42
8.1.40.0000.00817.54
8.1.30.0000.00917.67
8.1.20.0080.00017.68
8.1.10.0050.00317.46
8.1.00.0000.00717.59
8.0.300.0070.00018.77
8.0.290.0000.00716.63
8.0.280.0070.00018.46
8.0.270.0030.00317.28
8.0.260.0060.00017.27
8.0.250.0060.00016.97
8.0.240.0030.00317.00
8.0.230.0050.00216.96
8.0.220.0030.00316.80
8.0.210.0000.00816.88
8.0.200.0030.00316.93
8.0.190.0000.00716.87
8.0.180.0070.00016.94
8.0.170.0000.00816.80
8.0.160.0040.00416.97
8.0.150.0000.00716.84
8.0.140.0020.00516.73
8.0.130.0070.00013.29
8.0.120.0040.00416.88
8.0.110.0080.00016.88
8.0.100.0040.00416.86
8.0.90.0070.00016.89
8.0.80.0120.01216.90
8.0.70.0080.00016.81
8.0.60.0050.00316.84
8.0.50.0000.00716.86
8.0.30.0080.01117.25
8.0.20.0070.01117.40
8.0.10.0040.00417.01
8.0.00.0090.01116.88
7.4.330.0000.00516.67
7.4.320.0000.00616.39
7.4.300.0000.00616.45
7.4.290.0030.00316.44
7.4.280.0030.00516.34
7.4.270.0040.00416.56
7.4.260.0030.00316.50
7.4.250.0000.00716.43
7.4.240.0040.00316.58
7.4.230.0030.00316.25
7.4.220.0030.01416.49
7.4.210.0060.01216.49
7.4.200.0070.00016.57
7.4.160.0030.01316.57
7.4.150.0070.01117.40
7.4.140.0100.00917.86
7.4.130.0120.00416.41
7.4.120.0130.00416.56
7.4.110.0070.01016.73
7.4.100.0090.01516.50
7.4.90.0100.00716.52
7.4.80.0100.00619.39
7.4.70.0070.01016.56
7.4.60.0030.01316.57
7.4.50.0060.00916.41
7.4.40.0070.01016.41
7.4.30.0110.01116.65
7.4.10.0090.00914.79
7.4.00.0060.00814.92
7.3.330.0030.00313.21
7.3.320.0000.00613.32
7.3.310.0070.00016.40
7.3.300.0030.00316.33
7.3.290.0030.00316.24
7.3.280.0050.01116.31
7.3.270.0100.00717.40
7.3.260.0130.00316.34
7.3.250.0100.00716.34
7.3.240.0140.00916.36
7.3.230.0100.00616.63
7.3.210.0100.01316.57
7.3.200.0070.01416.29
7.3.190.0090.01216.46
7.3.180.0110.00516.39
7.3.170.0070.01116.59
7.3.160.0040.01116.55
7.3.130.0090.00914.83
7.3.120.0100.00714.59
7.3.110.0060.01214.58
7.3.100.0080.00414.75
7.3.90.0040.01114.73
7.3.80.0070.01014.91
7.3.70.0030.01015.03
7.3.60.0070.00714.91
7.3.50.0030.00914.62
7.3.40.0070.00414.63
7.3.30.0060.00615.04
7.3.20.0070.01116.45
7.3.10.0060.00916.57
7.3.00.0080.00616.66
7.2.330.0030.01316.59
7.2.320.0100.01316.81
7.2.310.0070.01116.37
7.2.300.0080.00816.52
7.2.290.0070.01016.46
7.2.260.0120.00614.89
7.2.250.0030.01315.04
7.2.240.0030.01015.29
7.2.230.0000.01714.84
7.2.220.0090.00615.13
7.2.210.0070.00714.66
7.2.200.0100.00714.94
7.2.190.0030.01415.11
7.2.180.0110.00314.74
7.2.170.0030.00915.26
7.2.160.0060.01014.98
7.2.150.0030.01216.73
7.2.140.0060.01316.61
7.2.130.0040.00816.79
7.2.120.0100.00917.00
7.2.110.0050.00816.75
7.2.100.0080.00516.89
7.2.90.0110.00516.83
7.2.80.0060.00616.75
7.2.70.0030.01516.95
7.2.60.0080.00816.79
7.2.50.0110.00717.02
7.2.40.0080.00616.97
7.2.30.0050.01016.96
7.2.20.0080.00716.93
7.2.10.0090.00616.97
7.2.00.0050.00717.83
7.1.330.0100.00315.80
7.1.320.0070.01015.53
7.1.310.0030.00815.90
7.1.300.0040.00715.66
7.1.290.0040.00815.64
7.1.280.0040.00815.79
7.1.270.0040.01215.77
7.1.260.0070.00315.87
7.1.250.0050.01115.66
7.1.240.0000.00915.84
7.1.230.0030.01015.88
7.1.220.0110.00415.97
7.1.210.0100.00315.61
7.1.200.0060.00715.94
7.1.190.0040.01116.01
7.1.180.0030.01015.58
7.1.170.0030.00915.72
7.1.160.0060.00315.76
7.1.150.0070.01015.82
7.1.140.0030.01215.82
7.1.130.0060.00615.56
7.1.120.0100.00715.58
7.1.110.0060.00615.88
7.1.100.0070.00517.03
7.1.90.0030.01015.58
7.1.80.0030.01015.64
7.1.70.0020.00816.57
7.1.60.0050.01417.45
7.1.50.0050.01316.25
7.1.40.0090.00315.68
7.1.30.0120.00315.84
7.1.20.0040.00815.82
7.1.10.0030.01015.60
7.1.00.0050.04019.13
7.0.330.0110.00415.34
7.0.320.0090.00315.09
7.0.310.0030.00615.18
7.0.300.0030.00515.42
7.0.290.0100.00715.39
7.0.280.0070.00715.43
7.0.270.0000.01215.63
7.0.260.0040.01215.22
7.0.250.0110.00415.62
7.0.240.0070.00715.28
7.0.230.0120.00415.48
7.0.220.0030.00915.38
7.0.210.0000.01015.36
7.0.200.0250.00415.04
7.0.190.0040.00715.61
7.0.180.0070.00415.32
7.0.170.0080.00015.47
7.0.160.0040.01115.34
7.0.150.0060.00315.38
7.0.140.0100.00315.30
7.0.130.0070.00315.57
7.0.120.0030.01215.34
7.0.110.0030.00615.39
7.0.100.0110.00415.46
7.0.90.0040.00415.43
7.0.80.0090.00915.36
7.0.70.0090.00615.18
7.0.60.0050.02917.80
7.0.50.0110.03516.72
7.0.40.0020.03116.95
7.0.30.0170.04516.92
7.0.20.0200.03216.61
7.0.10.0060.03616.74
7.0.00.0070.03016.83
5.6.400.0040.01214.21
5.6.390.0080.00414.07
5.6.380.0130.00014.46
5.6.370.0070.00714.41
5.6.360.0030.01014.18
5.6.350.0150.00414.63
5.6.340.0070.01114.22
5.6.330.0060.00314.47
5.6.320.0140.00414.46
5.6.310.0040.00714.25
5.6.300.0080.00314.54
5.6.290.0030.00614.30
5.6.280.0040.02317.91
5.6.270.0070.00314.29
5.6.260.0070.01014.44
5.6.250.0000.01414.30
5.6.240.0070.00414.59
5.6.230.0050.00814.55
5.6.220.0090.00814.48
5.6.210.0080.04317.61
5.6.200.0100.04416.23
5.6.190.0070.03517.44
5.6.180.0170.04017.56
5.6.170.0170.04217.17
5.6.160.0030.03317.57
5.6.150.0050.04516.10
5.6.140.0070.04616.26
5.6.130.0070.04516.19
5.6.120.0000.03217.79
5.6.110.0070.04717.68
5.6.100.0050.05017.70
5.6.90.0060.05017.69
5.6.80.0050.05017.48
5.6.70.0030.00914.32
5.6.60.0080.00814.14
5.6.50.0070.00714.21
5.6.40.0060.00914.21
5.6.30.0100.00714.16
5.6.20.0040.00714.09
5.6.10.0030.00614.29
5.6.00.0090.00614.29
5.5.380.0040.01114.15
5.5.370.0030.00914.09
5.5.360.0060.00614.21
5.5.350.2140.02517.34
5.5.340.0070.04216.02
5.5.330.0070.02317.25
5.5.320.0020.04917.35
5.5.310.0140.02317.36
5.5.300.0070.02216.10
5.5.290.0060.02816.25
5.5.280.0120.04317.46
5.5.270.0070.02017.48
5.5.260.0080.04417.73
5.5.250.0050.03017.41
5.5.240.0170.03117.37
5.5.230.0090.00614.19
5.5.220.0060.00314.35
5.5.210.0070.01114.18
5.5.200.0100.00614.10
5.5.190.0100.00614.43
5.5.180.0000.01314.33
5.5.170.0090.00314.46
5.5.160.0070.01014.38
5.5.150.0070.01014.08
5.5.140.0040.01114.39
5.5.130.0060.00914.12
5.5.120.0070.01014.35
5.5.110.0090.00314.34
5.5.100.0040.01214.41
5.5.90.0040.00714.09
5.5.80.0060.00614.22
5.5.70.0080.00414.13
5.5.60.0080.00414.23
5.5.50.0030.00714.06
5.5.40.0110.00414.43
5.5.30.0030.01014.11
5.5.20.0080.00814.30
5.5.10.0030.01114.32
5.5.00.0090.00014.32

preferences:
48.68 ms | 401 KiB | 5 Q