3v4l.org

run code in 300+ PHP versions simultaneously
<?php $in = "iwrupvqb"; function bruteforce($input) { $i = 0; echo substr("123456", 0, 5); } bruteforce();

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.0070.00716.46
8.3.50.0120.00821.97
8.3.40.0170.00318.78
8.3.30.0090.00618.84
8.3.20.0040.00420.39
8.3.10.0070.00023.61
8.3.00.0100.00019.97
8.2.180.0100.01016.73
8.2.170.0120.00322.96
8.2.160.0070.00720.46
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0080.00021.02
8.2.120.0040.00426.35
8.2.110.0040.00419.29
8.2.100.0040.00817.72
8.2.90.0030.00619.22
8.2.80.0040.00417.97
8.2.70.0060.00317.50
8.2.60.0110.00217.55
8.2.50.0030.00518.07
8.2.40.0030.00622.23
8.2.30.0040.00420.54
8.2.20.0040.00417.59
8.2.10.0000.00718.05
8.2.00.0050.00217.93
8.1.280.0070.00725.92
8.1.270.0040.00420.38
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0090.00421.93
8.1.230.0110.00020.85
8.1.220.0060.00317.74
8.1.210.0050.00318.77
8.1.200.0050.00517.35
8.1.190.0040.00417.12
8.1.180.0050.00218.10
8.1.170.0060.00318.46
8.1.160.0040.00420.66
8.1.150.0020.00518.84
8.1.140.0050.00319.55
8.1.130.0000.00717.55
8.1.120.0040.00317.39
8.1.110.0040.00417.40
8.1.100.0070.00317.33
8.1.90.0070.00017.39
8.1.80.0000.00717.35
8.1.70.0070.00017.22
8.1.60.0000.00817.57
8.1.50.0090.00017.54
8.1.40.0050.00317.50
8.1.30.0030.00517.62
8.1.20.0040.00417.54
8.1.10.0000.00817.56
8.1.00.0080.00017.52
8.0.300.0000.00718.77
8.0.290.0040.00416.75
8.0.280.0000.00718.37
8.0.270.0000.00717.07
8.0.260.0080.00017.20
8.0.250.0050.00316.83
8.0.240.0020.00516.92
8.0.230.0070.00017.00
8.0.220.0070.00016.86
8.0.210.0000.00816.82
8.0.200.0040.00416.98
8.0.190.0050.00317.02
8.0.180.0040.00316.89
8.0.170.0070.00016.89
8.0.160.0040.00416.87
8.0.150.0080.00016.86
8.0.140.0070.00016.80
8.0.130.0000.00613.33
8.0.120.0060.00316.82
8.0.110.0080.00016.83
8.0.100.0040.00416.70
8.0.90.0000.00816.84
8.0.80.0060.01316.93
8.0.70.0040.00416.85
8.0.60.0040.00416.76
8.0.50.0040.00416.74
8.0.30.0130.00516.88
8.0.20.0100.00817.40
8.0.10.0030.00316.97
8.0.00.0090.00816.75
7.4.330.0000.00516.66
7.4.320.0030.00316.46
7.4.300.0030.00316.50
7.4.290.0030.00316.51
7.4.280.0030.00616.51
7.4.270.0000.00716.43
7.4.260.0040.00416.48
7.4.250.0030.00516.50
7.4.240.0030.00416.48
7.4.230.0030.00316.62
7.4.220.0040.01516.56
7.4.210.0090.00916.64
7.4.200.0070.00016.50
7.4.160.0110.00416.38
7.4.150.0110.00717.40
7.4.140.0070.01117.86
7.4.130.0110.00916.49
7.4.120.0150.00716.45
7.4.110.0060.01216.47
7.4.100.0130.00416.43
7.4.90.0080.00816.59
7.4.80.0140.01019.39
7.4.70.0100.00616.53
7.4.60.0160.00316.50
7.4.50.0100.00316.55
7.4.40.0130.00316.32
7.4.30.0100.01316.58
7.4.00.0090.00614.97
7.3.330.0030.00413.16
7.3.320.0000.00513.30
7.3.310.0020.00516.14
7.3.300.0030.00316.18
7.3.290.0070.00016.13
7.3.280.0080.01016.25
7.3.270.0140.00317.40
7.3.260.0130.00316.36
7.3.250.0100.00916.49
7.3.240.0070.01016.32
7.3.230.0130.00316.39
7.3.210.0080.00816.32
7.3.200.0030.01316.34
7.3.190.0000.01616.31
7.3.180.0160.00716.62
7.3.170.0130.00916.29
7.3.160.0140.00616.39
7.3.10.0040.00716.41
7.3.00.0080.00316.41
7.2.330.0070.01016.48
7.2.320.0120.00916.38
7.2.310.0130.00416.34
7.2.300.0100.00716.62
7.2.290.0070.01416.64
7.2.130.0060.00616.29
7.2.120.0070.00716.34
7.2.110.0160.00616.55
7.2.100.0130.00516.45
7.2.90.0110.00716.45
7.2.80.0150.00316.23
7.2.70.0040.00816.54
7.2.60.0070.00916.44
7.2.50.0140.00716.61
7.2.40.0100.01416.57
7.2.30.0060.01116.51
7.2.20.0170.00316.63
7.2.10.0120.00616.42
7.2.00.0080.00617.94
7.1.250.0030.01015.28
7.1.200.0060.00615.55
7.1.100.0090.00018.13
7.1.70.0000.01317.19
7.1.60.0070.01719.44
7.1.50.0070.01134.80
7.1.00.0030.07722.43
7.0.200.0040.00416.79
7.0.60.0070.08020.03
7.0.50.0070.08017.84
7.0.40.0030.06020.21
7.0.30.0430.03720.08
7.0.20.0430.06720.25
7.0.10.0030.09020.10
7.0.00.0030.04020.23
5.6.280.0030.05320.85
5.6.210.0100.05320.47
5.6.200.0100.07718.19
5.6.190.0030.09320.41
5.6.180.0300.07720.48
5.6.170.0300.07720.50
5.6.160.0070.07320.52
5.6.150.0000.07718.19
5.6.140.0030.05318.12
5.6.130.0000.04318.21
5.6.120.0070.04321.04
5.6.110.0170.07721.14
5.6.100.0100.05721.15
5.6.90.0030.09020.99
5.6.80.0100.05320.51
5.5.350.0070.04320.50
5.5.340.0000.08317.98
5.5.330.0000.04720.43
5.5.320.0670.06320.29
5.5.310.0230.05320.42
5.5.300.0000.04017.96
5.5.290.0100.06717.98
5.5.280.0100.07720.98
5.5.270.0100.08320.63
5.5.260.0100.07720.73
5.5.250.0030.08720.70
5.5.240.0200.05320.29

preferences:
50.83 ms | 401 KiB | 5 Q