3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string1 = 'abcdefghijklmonpqrst'; for($i = 1; $i <= 200000; $i++) { $x=$i * 5; $x=$x + $x; $x=$x/10; $string3 = $string1 . strrev($string1); $string2 = substr($string1, 20, 1) . substr($string1, 0, 20); $string1 = $string2; } ?>

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.70.0070.05616.50
8.3.60.0160.03918.20
8.3.50.0120.05717.26
8.3.40.0000.04818.51
8.3.30.0100.04918.41
8.3.20.0030.03518.48
8.3.10.0030.02420.40
8.3.00.0000.02617.38
8.2.180.0100.05616.50
8.2.170.0100.03722.96
8.2.160.0030.04221.96
8.2.150.0040.02224.18
8.2.140.0070.02024.66
8.2.130.0040.02126.16
8.2.120.0040.02219.89
8.2.110.0090.03121.11
8.2.100.0070.03117.91
8.2.90.0030.02819.04
8.2.80.0100.02617.97
8.2.70.0030.03017.61
8.2.60.0070.02717.93
8.2.50.0100.02318.07
8.2.40.0030.02718.22
8.2.30.0060.02417.92
8.2.20.0040.02817.65
8.2.10.0070.02417.61
8.2.00.0000.03317.73
8.1.280.0030.05525.92
8.1.270.0060.01823.99
8.1.260.0100.04026.35
8.1.250.0000.02428.09
8.1.240.0070.03222.55
8.1.230.0070.02720.92
8.1.220.0100.02318.77
8.1.210.0040.02818.95
8.1.200.0070.03017.00
8.1.190.0030.02917.50
8.1.180.0090.02518.10
8.1.170.0090.02218.63
8.1.160.0030.02718.79
8.1.150.0030.02718.63
8.1.140.0060.02517.34
8.1.130.0060.02217.69
8.1.120.0030.02717.39
8.1.110.0000.03517.45
8.1.100.0060.02617.50
8.1.90.0030.02717.35
8.1.80.0030.02717.50
8.1.70.0030.02817.42
8.1.60.0070.03117.57
8.1.50.0070.03117.38
8.1.40.0060.03517.54
8.1.30.0000.03717.58
8.1.20.0000.03817.68
8.1.10.0070.03117.50
8.1.00.0030.03517.46
8.0.300.0060.02920.02
8.0.290.0000.03016.88
8.0.280.0070.02318.38
8.0.270.0000.03217.18
8.0.260.0040.02818.57
8.0.250.0000.03016.98
8.0.240.0030.04016.94
8.0.230.0070.02416.84
8.0.220.0000.03316.87
8.0.210.0040.02916.91
8.0.200.0000.03216.95
8.0.190.0000.03816.95
8.0.180.0000.03716.73
8.0.170.0030.03616.93
8.0.160.0030.03316.89
8.0.150.0030.03516.93
8.0.140.0000.03816.83
8.0.130.0040.03213.35
8.0.120.0030.03516.84
8.0.110.0030.03316.94
8.0.100.0060.03116.70
8.0.90.0070.03016.71
8.0.80.0130.06916.87
8.0.70.0030.03716.94
8.0.60.0030.03316.70
8.0.50.0000.03816.96
8.0.30.0100.05117.11
8.0.20.0130.04217.07
8.0.10.0030.03316.84
8.0.00.0130.05616.64
7.4.330.0000.02914.68
7.4.320.0030.03016.57
7.4.300.0000.03116.59
7.4.290.0070.03116.50
7.4.280.0000.03916.57
7.4.270.0060.03116.55
7.4.260.0000.03713.26
7.4.250.0000.03916.43
7.4.240.0030.03716.40
7.4.230.0070.03116.33
7.4.220.0030.06816.57
7.4.210.0110.05316.53
7.4.200.0030.03516.55
7.4.190.0070.03316.32
7.4.160.0090.04616.37
7.4.150.0160.04217.07
7.4.140.0110.04517.17
7.4.130.0100.06416.49
7.4.120.0100.05916.44
7.4.110.0160.03816.45
7.4.100.0000.05916.43
7.4.90.0160.07416.49
7.4.80.0100.04718.80
7.4.70.0080.04816.39
7.4.60.0070.08316.50
7.4.50.0060.03916.46
7.4.40.0030.07322.27
7.4.30.0160.04016.46
7.4.00.0030.07514.77
7.3.330.0060.03213.19
7.3.320.0000.04413.20
7.3.310.0000.04016.39
7.3.300.0030.03616.35
7.3.290.0070.07816.32
7.3.280.0070.05816.36
7.3.270.0100.04717.07
7.3.260.0130.06818.24
7.3.250.0130.06016.54
7.3.240.0150.04216.70
7.3.230.0100.04616.47
7.3.210.0190.04416.32
7.3.200.0090.06919.39
7.3.190.0100.05116.38
7.3.180.0100.04716.43
7.3.170.0160.04216.43
7.3.160.0110.04616.63
7.3.120.0070.06814.84
7.2.330.0130.05216.71
7.2.320.0070.05616.79
7.2.310.0060.07216.54
7.2.300.0130.04516.68
7.2.290.0160.04616.40
7.2.00.0100.03319.51
7.1.100.0070.08417.48
7.1.70.0030.07416.91
7.1.60.0030.04817.21
7.1.50.0070.08416.66
7.1.00.0000.14722.35
7.0.200.0000.09616.79
7.0.140.0070.14322.18
7.0.60.0030.07719.88
7.0.50.0130.13017.91
7.0.40.0070.13720.08
7.0.30.0270.10320.31
7.0.20.0470.11020.18
7.0.10.0030.14720.00
7.0.00.0030.08720.29
5.6.280.0070.23021.03
5.6.210.0000.19720.52
5.6.200.0030.15018.11
5.6.190.0100.19720.43
5.6.180.0130.14020.36
5.6.170.0270.19020.51
5.6.160.0100.19720.71
5.6.150.0000.13318.12
5.6.140.0130.18018.16
5.6.130.0030.17018.09
5.6.120.0030.13721.02
5.6.110.0070.14020.97
5.6.100.0030.17720.98
5.6.90.0070.19721.12
5.6.80.0030.16720.35
5.5.350.0130.20720.31
5.5.340.0030.19718.02
5.5.330.0000.15020.23
5.5.320.0200.15720.24
5.5.310.0230.20020.30
5.5.300.0100.20017.87
5.5.290.0030.21018.00
5.5.280.0000.16320.89
5.5.270.0100.14020.75
5.5.260.0070.16720.86
5.5.250.0100.18720.57
5.5.240.4170.14320.25
5.4.450.0000.14019.50
5.4.440.0100.19719.41
5.4.430.0070.19719.11
5.4.420.0030.15019.50
5.4.410.0030.13719.34
5.4.400.0130.17318.79
5.4.390.0000.14319.19
5.4.380.0070.14018.81
5.4.370.0070.13018.90
5.4.360.0100.19018.92
5.4.350.0100.15719.18
5.4.340.0200.14719.09
5.4.320.0100.12719.09
5.4.310.0030.14318.81
5.4.300.0100.14719.18
5.4.290.0100.14019.08
5.4.280.0030.14019.15
5.4.270.0070.19019.17
5.4.260.0100.15719.14
5.4.250.0070.13019.14
5.4.240.0030.13718.80
5.4.230.0070.16719.16
5.4.220.0070.18719.07
5.4.210.0070.18319.14
5.4.200.0000.19018.80
5.4.190.0000.13719.18
5.4.180.0030.17718.78
5.4.170.0030.17719.07
5.4.160.0000.16319.16
5.4.150.0000.19018.76
5.4.140.0130.20316.34
5.4.130.0030.15016.21
5.4.120.0030.20016.33
5.4.110.0030.13316.23
5.4.100.0030.15016.36
5.4.90.0030.19316.27
5.4.80.0070.19316.39
5.4.70.0100.12316.27
5.4.60.0000.18016.41
5.4.50.0030.16016.25
5.4.40.0070.15316.38
5.4.30.0000.15016.33
5.4.20.0130.13316.34
5.4.10.0030.15016.34
5.4.00.0070.13315.80
5.3.290.0070.19314.60
5.3.280.0070.15014.38
5.3.270.0000.15714.54
5.3.260.0000.16314.52
5.3.250.0100.19014.54
5.3.240.0030.20014.39
5.3.230.0070.19714.50
5.3.220.0030.15314.38
5.3.210.0000.15714.39
5.3.200.0000.15314.50
5.3.190.0070.21314.35
5.3.180.0070.15014.49
5.3.170.0070.17014.52
5.3.160.0000.16014.58
5.3.150.0030.20714.65
5.3.140.0030.15714.48
5.3.130.0070.21314.63
5.3.120.0070.17314.55
5.3.110.0070.16014.37
5.3.100.0000.20713.98
5.3.90.0030.19713.95
5.3.80.0030.15313.97
5.3.70.0030.15313.95
5.3.60.0000.15713.95
5.3.50.0000.15713.73
5.3.40.0100.15313.78
5.3.30.0130.21713.70
5.3.20.0100.16013.70
5.3.10.0070.21013.62
5.3.00.0070.14713.47
5.2.170.0030.18711.03
5.2.160.0100.17711.08
5.2.150.0170.20011.29
5.2.140.0100.20011.13
5.2.130.0030.15011.25
5.2.120.0030.16011.04
5.2.110.0100.20711.00
5.2.100.0130.18711.00
5.2.90.0030.14711.00
5.2.80.0000.18711.09
5.2.70.0100.19011.25
5.2.60.0100.19311.03
5.2.50.0070.18311.02
5.2.40.0000.14311.00
5.2.30.0000.18311.00
5.2.20.0070.13311.00
5.2.10.0000.14311.00
5.2.00.0000.18711.00
5.1.60.0030.13311.00
5.1.50.0030.13311.00
5.1.40.0100.11711.00
5.1.30.0000.13011.00
5.1.20.0070.12311.00
5.1.10.0030.12311.00
5.1.00.0000.13011.00
5.0.50.0000.28011.00
5.0.40.0030.24711.00
5.0.30.0000.24711.00
5.0.20.0000.27311.00
5.0.10.0000.24711.00
5.0.00.0030.30311.00
4.4.90.0000.29311.00
4.4.80.0030.23311.00
4.4.70.0000.23311.00
4.4.60.0000.32011.00
4.4.50.0000.24311.00
4.4.40.0030.23311.00
4.4.30.0000.22711.00
4.4.20.0030.22311.00
4.4.10.0230.26011.00
4.4.00.0070.23711.00
4.3.110.0000.22711.00
4.3.100.0030.24011.00
4.3.90.0030.29011.00
4.3.80.0000.30711.00
4.3.70.0000.25711.00
4.3.60.0000.28311.00
4.3.50.0000.24011.00
4.3.40.0000.24311.00
4.3.30.0000.30011.00
4.3.20.0000.24711.00
4.3.10.0000.22311.00
4.3.00.0070.26311.00

preferences:
43.14 ms | 401 KiB | 5 Q