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)); $count0 = substr_count($column, '0'); $count1 = substr_count($column, '1'); $count2 = substr_count($column, '2'); $count12 = substr_count($column, '12'); $count21 = substr_count($column, '21'); $count101 = substr_count($column, '101'); if ( $count0 < 1 ) continue; if ( $count1 < 5 ) continue; if ( $count2 < 5 ) continue; if ( $count12 < 2 ) continue; if ( $count21 < 2 ) continue; if ( $count101 < 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.98818.54
8.3.30.0101.99118.58
8.3.20.0032.00018.69
8.3.10.0031.99820.37
8.3.00.0031.99619.00
8.2.170.0071.99922.96
8.2.160.0071.99620.53
8.2.150.0071.99524.18
8.2.140.0002.00224.66
8.2.130.0031.99826.16
8.2.120.0131.99019.53
8.2.110.0002.00320.35
8.2.100.0101.99417.91
8.2.90.0002.00219.26
8.2.80.0071.99217.97
8.2.70.0081.98917.00
8.2.60.0032.01217.80
8.2.50.0032.00118.07
8.2.40.0072.00918.02
8.2.30.0002.00318.23
8.2.20.0031.99917.88
8.2.10.0032.00017.83
8.2.00.0071.99817.80
8.1.270.0032.00024.66
8.1.260.0071.99626.35
8.1.250.0031.99828.09
8.1.240.0171.98522.30
8.1.230.0002.00420.97
8.1.220.0071.99418.77
8.1.210.0071.99518.77
8.1.200.0071.99517.35
8.1.190.0101.99117.55
8.1.180.0071.99418.10
8.1.170.0031.99918.65
8.1.160.0002.00218.88
8.1.150.0002.00118.81
8.1.140.0001.99217.55
8.1.130.0002.00417.91
8.1.120.0002.00317.49
8.1.110.0071.99617.57
8.1.100.0032.00017.45
8.1.90.0031.99917.50
8.1.80.0031.99717.50
8.1.70.0031.99917.53
8.1.60.0032.00017.60
8.1.50.0032.00017.61
8.1.40.0002.00117.52
8.1.30.0031.99917.69
8.1.20.0031.99917.73
8.1.10.0031.99417.63
8.1.00.0101.99017.53
8.0.300.0032.00019.93
8.0.290.0031.99917.17
8.0.280.0031.99718.54
8.0.270.0031.99517.15
8.0.260.0002.00216.90
8.0.250.0031.99816.96
8.0.240.0131.97716.78
8.0.230.0031.99916.84
8.0.220.0002.00416.84
8.0.210.0031.99916.85
8.0.200.0071.99716.83
8.0.190.0002.00417.02
8.0.180.0031.99816.82
8.0.170.0002.00216.86
8.0.160.0071.99516.89
8.0.150.0002.00216.93
8.0.140.0101.97916.80
8.0.130.0071.99613.33
8.0.120.0002.00316.91
8.0.110.0071.99816.70
8.0.100.0032.00016.68
8.0.90.0071.99716.75
8.0.80.0161.98116.75
8.0.70.0002.00316.86
8.0.60.0071.99416.66
8.0.50.0002.00116.68
8.0.30.0111.99217.04
8.0.20.0151.98917.02
8.0.10.0002.00316.90
8.0.00.0101.99416.70
7.4.330.0031.99812.98
7.4.320.0002.00316.38
7.4.300.0002.00216.33
7.4.290.0031.99916.34
7.4.280.0031.99916.38
7.4.270.0002.00216.38
7.4.260.0031.99813.27
7.4.250.0032.00016.50
7.4.240.0071.99416.45
7.4.230.0071.99416.26
7.4.220.0031.99716.46
7.4.210.0081.99516.50
7.4.200.0031.99716.45
7.4.190.0071.99616.57
7.4.160.0201.99016.46
7.4.150.0161.98016.53
7.4.140.0101.99216.56
7.4.130.0131.99116.41
7.4.120.0101.99216.51
7.4.110.0032.47316.48
7.4.100.0132.44916.48
7.4.90.0102.43516.38
7.4.80.0342.08316.50
7.4.70.0072.46716.43
7.4.60.0340.65916.57
7.4.50.0032.49516.32
7.4.40.0132.48516.36
7.4.30.0132.45716.51
7.4.00.0102.48814.83
7.3.330.0002.00213.11
7.3.320.0032.00013.10
7.3.310.0101.99316.28
7.3.300.0031.99816.25
7.3.290.0191.98416.10
7.3.280.0161.98816.22
7.3.270.0032.01016.55
7.3.260.0181.98016.41
7.3.250.0161.99116.30
7.3.240.0191.97716.28
7.3.230.0062.45916.42
7.3.210.0062.44216.28
7.3.200.0232.33619.39
7.3.190.0072.37816.10
7.3.180.0162.45216.46
7.3.170.0102.45816.13
7.3.160.0262.43216.47
7.3.120.0102.48514.78
7.2.330.0232.42216.57
7.2.320.0132.44916.79
7.2.310.0192.44916.46
7.2.300.0232.32316.64
7.2.290.0202.45516.64
7.2.60.0032.49416.92
7.1.200.0072.49215.64
7.1.70.0002.50116.82
7.1.60.0072.49519.40
7.1.50.0102.49217.25
7.1.00.0072.49322.42
7.0.200.0102.49116.45
7.0.140.0102.49022.21
7.0.120.0072.49322.25
7.0.60.0072.49319.89
7.0.50.0102.49017.79
7.0.40.0072.49319.82
7.0.30.0272.47319.86
7.0.20.0232.47719.75
7.0.10.0102.49019.80
7.0.00.0032.49719.75
5.6.280.0032.49720.93
5.6.210.0002.50020.79
5.6.200.0032.49718.14
5.6.190.0102.49020.25
5.6.180.0202.48020.50
5.6.170.0232.47720.36
5.6.160.0072.49320.39
5.6.150.0102.49018.17
5.6.140.0002.50018.23
5.6.130.0102.49018.09
5.6.120.0072.49321.02
5.6.110.0102.49021.15
5.6.100.0102.49021.01
5.6.90.0132.48720.88
5.6.80.0032.49720.38
5.5.350.0132.38020.50
5.5.340.0102.24320.80
5.5.330.0201.96020.96
5.5.320.0231.98720.95
5.5.310.0132.01720.96
5.5.300.0101.99720.98
5.5.290.0132.43320.79
5.5.280.0332.16020.88
5.5.270.0102.03320.98
5.5.260.0201.95020.96
5.5.250.0332.42320.66
5.5.240.0302.41720.38
5.4.450.0272.17019.39
5.4.440.0132.44319.29
5.4.430.0301.87319.23
5.4.420.0471.74319.29
5.4.410.0202.27319.26
5.4.400.0172.34318.99
5.4.390.0032.11319.01
5.4.380.0171.93318.96
5.4.370.0132.02319.16
5.4.360.0331.96019.07
5.4.350.0231.72719.04
5.4.340.0131.69319.00
5.4.320.0202.02718.83
5.4.310.0201.98718.96
5.4.300.0232.33319.10
5.4.290.0102.46318.91
5.4.280.0172.24715.67
5.4.270.0262.30415.69
5.4.260.0182.20615.59
5.4.250.0122.22515.64
5.4.240.0162.21415.65
5.4.230.0182.21115.58
5.4.220.0222.21915.69
5.4.210.0112.22315.70
5.4.200.0282.18915.58
5.4.190.0102.23215.55
5.4.180.0172.24715.68
5.4.170.0102.23915.70
5.4.160.0192.24315.64
5.4.150.0132.23115.65
5.4.140.0102.24014.12
5.4.130.0192.25014.20
5.4.120.0112.23214.09
5.4.110.0152.22514.12
5.4.100.0202.20214.17
5.4.90.0202.21814.19
5.4.80.0122.23714.22
5.4.70.0582.17414.18
5.4.60.0262.18514.19
5.4.50.0202.23814.16
5.4.40.0142.24214.10
5.4.30.0202.19614.11
5.4.20.0162.20514.17
5.4.10.0092.07414.07
5.4.00.0131.94813.55
5.3.290.0332.00014.40
5.3.280.0082.29313.56
5.3.270.0112.25813.53
5.3.260.0132.22013.57
5.3.250.0202.23313.49
5.3.240.0162.22113.51
5.3.230.0172.28613.55
5.3.220.0142.21713.50
5.3.210.0082.20113.55
5.3.200.0252.22813.56
5.3.190.0202.21813.48
5.3.180.0232.22413.43
5.3.170.0292.14913.45
5.3.160.0272.22413.50
5.3.150.0122.25713.52
5.3.140.0182.24413.54
5.3.130.0372.19813.49
5.3.120.0172.32613.54
5.3.110.0202.26013.51
5.3.100.0152.09412.96
5.3.90.0121.99712.95
5.3.80.0122.01012.90
5.3.70.0202.16812.92
5.3.60.0132.20612.85
5.3.50.0122.22912.84
5.3.40.0242.06212.82

preferences:
47.2 ms | 400 KiB | 5 Q