3v4l.org

run code in 300+ PHP versions simultaneously
<?php set_time_limit(0); $count = 0; for ( $match1 = 0; $match1 < 3; $match1++ ) for ( $match2 = 0; $match2 < 3; $match2++ ) for ( $match3 = 0; $match3 < 3; $match3++ ) for ( $match4 = 0; $match4 < 3; $match4++ ) for ( $match5 = 0; $match5 < 3; $match5++ ) for ( $match6 = 0; $match6 < 3; $match6++ ) for ( $match7 = 0; $match7 < 3; $match7++ ) for ( $match8 = 0; $match8 < 3; $match8++ ) for ( $match9 = 0; $match9 < 3; $match9++ ) for ( $match10 = 0; $match10 < 3; $match10++ ) for ( $match11 = 0; $match11 < 3; $match11++ ) for ( $match12 = 0; $match12 < 3; $match12++ ) for ( $match13 = 0; $match13 < 3; $match13++ ) for ( $match14 = 0; $match14 < 3; $match14++ ) for ( $match15 = 0; $match15 < 3; $match15++ ) { $column = join(array($match1, $match2, $match3, $match4, $match5, $match6, $match7, $match8, $match9, $match10, $match11, $match12, $match13, $match14, $match15)); $match12 = substr_count('12', $column); $match21 = substr_count('21', $column); $match101 = substr_count('101', $column); if ( $match12 < 2 ) continue; if ( $match21 < 2 ) continue; if ( $match101 < 1 ) continue; $count++; } echo $count; ?>

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.0131.98918.63
8.3.30.0071.99518.71
8.3.20.0031.99818.52
8.3.10.0101.99120.54
8.3.00.0031.99919.38
8.2.170.0002.00522.96
8.2.160.0032.00021.23
8.2.150.0032.00124.18
8.2.140.0002.00324.66
8.2.130.0071.99526.16
8.2.120.0072.00019.38
8.2.110.0101.99122.20
8.2.100.0071.99717.54
8.2.90.0032.00017.88
8.2.80.0071.99519.16
8.2.70.0071.99417.63
8.2.60.0031.99919.43
8.2.50.0002.00618.22
8.2.40.0002.00320.42
8.2.30.0002.00219.25
8.2.20.0002.00517.75
8.2.10.0002.00117.93
8.2.00.0071.99217.82
8.1.270.0031.99924.66
8.1.260.0002.00326.35
8.1.250.0071.99728.09
8.1.240.0031.99922.20
8.1.230.0071.99622.71
8.1.220.0002.00217.79
8.1.210.0002.00518.77
8.1.200.0031.99817.13
8.1.190.0071.99317.36
8.1.180.0071.99818.10
8.1.170.0071.99418.46
8.1.160.0002.00319.00
8.1.150.0032.00220.23
8.1.140.0071.99417.54
8.1.130.0031.99917.79
8.1.120.0071.99417.52
8.1.110.0071.99417.42
8.1.100.0002.00117.55
8.1.90.0002.00217.52
8.1.80.0002.00217.60
8.1.70.0031.99917.45
8.1.60.0071.99517.63
8.1.50.0002.00317.45
8.1.40.0071.99817.66
8.1.30.0071.99517.64
8.1.20.0031.99917.68
8.1.10.0101.99217.52
8.1.00.0071.99517.53
8.0.300.0032.00019.99
8.0.290.0071.99416.58
8.0.280.0032.00018.41
8.0.270.0071.98917.22
8.0.260.0002.00316.75
8.0.250.0032.00016.93
8.0.240.0031.99816.87
8.0.230.0002.00216.84
8.0.220.0071.99416.78
8.0.210.0002.00216.92
8.0.200.0002.00216.72
8.0.190.0071.99416.81
8.0.180.0031.99916.79
8.0.170.0031.99916.88
8.0.160.0002.00216.82
8.0.150.0031.99816.84
8.0.140.0101.98316.88
8.0.130.0031.99813.31
8.0.120.0031.99916.83
8.0.110.0002.00316.87
8.0.100.0031.99916.85
8.0.90.0002.00416.81
8.0.80.0131.98816.80
8.0.70.0032.00016.65
8.0.60.0031.99916.70
8.0.50.0031.99916.75
8.0.30.0161.98216.94
8.0.20.0051.99417.11
8.0.10.0031.99816.96
8.0.00.0111.99416.70
7.4.330.0002.00312.99
7.4.320.0032.00016.50
7.4.300.0131.98816.38
7.4.290.0031.99816.47
7.4.280.0071.98616.41
7.4.270.0002.00216.49
7.4.260.0071.99513.24
7.4.250.0131.98816.50
7.4.240.0031.99816.46
7.4.230.0002.00416.31
7.4.220.0071.99616.27
7.4.210.0151.98416.51
7.4.200.0071.99716.20
7.4.190.0101.99116.65
7.4.160.0101.99416.27
7.4.150.0131.99216.28
7.4.140.0121.99216.38
7.4.130.0151.98416.47
7.4.120.0101.99316.38
7.4.110.0192.25816.49
7.4.100.0102.47516.52
7.4.90.0202.42916.36
7.4.80.0162.36016.36
7.4.70.0232.32716.44
7.4.60.0370.79116.47
7.4.50.0032.49616.52
7.4.40.0032.49216.31
7.4.30.0002.46716.50
7.4.00.0132.47814.44
7.3.330.0061.99413.13
7.3.320.0002.00213.05
7.3.310.0101.99316.37
7.3.300.0071.99516.21
7.3.290.0161.98216.17
7.3.280.0281.96416.19
7.3.270.0071.99716.23
7.3.260.0151.99316.39
7.3.250.0211.98016.48
7.3.240.0091.98516.28
7.3.230.0202.43616.40
7.3.210.0162.45916.43
7.3.200.0262.44919.39
7.3.190.0182.43516.44
7.3.180.0132.46916.44
7.3.170.0262.44216.41
7.3.160.0322.31616.14
7.3.120.0102.48514.79
7.2.330.0162.46016.59
7.2.320.0132.44216.43
7.2.310.0162.40516.50
7.2.300.0162.43316.61
7.2.290.0102.46016.35
7.2.00.0032.49819.48
7.1.100.0032.49817.84
7.1.70.0032.49816.83
7.1.60.0102.49119.40
7.1.50.0172.48634.72
7.1.00.0002.50022.24
7.0.200.0102.49116.71
7.0.140.0072.49321.97
7.0.120.0032.49722.01
7.0.60.0072.49319.82
7.0.50.0132.48717.86
7.0.40.0132.47019.79
7.0.30.0302.47019.72
7.0.20.0302.47019.84
7.0.10.0132.48719.94
7.0.00.0132.48719.88
5.6.280.0032.49721.13
5.6.210.0102.49020.48
5.6.200.0102.49018.13
5.6.190.0132.48720.38
5.6.180.0302.47020.48
5.6.170.0472.45320.27
5.6.160.0072.49320.25
5.6.150.0032.49718.14
5.6.140.0102.49018.18
5.6.130.0002.50018.16
5.6.120.0172.48320.99
5.6.110.0102.49020.95
5.6.100.0072.49321.04
5.6.90.0102.49021.00
5.6.80.0002.50020.39
5.5.350.0132.46720.61
5.5.340.0072.44720.94
5.5.330.0272.32320.93
5.5.320.0072.44720.95
5.5.310.0172.46320.72
5.5.300.0132.46020.96
5.5.290.0132.44320.99
5.5.280.0232.46020.88
5.5.270.0072.48320.97
5.5.260.0102.46020.90
5.5.250.0202.44720.75
5.5.240.0172.46720.18
5.4.450.0032.48019.43
5.4.440.0272.36719.48
5.4.430.0132.47319.32
5.4.420.0102.47019.18
5.4.410.0032.48019.27
5.4.400.0172.47019.01
5.4.390.0132.47019.11
5.4.380.0072.47718.96
5.4.370.0132.46019.00
5.4.360.0172.46719.00
5.4.350.0132.44319.16
5.4.340.0102.46318.80
5.4.320.0072.47319.04
5.4.310.0132.47019.07
5.4.300.0132.48019.00
5.4.290.0132.46018.98
5.4.280.0232.31715.70
5.4.270.0172.34215.73
5.4.260.0172.29415.68
5.4.250.0142.24415.72
5.4.240.0092.23715.71
5.4.230.0172.23515.64
5.4.220.0152.28015.66
5.4.210.0112.26515.72
5.4.200.0072.24215.69
5.4.190.0122.23615.68
5.4.180.0102.23815.57
5.4.170.0162.24815.66
5.4.160.0252.20015.63
5.4.150.0312.23115.67
5.4.140.0202.29914.21
5.4.130.0162.22914.15
5.4.120.0122.22414.17
5.4.110.0152.21914.08
5.4.100.0122.02514.19
5.4.90.0092.05414.13
5.4.80.0102.17114.18
5.4.70.0102.25614.21
5.4.60.0302.22314.16
5.4.50.0132.22614.09
5.4.40.0212.21614.09
5.4.30.0092.23114.05
5.4.20.0092.24414.16
5.4.10.0102.24814.18
5.4.00.0172.27613.63
5.3.290.0132.47314.37
5.3.280.0152.24213.55
5.3.270.0082.23713.54
5.3.260.0122.22513.55
5.3.250.0132.19213.54
5.3.240.0202.21013.49
5.3.230.0222.25513.53
5.3.220.0082.24513.52
5.3.210.0092.24613.50
5.3.200.0132.13013.52
5.3.190.0082.02113.51
5.3.180.0172.03013.50
5.3.170.0082.20213.51
5.3.160.0092.23713.45
5.3.150.0082.24713.51
5.3.140.0202.23513.44
5.3.130.0172.24813.50
5.3.120.0182.24413.43
5.3.110.0132.24013.48
5.3.100.0102.23312.99
5.3.90.0102.25312.88
5.3.80.0102.24012.90
5.3.70.0072.24812.91
5.3.60.0192.23012.90
5.3.50.0092.24412.83
5.3.40.0102.23212.88

preferences:
43.77 ms | 400 KiB | 5 Q