3v4l.org

run code in 300+ PHP versions simultaneously
<?php if($numResults > 0) { ?> <button id="unfollow" class="button"> unfollow </button> <?php} else { ?> <button id="follow" class="button"> follow </button> <?php } ?>

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.0110.00718.43
8.3.60.0100.01018.30
8.3.50.0120.00822.00
8.3.40.0040.01118.56
8.3.30.0110.00418.79
8.3.20.0030.00520.21
8.3.10.0040.00423.48
8.3.00.0050.00320.79
8.2.180.0140.00718.16
8.2.170.0090.00622.96
8.2.160.0100.00720.34
8.2.150.0030.00524.18
8.2.140.0000.00724.66
8.2.130.0030.01026.16
8.2.120.0030.00520.91
8.2.110.0090.00020.97
8.2.100.0060.00617.72
8.2.90.0060.00317.84
8.2.80.0080.00017.97
8.2.70.0000.00817.63
8.2.60.0030.00717.80
8.2.50.0060.00318.07
8.2.40.0090.00019.95
8.2.30.0000.00718.17
8.2.20.0050.00317.60
8.2.10.0050.00318.04
8.2.00.0000.00817.71
8.1.280.0110.00725.92
8.1.270.0090.00024.01
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0030.00622.59
8.1.230.0070.00420.97
8.1.220.0000.00717.74
8.1.210.0040.00418.88
8.1.200.0110.00417.22
8.1.190.0000.00817.00
8.1.180.0040.00418.10
8.1.170.0040.00418.55
8.1.160.0000.00822.05
8.1.150.0040.00418.61
8.1.140.0000.00717.43
8.1.130.0000.00817.67
8.1.120.0050.00317.32
8.1.110.0090.00317.41
8.1.100.0040.00417.24
8.1.90.0070.00017.45
8.1.80.0030.00317.45
8.1.70.0040.00417.35
8.1.60.0080.00017.40
8.1.50.0050.00317.41
8.1.40.0030.00517.43
8.1.30.0060.00317.58
8.1.20.0000.00717.47
8.1.10.0030.00617.23
8.1.00.0040.00417.16
8.0.300.0040.00420.03
8.0.290.0070.00016.63
8.0.280.0030.00318.41
8.0.270.0020.00517.16
8.0.260.0030.00317.05
8.0.250.0000.00716.92
8.0.240.0040.00416.93
8.0.230.0050.00216.91
8.0.220.0060.00016.92
8.0.210.0000.00816.92
8.0.200.0000.00716.85
8.0.190.0080.00016.82
8.0.180.0000.00716.86
8.0.170.0000.00816.94
8.0.160.0040.00416.82
8.0.150.0050.00216.84
8.0.140.0000.00716.73
8.0.130.0030.00313.46
8.0.120.0070.00016.80
8.0.110.0000.00716.90
8.0.100.0000.00716.74
8.0.90.0070.00017.01
8.0.80.0040.01116.83
8.0.70.0000.00816.88
8.0.60.0060.00316.73
8.0.50.0080.00016.67
8.0.30.0110.01317.19
8.0.20.0110.00817.40
8.0.10.0000.00816.97
8.0.00.0170.00216.68
7.4.330.0050.00015.00
7.4.320.0000.00616.49
7.4.300.0070.00016.42
7.4.290.0030.00316.32
7.4.280.0060.00316.29
7.4.270.0030.00316.45
7.4.260.0030.00316.43
7.4.250.0000.00716.33
7.4.240.0010.00616.48
7.4.230.0030.00316.56
7.4.220.0110.00516.61
7.4.210.0110.00416.48
7.4.200.0030.00316.27
7.4.160.0040.01116.38
7.4.150.0120.00617.40
7.4.140.0110.00817.86
7.4.130.0100.00716.46
7.4.120.0100.01016.42
7.4.110.0060.01316.33
7.4.100.0080.00816.50
7.4.90.0030.01316.55
7.4.80.0100.00719.39
7.4.70.0030.01416.46
7.4.60.0150.00616.45
7.4.50.0040.00416.59
7.4.40.0090.00616.36
7.4.30.0060.01316.45
7.3.330.0080.00013.15
7.3.320.0030.00312.95
7.3.310.0000.00716.35
7.3.300.0000.00716.27
7.3.290.0040.01516.24
7.3.280.0070.01016.26
7.3.270.0100.01017.40
7.3.260.0130.00416.45
7.3.250.0110.00716.27
7.3.240.0110.01116.32
7.3.230.0100.00716.39
7.3.210.0100.01016.44
7.3.200.0120.00619.39
7.3.190.0030.01516.51
7.3.180.0040.01216.45
7.3.170.0060.00916.32
7.3.160.0070.01316.41
7.2.330.0100.00916.47
7.2.320.0130.00716.44
7.2.310.0120.00916.64
7.2.300.0070.01116.55
7.2.290.0090.00916.48
5.5.50.0070.04020.23
5.5.40.0000.04020.17
5.5.30.0070.03719.96
5.5.20.0070.03720.05
5.5.10.0130.02720.04
5.5.00.0000.03720.23
5.4.210.0070.03318.93
5.4.200.0070.03319.24
5.4.190.0030.05018.94
5.4.180.0070.03318.98
5.4.170.0070.03019.30
5.4.160.0000.03719.04
5.4.150.0100.07319.14
5.4.140.0000.04016.36
5.4.130.0030.03716.48
5.4.120.0000.05716.52
5.4.110.0030.03716.41
5.4.100.0000.04016.50
5.4.90.0070.03316.50
5.4.80.0000.05016.49
5.4.70.0030.03316.49
5.4.60.0030.03016.45
5.4.50.0000.03716.59
5.4.40.0170.04716.53
5.4.30.0030.03316.39
5.4.20.0000.03716.44
5.4.10.0100.07316.55
5.4.00.0000.03715.84
5.3.290.0000.08314.74
5.3.280.0030.03314.53
5.3.270.0000.05314.70
5.3.260.0000.05014.47
5.3.250.0000.07014.44
5.3.240.0000.04014.55
5.3.230.0000.07014.50
5.3.220.0030.03314.66
5.3.210.0070.05014.58
5.3.200.0000.04014.64
5.3.190.0030.08014.57
5.3.180.0100.02714.42
5.3.170.0030.03714.45
5.3.160.0030.04014.50
5.3.150.0030.03714.50
5.3.140.0030.04014.61
5.3.130.0000.04014.61
5.3.120.0000.04314.42
5.3.110.0000.04314.63
5.3.100.0100.06313.94
5.3.90.0030.04014.02
5.3.80.0030.06014.09
5.3.70.0070.03013.95
5.3.60.0000.04314.06
5.3.50.0030.04313.82
5.3.40.0030.03713.88
5.3.30.0000.03313.84
5.3.20.0030.03313.53
5.3.10.0100.03713.73
5.3.00.0000.04713.54
5.2.170.0070.06011.04
5.2.160.0000.03011.13
5.2.150.0000.05311.15
5.2.140.0000.03011.02
5.2.130.0070.02711.04
5.2.120.0030.02711.25
5.2.110.0000.03011.09
5.2.100.0000.04011.04
5.2.90.0030.02711.02
5.2.80.0000.03010.98
5.2.70.0000.03011.00
5.2.60.0000.03011.05
5.2.50.0000.03711.04
5.2.40.0070.04310.91
5.2.30.0030.05010.90
5.2.20.0030.05010.89
5.2.10.0100.05710.85
5.2.00.0100.05310.66
5.1.60.0070.04710.66
5.1.50.0100.03710.66
5.1.40.0070.02710.66
5.1.30.0000.05710.66
5.1.20.0100.04710.66
5.1.10.0070.02710.66
5.1.00.0000.06010.66
5.0.50.0030.04010.66
5.0.40.0030.04710.66
5.0.30.0000.07010.66
5.0.20.0070.03710.66
5.0.10.0000.04010.66
5.0.00.0000.05010.66
4.4.90.0000.01710.66
4.4.80.0030.02010.66
4.4.70.0100.03010.66
4.4.60.0000.02010.66
4.4.50.0000.03710.66
4.4.40.0030.05010.66
4.4.30.0070.03310.66
4.4.20.0030.03710.66
4.4.10.0030.03310.66
4.4.00.0000.05710.66
4.3.110.0030.03710.66
4.3.100.0000.02710.66
4.3.90.0070.02710.66
4.3.80.0000.04310.66
4.3.70.0030.01710.66
4.3.60.0070.03010.66
4.3.50.0000.03310.66
4.3.40.0030.05010.66
4.3.30.0000.02710.66
4.3.20.0030.03710.66
4.3.10.0070.02710.66
4.3.00.0000.03710.66

preferences:
37.9 ms | 401 KiB | 5 Q