3v4l.org

run code in 300+ PHP versions simultaneously
<?php $v1 = 5; $v2 = '5-4'; $class = 'Concrete5_Controller_Name'; // Let's warm up $i = 0; while(++$i < 100000) { if(0) {} } // Test 'else if' $i = 0; $start = microtime(true); while(++$i < 1000000) { preg_match('/^Concrete5_Model_(.*)/i', $class); preg_match('/^Concrete5_Helper_(.*)/i', $class); preg_match('/^Concrete5_Controller_Block_(.*)/i', $class); } $end = microtime(true); echo "preg_match: ".($end - $start)."\n"; unset($start, $end); // Test 'elseif' $i = 0; $start = microtime(true); while(++$i < 1000000) { stripos($class, 'Concrete5_Model_'); stripos($class, 'Concrete5_Helper_'); stripos($class, 'Concrete5_Controller_Block_'); } $end = microtime(true); echo "stripos: ".($end - $start);

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)
7.3.00.0030.54316.69
7.2.130.0030.65916.95
7.2.120.0070.69317.05
7.2.110.0070.70016.95
7.2.100.0170.64916.88
7.2.90.0130.64416.82
7.2.80.0030.64217.00
7.2.70.0130.62317.01
7.2.60.0070.61317.18
7.2.50.0070.65016.92
7.2.40.0170.62017.04
7.2.30.0100.64617.03
7.2.20.0080.65016.89
7.2.10.0100.64216.98
7.2.00.0080.51018.35
7.1.250.0071.10115.63
7.1.240.0101.03115.95
7.1.230.0071.06915.48
7.1.220.0171.05615.50
7.1.210.0131.03915.55
7.1.200.0101.05615.60
7.1.190.0101.04815.66
7.1.180.0031.03415.73
7.1.170.0071.05615.82
7.1.160.0101.01615.82
7.1.150.0101.15715.70
7.1.140.0131.05815.83
7.1.130.0071.06415.90
7.1.120.0171.01315.61
7.1.110.0131.03415.94
7.1.100.0071.10715.78
7.1.90.0100.99315.84
7.1.80.0100.99215.89
7.1.70.0080.85916.71
7.1.60.0030.86317.90
7.1.50.0050.83716.57
7.1.40.0101.03015.70
7.1.30.0071.07915.91
7.1.20.0101.09415.68
7.1.10.0071.04616.04
7.1.00.0050.93119.12
7.0.330.0071.09915.26
7.0.320.0101.15915.43
7.0.310.0101.05515.49
7.0.300.0071.03715.33
7.0.290.0101.12715.30
7.0.280.0071.06715.19
7.0.270.0031.08815.41
7.0.260.0071.17615.37
7.0.250.0101.06915.34
7.0.240.0071.10315.31
7.0.230.0071.15515.32
7.0.220.0131.04915.46
7.0.210.0171.07315.24
7.0.200.0070.96416.25
7.0.190.0071.13415.16
7.0.180.0071.14915.57
7.0.170.0101.12915.55
7.0.160.0031.08715.53
7.0.150.0071.10115.33
7.0.140.0050.92818.69
7.0.130.0101.36915.63
7.0.120.0071.24515.57
7.0.110.0031.16215.34
7.0.100.0070.88717.76
7.0.90.0130.92417.69
7.0.80.0130.84317.71
7.0.70.0150.83217.72
7.0.60.0120.85717.73
7.0.50.0080.82017.89
7.0.40.0100.90216.61
7.0.30.0080.93616.78
7.0.20.0020.90416.83
7.0.10.0080.88116.83
7.0.00.0100.88816.59
5.6.380.0032.48213.86
5.6.370.0062.45814.45
5.6.360.0072.48714.40
5.6.350.0102.45714.25
5.6.340.0102.41514.27
5.6.330.0072.46314.19
5.6.320.0032.47314.36
5.6.310.0032.47314.13
5.6.300.0032.46914.37
5.6.290.0032.45314.26
5.6.280.0051.96217.62
5.6.270.0002.43114.05
5.6.260.0072.44814.39
5.6.250.0072.01517.47
5.6.240.0031.91517.43
5.6.230.0081.95617.56
5.6.220.0051.99417.11
5.6.210.0081.98417.36
5.6.200.0151.96517.46
5.6.190.0101.91017.45
5.6.180.0121.98017.57
5.6.170.0051.98217.63
5.6.160.0021.96817.69
5.6.150.0071.98617.49
5.6.140.0051.97917.61
5.6.130.0081.99717.56
5.6.120.0071.95317.69
5.6.110.0071.98217.52
5.6.100.0081.97717.45
5.6.90.0082.02817.41
5.6.80.0131.99217.17
5.6.70.0071.97717.26
5.6.60.0121.98617.17
5.6.50.0052.02417.50
5.6.40.0031.99117.32
5.6.30.0121.93217.17
5.6.20.0031.99017.42
5.6.10.0051.98017.23
5.6.00.0071.92817.18
5.5.380.0051.99815.85
5.5.370.0051.98215.76
5.5.360.0052.00215.76
5.5.350.0071.94715.80
5.5.340.0022.03216.03
5.5.330.0081.91915.97
5.5.320.0081.93416.03
5.5.310.0951.98116.00
5.5.300.0081.99416.03
5.5.290.0052.02516.00
5.5.280.0031.91515.97
5.5.270.0031.99615.99
5.5.260.0051.99516.04
5.5.250.0052.00115.91
5.5.240.0042.04115.69
5.5.230.0072.03215.74
5.5.220.0031.95115.72
5.5.210.0051.99515.66
5.5.200.0081.99515.70
5.5.190.0081.96315.58
5.5.180.0031.95315.64
5.5.170.0002.45711.18
5.5.160.0071.99815.72
5.5.150.0082.02515.66
5.5.140.0071.99115.65
5.5.130.0022.03315.66
5.5.120.0081.99615.63
5.5.110.0071.96215.67
5.5.100.0021.98115.60
5.5.90.0101.99015.67
5.5.80.0132.00015.61
5.5.70.0071.98515.62
5.5.60.0081.90915.62
5.5.50.0431.91215.62
5.5.40.0032.04115.61
5.5.30.0122.01615.61
5.5.20.0051.96015.61
5.5.10.0031.89515.57
5.5.00.0082.03315.61
5.4.450.0121.92915.32
5.4.440.0071.83015.31
5.4.430.0051.86015.24
5.4.420.0051.96015.30
5.4.410.0051.87715.30
5.4.400.0351.87315.10
5.4.390.0081.88415.12
5.4.380.0071.88315.04
5.4.370.0031.92515.15
5.4.360.0001.95115.08
5.4.350.0031.86215.12
5.4.340.0031.97415.07
5.4.330.0032.47111.18
5.4.320.0071.97015.12
5.4.310.0031.99515.15
5.4.300.0071.96515.20
5.4.290.0081.89815.08
5.4.280.0031.97815.20
5.4.270.0101.92515.16
5.4.260.0571.85515.07
5.4.250.0101.90514.97
5.4.240.0051.96015.15
5.4.230.0071.95515.06
5.4.220.0031.87014.99
5.4.210.0031.85915.12
5.4.200.0021.94215.06
5.4.190.0021.97214.99
5.4.180.0101.97014.99
5.4.170.0581.87714.98
5.4.160.0101.92315.13
5.4.150.0031.89915.07
5.4.140.0031.97713.77
5.4.130.0901.93213.76
5.4.120.0082.00813.74
5.4.110.0031.93513.81
5.4.100.0031.87613.72
5.4.90.0071.95713.74
5.4.80.0131.99413.79
5.4.70.0051.98713.82
5.4.60.0051.99413.69
5.4.50.0051.96313.76
5.4.40.0021.89313.71
5.4.30.0071.94413.72
5.4.20.0071.96013.72
5.4.10.0051.97413.78
5.4.00.0031.98513.41
5.3.290.0032.17612.92
5.3.280.0122.12812.81
5.3.270.0072.17712.87
5.3.260.0082.12512.81
5.3.250.0132.08612.81
5.3.240.0072.18412.89
5.3.230.0022.16812.82
5.3.220.0082.19112.82
5.3.210.0072.12912.85
5.3.200.0032.15712.84
5.3.190.0082.12912.85
5.3.180.0102.17612.87
5.3.170.0052.20912.85
5.3.160.0002.22612.79
5.3.150.0032.20312.86
5.3.140.0032.08712.84
5.3.130.0032.21212.84
5.3.120.0032.19712.86
5.3.110.0032.21212.78
5.3.100.0032.20512.52
5.3.90.0032.13212.57
5.3.80.0022.15512.52
5.3.70.0032.22012.53
5.3.60.0082.12912.57
5.3.50.0052.16712.54
5.3.40.0052.20412.49
5.3.30.0022.19712.51
5.3.20.0052.17112.36
5.3.10.0072.17312.39
5.3.00.0082.19912.40
5.2.170.0052.17511.72
5.2.160.0052.19811.72
5.2.150.0002.25511.72
5.2.140.0052.21011.72
5.2.130.0032.29811.72
5.2.120.0072.21211.72
5.2.110.0032.18311.72
5.2.100.0052.14711.72
5.2.90.0032.17711.72
5.2.80.0022.08811.72
5.2.70.0122.15811.72
5.2.60.0922.08811.72
5.2.50.0232.20011.72
5.2.40.0002.19711.72
5.2.30.0022.19811.72
5.2.20.0072.34211.72
5.2.10.0052.30711.72
5.2.00.0032.19111.72
5.1.60.0022.24811.72
5.1.50.0032.20111.72
5.1.40.0022.20211.72
5.1.30.0072.18711.72
5.1.20.0072.18111.29
5.1.10.0032.18711.29
5.1.00.0032.19511.29
5.0.50.0032.40311.29
5.0.40.0022.36711.29
5.0.30.0002.30911.29
5.0.20.0072.33611.29
5.0.10.0002.27711.29
5.0.00.0002.34211.29
4.4.90.0021.71011.72
4.4.80.0051.79611.72
4.4.70.0001.80011.72
4.4.60.0021.84611.72
4.4.50.0051.80411.72
4.4.40.0031.84011.72
4.4.30.0471.73111.72
4.4.20.0051.72711.29
4.4.10.0021.74611.29
4.4.00.0021.75211.29
4.3.110.0021.67111.29
4.3.100.0021.56211.29
4.3.90.0051.68611.29
4.3.80.0021.73211.29
4.3.70.0001.70911.29
4.3.60.0031.55211.29
4.3.50.0051.55811.29
4.3.40.0001.66811.29
4.3.30.0031.53911.29
4.3.20.0021.37911.29
4.3.10.0051.33411.29
4.3.00.0051.33811.29

preferences:
35.37 ms | 401 KiB | 5 Q