3v4l.org

run code in 300+ PHP versions simultaneously
<?php //差分を見て前回から更新があったかどうか確認 $old_article = file_get_contents(''); $new_article = file_get_contents(''); $old_article = mb_convert_encoding($old_article, "SJIS", "UTF-8"); $new_article = mb_convert_encoding($new_article, "SJIS", "UTF-8"); $diff = xdiff_string_diff($old_article, $new_article, 1); if (is_string($diff)) { echo "2 つの差分:\n"; echo $diff; } ?>

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.0110.00718.28
8.3.50.0000.01518.17
8.3.40.0070.00718.62
8.3.30.0060.00918.56
8.3.20.0070.00020.29
8.3.10.0050.00323.66
8.3.00.0030.00617.78
8.2.180.0000.01516.63
8.2.170.0120.00322.96
8.2.160.0130.00320.26
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0090.00019.30
8.2.120.0080.00026.35
8.2.110.0080.00022.09
8.2.100.0040.00817.72
8.2.90.0000.00819.05
8.2.80.0000.00817.97
8.2.70.0040.00417.50
8.2.60.0080.00017.92
8.2.50.0090.00018.07
8.2.40.0050.00322.28
8.2.30.0080.00020.57
8.2.20.0000.00717.63
8.2.10.0000.00818.05
8.2.00.0040.00418.03
8.1.280.0100.00325.92
8.1.270.0100.00320.23
8.1.260.0030.00528.09
8.1.250.0000.00728.09
8.1.240.0070.00717.34
8.1.230.0030.00920.80
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0060.00317.22
8.1.190.0000.00817.23
8.1.180.0040.00418.10
8.1.170.0000.00818.50
8.1.160.0030.00520.63
8.1.150.0000.00718.66
8.1.140.0000.00819.35
8.1.130.0030.00317.32
8.1.120.0000.00717.27
8.1.110.0070.00017.22
8.1.100.0030.00617.21
8.1.90.0080.00017.23
8.1.80.0000.00717.25
8.1.70.0000.00717.30
8.1.60.0040.00417.46
8.1.50.0080.00017.51
8.1.40.0000.00817.32
8.1.30.0030.00617.48
8.1.20.0040.00417.60
8.1.10.0000.00717.51
8.1.00.0000.00717.48
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0070.00018.39
8.0.270.0000.00717.15
8.0.260.0070.00016.74
8.0.250.0000.00616.88
8.0.240.0030.00316.90
8.0.230.0030.00317.00
8.0.220.0090.00016.78
8.0.210.0000.00717.01
8.0.200.0020.00516.92
8.0.190.0000.00817.05
8.0.180.0000.00716.86
8.0.170.0070.00016.87
8.0.160.0000.00716.98
8.0.150.0030.00516.89
8.0.140.0000.00716.85
8.0.130.0050.00013.34
8.0.120.0040.00416.92
8.0.110.0070.00016.79
8.0.100.0040.00416.75
8.0.90.0070.00016.84
8.0.80.0180.00316.96
8.0.70.0040.00416.90
8.0.60.0090.00016.81
8.0.50.0030.00516.84
8.0.30.0060.01216.80
8.0.20.0090.01517.40
8.0.10.0080.00016.94
8.0.00.0120.00516.64
7.4.330.0000.00516.72
7.4.320.0000.00616.71
7.4.300.0030.00616.64
7.4.290.0000.00716.60
7.4.280.0080.00016.63
7.4.270.0000.00816.63
7.4.260.0000.00716.60
7.4.250.0050.00316.59
7.4.240.0020.00516.55
7.4.230.0000.00716.73
7.4.220.0100.00716.67
7.4.210.0090.00516.71
7.4.200.0030.00316.60
7.4.160.0100.00716.63
7.4.150.0140.00617.40
7.4.140.0160.00917.86
7.4.130.0070.01016.63
7.4.120.0070.01016.59
7.4.110.0030.01416.71
7.4.100.0030.01416.62
7.4.90.0120.00616.54
7.4.80.0110.01219.39
7.4.70.0100.01016.65
7.4.60.0150.00316.66
7.4.50.0060.01016.43
7.4.40.0100.00716.68
7.4.30.0180.00016.52
7.4.00.0040.01114.78
7.3.330.0050.00013.14
7.3.320.0030.00313.27
7.3.310.0030.00316.44
7.3.300.0080.00016.37
7.3.290.0060.00016.39
7.3.280.0060.01216.38
7.3.270.0080.00817.40
7.3.260.0100.00716.51
7.3.250.0090.01116.33
7.3.240.0120.00816.41
7.3.230.0080.00816.39
7.3.210.0090.01216.41
7.3.200.0070.01116.24
7.3.190.0080.00816.21
7.3.180.0070.01016.67
7.3.170.0060.01116.44
7.3.160.0100.00516.60
7.2.330.0120.00616.71
7.2.320.0110.01116.70
7.2.310.0160.00816.57
7.2.300.0030.01316.66
7.2.290.0100.00716.36
7.2.60.0070.00716.84
7.2.00.0030.01019.38
7.1.200.0000.01415.84
7.1.100.0030.00918.22
7.1.70.0030.01317.13
7.1.60.0100.01319.44
7.1.50.0150.01234.76
7.1.00.0030.07022.36
7.0.200.0030.00516.47
7.0.60.0070.07719.92
7.0.50.0030.08317.89
7.0.40.0100.06720.30
7.0.30.0470.07020.13
7.0.20.0270.05320.00
7.0.10.0030.09020.09
7.0.00.0100.05320.17
5.6.280.0000.07721.05
5.6.210.0030.08320.52
5.6.200.0100.07718.13
5.6.190.0130.08320.58
5.6.180.0100.08020.61
5.6.170.0400.07320.50
5.6.160.0100.08320.50
5.6.150.0030.06018.19
5.6.140.0130.07018.12
5.6.130.0070.08018.18
5.6.120.0070.07721.11
5.6.110.0030.09021.04
5.6.100.0070.08320.88
5.6.90.0070.07321.01
5.6.80.0070.06020.28
5.5.350.0230.07320.41
5.5.340.0030.03717.92
5.5.330.0130.06020.40
5.5.320.0330.07320.30
5.5.310.0300.08320.34
5.5.300.0170.07017.97
5.5.290.0070.06017.90
5.5.280.0100.07320.68
5.5.270.0030.08720.82
5.5.260.0070.08320.84
5.5.250.0000.09020.69
5.5.240.0170.07020.18

preferences:
52.26 ms | 400 KiB | 5 Q