3v4l.org

run code in 300+ PHP versions simultaneously
<?php $old_article = 'Hello, my buddy!'; $new_article = 'Hallo, my good buddy?'; $diff = xdiff_string_diff($old_article, $new_article, 1); if (is_string($diff)) { echo "Differences between two articles:\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.40.0070.01418.73
8.3.30.0080.00618.92
8.3.20.0040.00420.22
8.3.10.0040.00423.66
8.3.00.0040.00419.15
8.2.170.0110.00722.96
8.2.160.0100.00320.22
8.2.150.0000.00724.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0050.00222.29
8.2.110.0060.00322.29
8.2.100.0040.00717.72
8.2.90.0040.00419.07
8.2.80.0000.00717.97
8.2.70.0060.00317.50
8.2.60.0070.00017.93
8.2.50.0050.00518.07
8.2.40.0000.00819.95
8.2.30.0000.00817.98
8.2.20.0000.00717.55
8.2.10.0030.00318.05
8.2.00.0030.00717.75
8.1.270.0050.00323.96
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0060.00323.91
8.1.230.0030.00718.87
8.1.220.0000.00717.74
8.1.210.0040.00418.77
8.1.200.0060.00317.13
8.1.190.0000.00717.51
8.1.180.0040.00718.10
8.1.170.0050.00518.51
8.1.160.0040.00422.00
8.1.150.0000.00818.61
8.1.140.0040.00417.38
8.1.130.0040.00419.08
8.1.120.0040.00317.36
8.1.110.0110.00017.43
8.1.100.0040.00717.38
8.1.90.0070.00017.38
8.1.80.0030.00617.40
8.1.70.0040.00417.35
8.1.60.0060.00317.39
8.1.50.0000.00817.38
8.1.40.0000.00717.52
8.1.30.0000.00917.46
8.1.20.0040.00417.55
8.1.10.0040.00417.41
8.1.00.0000.00717.45
8.0.300.0080.00018.77
8.0.290.0050.00217.18
8.0.280.0040.00418.28
8.0.270.0030.00317.06
8.0.260.0040.00416.75
8.0.250.0000.00816.86
8.0.240.0080.00016.98
8.0.230.0070.00016.96
8.0.220.0000.00716.88
8.0.210.0030.00316.89
8.0.200.0040.00417.01
8.0.190.0030.00516.94
8.0.180.0040.00416.79
8.0.170.0090.00016.95
8.0.160.0070.00016.96
8.0.150.0040.00416.81
8.0.140.0000.00816.80
8.0.130.0050.00013.35
8.0.120.0040.00416.87
8.0.110.0000.00716.91
8.0.100.0070.00016.91
8.0.90.0030.00516.77
8.0.80.0030.01416.91
8.0.70.0040.00416.73
8.0.60.0030.00516.84
8.0.50.0040.00416.66
8.0.30.0120.00616.96
8.0.20.0140.00817.40
8.0.10.0050.00317.06
8.0.00.0070.01016.79
7.4.330.0030.00315.00
7.4.320.0030.00316.54
7.4.300.0030.00316.52
7.4.290.0040.00416.48
7.4.280.0040.00416.63
7.4.270.0080.00016.52
7.4.260.0080.00016.46
7.4.250.0000.00716.42
7.4.240.0050.00216.51
7.4.230.0000.00716.40
7.4.220.0030.01516.61
7.4.210.0030.01116.55
7.4.200.0050.00216.69
7.4.190.0000.00816.45
7.4.160.0060.00916.46
7.4.150.0060.01217.40
7.4.140.0130.00517.86
7.4.130.0050.01116.53
7.4.120.0110.00616.68
7.4.110.0130.00416.53
7.4.100.0110.00816.62
7.4.90.0070.01016.43
7.4.80.0030.01319.39
7.4.70.0080.00816.47
7.4.60.0170.00616.36
7.4.50.0000.00816.18
7.4.40.0060.00622.77
7.4.30.0060.00916.54
7.4.00.0060.00815.05
7.3.330.0000.00713.10
7.3.320.0040.00413.11
7.3.310.0000.00816.24
7.3.300.0060.00016.16
7.3.290.0150.00516.20
7.3.280.0090.00916.28
7.3.270.0120.01217.40
7.3.260.0120.00916.30
7.3.250.0080.00816.42
7.3.240.0060.00916.27
7.3.230.0160.00416.39
7.3.210.0100.00716.24
7.3.200.0080.01619.39
7.3.190.0070.01016.43
7.3.180.0130.00616.48
7.3.170.0060.00916.32
7.3.160.0060.01216.48
7.3.120.0030.01315.04
7.2.330.0070.01016.43
7.2.320.0070.01616.59
7.2.310.0070.01016.54
7.2.300.0080.00816.41
7.2.290.0100.00616.23
7.2.110.0060.00616.41
7.2.60.0050.00816.50
7.2.00.0100.01018.99
7.1.200.0080.00415.50
7.1.100.0060.00617.95
7.1.70.0060.01317.10
7.1.60.0060.01919.46
7.1.50.0040.01816.79
7.1.00.0100.07022.44
7.0.200.0220.00314.48
7.0.140.0030.07322.04
7.0.60.0100.08319.92
7.0.50.0030.04717.89
7.0.40.0000.08320.27
7.0.30.0700.05320.34
7.0.20.0170.05020.19
7.0.10.0070.07720.09
7.0.00.0000.08320.02
5.6.280.0130.06021.04
5.6.210.0070.08320.46
5.6.200.0000.04318.19
5.6.190.0070.08020.59
5.6.180.0170.05320.60
5.6.170.0300.07020.52
5.6.160.0070.08020.41
5.6.150.0070.08018.21
5.6.140.0100.08018.14
5.6.130.0070.08718.11
5.6.120.0070.04021.09
5.6.110.0170.07321.08
5.6.100.0170.07720.97
5.6.90.0130.07721.10
5.6.80.0130.06020.50
5.6.70.3900.03720.27
5.5.350.0100.08320.33
5.5.340.0070.07718.00
5.5.330.0170.07020.12
5.5.320.0030.08320.55
5.5.310.0270.03320.21
5.5.300.0130.07318.02
5.5.290.0030.04017.93
5.5.280.0070.08020.84
5.5.270.0170.07320.86
5.5.260.0000.09020.72
5.5.250.0170.07320.57
5.5.240.0170.08020.12
5.4.450.0730.06019.59
5.4.440.0800.05019.47
5.4.430.0130.05719.48
5.4.420.0870.00019.66
5.4.410.0070.06018.87
5.4.400.0370.06318.75
5.4.390.0200.05018.70
5.4.380.0170.06018.78
5.4.370.0100.03718.57
5.4.360.0130.03718.69
5.4.350.0070.03711.98
5.4.340.0050.04211.97
5.4.320.0060.03612.45
5.4.310.0070.04412.46
5.4.300.0120.03412.45
5.4.290.0090.05812.44
5.4.280.0180.14612.34
5.4.270.0220.07612.34
5.4.260.0160.07412.33
5.4.250.0090.08012.34
5.4.240.0180.09212.34
5.4.230.0100.09812.32
5.4.220.0100.04012.33
5.4.210.0080.04312.33
5.4.200.0100.05012.32
5.4.190.0070.04112.32
5.4.180.0080.03812.32
5.4.170.0130.06312.34
5.4.160.0110.03712.33
5.4.150.0070.05112.32
5.4.140.0060.06012.01
5.4.130.0110.04712.00
5.4.120.0060.06111.96
5.4.110.0130.07311.95
5.4.100.0130.05311.95
5.4.90.0130.07411.95
5.4.80.0110.06311.95
5.4.70.0070.05111.95
5.4.60.0060.05211.94
5.4.50.0040.05511.94
5.4.40.0040.05511.93
5.4.30.0060.05111.93
5.4.20.0030.04111.93
5.4.10.0050.03511.93
5.4.00.0080.03511.42
5.3.290.0060.04512.80
5.3.280.0090.03712.71
5.3.270.0070.04212.72
5.3.260.0270.12412.72
5.3.250.0130.08112.72
5.3.240.0110.04712.72
5.3.230.0050.04712.71
5.3.220.0080.03512.68
5.3.210.0040.04112.68
5.3.200.0080.03912.68
5.3.190.0120.04912.67
5.3.180.0080.05312.67
5.3.170.0060.05512.67
5.3.160.0090.05212.68
5.3.150.0070.05512.67
5.3.140.0110.04912.66
5.3.130.0100.05412.66
5.3.120.0040.04512.66
5.3.110.0080.03812.65
5.3.100.0050.03912.12
5.3.90.0090.04512.08
5.3.80.0050.03912.07
5.3.70.0050.03912.08
5.3.60.0050.03812.07
5.3.50.0080.03512.00
5.3.40.0040.03912.00
5.3.30.0070.03411.94
5.3.20.0060.03511.72
5.3.10.0070.03611.69
5.3.00.0050.04611.68
5.2.170.0080.0309.18
5.2.160.0070.0309.18
5.2.150.0050.0339.18
5.2.140.0060.0309.18
5.2.130.0050.0319.14
5.2.120.0060.0339.14
5.2.110.0070.0319.15
5.2.100.0070.0299.14
5.2.90.0090.0519.14
5.2.80.0070.0449.14
5.2.70.0040.0569.13
5.2.60.0090.0409.09
5.2.50.0030.0339.06
5.2.40.0050.0409.04
5.2.30.0050.0439.02
5.2.20.0050.0419.00
5.2.10.0050.0408.92
5.2.00.0040.0438.78
5.1.60.0040.0368.06
5.1.50.0070.0338.06
5.1.40.0040.0378.04
5.1.30.0050.0398.39
5.1.20.0120.0508.42
5.1.10.0020.0398.14
5.1.00.0040.0388.14
5.0.50.0030.0306.62
5.0.40.0050.0276.48
5.0.30.0010.0456.29
5.0.20.0040.0276.26
5.0.10.0050.0276.24
5.0.00.0070.0386.23
4.4.90.0030.0234.78
4.4.80.0050.0214.76
4.4.70.0030.0224.75
4.4.60.0030.0224.75
4.4.50.0060.0204.77
4.4.40.0050.0334.71
4.4.30.0070.0184.76
4.4.20.0030.0234.84
4.4.10.0010.0254.85
4.4.00.0040.0334.76
4.3.110.0050.0214.67
4.3.100.0040.0154.67
4.3.90.0070.0124.63
4.3.80.0050.0324.58
4.3.70.0070.0174.63
4.3.60.0040.0214.63
4.3.50.0040.0224.63
4.3.40.0050.0304.54
4.3.30.0050.0183.28
4.3.20.0020.0213.25
4.3.10.0030.0203.22
4.3.00.0030.0278.14

preferences:
44.03 ms | 400 KiB | 5 Q