3v4l.org

run code in 300+ PHP versions simultaneously
<?php if(version_compare(PHP_VERSION, '5.0') <= 0) { die('Skipped'); } // Setup $class = 'Concrete5_Model_User'; $count = 1000; // Warm up for($i = 0; $i < $count; $i++) { strpos($class, 'Concrete5_Model'); } // Test - case sensitive $t0 = microtime(true); for($i = 0; $i < $count; $i++) { strpos($class, 'Concrete5_Model'); } $deltaCS = microtime(true) - $t0; // Test - case insensitive $t0 = microtime(true); for($i = 0; $i < $count; $i++) { stripos($class, 'Concrete5_Model'); } $deltaCI = microtime(true) - $t0; echo "case sensitive: ", round($deltaCS * 1000, 2), "\n"; echo "case insensitive: ", round($deltaCI * 1000, 2), "\n"; echo "case sensitive gain: ", round($deltaCI * 100 / $deltaCS - 100, 2), "%\n";

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.4.00.0110.00814.76
7.3.120.0070.01314.98
7.3.110.0040.01514.76
7.3.100.0060.00614.88
7.3.90.0060.00914.94
7.3.80.0060.00614.86
7.3.70.0070.01014.75
7.3.60.0000.01014.89
7.3.50.0040.01414.82
7.3.40.0070.01014.80
7.3.30.0070.00714.86
7.3.20.0030.01316.89
7.3.10.0070.00916.27
7.3.00.0060.01016.66
7.2.250.0070.01414.85
7.2.240.0070.01115.18
7.2.230.0000.01514.98
7.2.220.0070.00714.74
7.2.210.0040.01115.17
7.2.200.0000.01615.25
7.2.190.0090.00914.99
7.2.180.0100.00315.11
7.2.170.0030.00715.18
7.2.130.0130.00516.69
7.2.120.0080.00716.83
7.2.110.0070.00716.86
7.2.100.0110.00616.84
7.2.90.0100.00716.78
7.2.80.0100.00716.95
7.2.70.0120.00616.90
7.2.60.0100.00616.85
7.2.50.0070.01316.89
7.2.40.0080.00916.67
7.2.30.0110.01016.68
7.2.20.0090.01216.62
7.2.10.0100.00916.64
7.2.00.0100.00717.45
7.1.330.0000.01815.65
7.1.320.0060.00915.91
7.1.310.0000.01015.79
7.1.300.0100.00615.85
7.1.290.0090.00615.78
7.1.280.0060.00915.68
7.1.270.0100.00615.85
7.1.260.0070.01015.82
7.1.250.0080.00715.75
7.1.240.0080.00815.86
7.1.230.0100.00715.89
7.1.220.0060.00915.88
7.1.210.0030.01115.80
7.1.200.0000.01415.89
7.1.190.0060.00915.73
7.1.180.0030.01015.91
7.1.170.0000.01215.86
7.1.160.0070.00715.95
7.1.150.0000.01415.94
7.1.140.0060.00315.93
7.1.130.0000.01515.91
7.1.120.0070.00315.63
7.1.110.0060.00915.73
7.1.100.0040.01115.68
7.1.90.0070.00715.95
7.1.80.0090.00615.66
7.1.70.0050.00616.50
7.1.60.0050.01117.72
7.1.50.0090.00916.28
7.1.40.0040.01215.79
7.1.30.0090.00315.89
7.1.20.0050.00515.60
7.1.10.0060.00615.84
7.1.00.0080.04019.09
7.0.330.0040.00815.47
7.0.320.0000.01515.43
7.0.310.0070.00715.46
7.0.300.0030.00715.21
7.0.290.0040.01115.36
7.0.280.0040.01115.51
7.0.270.0070.00715.11
7.0.260.0060.00615.12
7.0.250.0000.01215.50
7.0.240.0030.01315.27
7.0.230.0080.00415.35
7.0.220.0030.00915.48
7.0.210.0040.00715.28
7.0.200.0020.00816.13
7.0.190.0000.01615.54
7.0.180.0080.00415.39
7.0.170.0000.01515.30
7.0.160.0110.00015.23
7.0.150.0120.00015.58
7.0.140.0050.04018.79
7.0.130.0100.00315.58
7.0.120.0030.00615.51
7.0.110.0000.01215.48
7.0.100.0000.01415.52
7.0.90.0110.00015.39
7.0.80.0060.00615.60
7.0.70.0070.00715.49
7.0.60.0100.03517.71
7.0.50.0070.04216.72
7.0.40.0030.03116.71
7.0.30.0280.04016.85
7.0.20.0150.03716.81
7.0.10.0140.03516.81
7.0.00.0050.04616.87
5.6.380.0110.00714.57
5.6.370.0060.00914.19
5.6.360.0060.00914.46
5.6.350.0040.01414.36
5.6.340.0100.00714.55
5.6.330.0030.01014.34
5.6.320.0060.01014.03
5.6.310.0030.01014.34
5.6.300.0060.00914.52
5.6.290.0070.00714.20
5.6.280.0020.04517.64
5.6.270.0000.01414.09
5.6.260.0060.01014.65
5.6.250.0040.01114.64
5.6.240.0030.01014.29
5.6.230.0000.01614.33
5.6.220.0140.00014.40
5.6.210.0070.04717.38
5.6.200.0020.02716.24
5.6.190.0060.03917.39
5.6.180.0180.02517.46
5.6.170.0250.01817.47
5.6.160.0050.03117.32
5.6.150.0030.04916.15
5.6.140.0020.02616.19
5.6.130.0050.04116.26
5.6.120.0080.04517.57
5.6.110.0040.02717.73
5.6.100.0020.04917.52
5.6.90.0050.04517.62
5.6.80.0080.03817.26
5.6.70.0090.00914.09
5.6.60.0000.01114.15
5.6.50.0070.00714.16
5.6.40.0030.01313.93
5.6.30.0080.00814.34
5.6.20.0090.00614.24
5.6.10.0160.00014.54
5.6.00.0040.01114.22
5.5.380.0000.01110.97
5.5.370.0030.00910.94
5.5.360.0000.00811.06
5.5.350.0080.03315.81
5.5.340.0070.04314.39
5.5.330.0060.02315.58
5.5.320.0170.02415.52
5.5.310.0130.02015.79
5.5.300.0040.04014.55
5.5.290.0050.03114.65
5.5.280.0080.04216.03
5.5.270.0070.03415.94
5.5.260.0050.04216.02
5.5.250.0060.03515.83
5.5.240.0220.03515.73
5.5.230.0000.01010.89
5.5.220.0030.00911.17
5.5.210.0000.01111.01
5.5.200.0040.00710.98
5.5.190.0040.00410.69
5.5.180.0060.00911.09
5.5.170.0100.00311.08
5.5.160.0030.01011.09
5.5.150.0090.00310.93
5.5.140.0060.00911.27
5.5.130.0060.00611.09
5.5.120.0030.01011.16
5.5.110.0000.01011.03
5.5.100.0050.00310.84
5.5.90.0120.00310.91
5.5.80.0080.00310.70
5.5.70.0000.01311.13
5.5.60.0090.00611.16
5.5.50.0000.01210.59
5.5.40.0030.00910.86
5.5.30.0030.01011.18
5.5.20.0030.00711.14
5.5.10.0030.00711.18
5.5.00.0030.00711.06
5.4.450.0120.02515.12
5.4.440.0630.02715.34
5.4.430.0450.02514.91
5.4.420.0170.03215.23
5.4.410.0560.02115.23
5.4.400.0760.02914.77
5.4.390.0320.02215.09
5.4.380.0200.03214.85
5.4.370.0200.02714.83
5.4.360.0250.04414.73
5.4.350.0380.03014.72
5.4.340.0270.03414.78
5.4.330.0090.00310.88
5.4.320.0060.02411.85
5.4.310.0060.02211.69
5.4.300.0040.02611.65
5.4.290.0060.02511.80
5.4.280.0050.02411.62
5.4.270.0060.02111.61
5.4.260.0080.03514.97
5.4.250.0100.03814.83
5.4.240.0080.02714.92
5.4.230.0070.03114.91
5.4.220.0080.03314.99
5.4.210.0070.04215.06
5.4.200.0050.03914.83
5.4.190.0080.03714.98
5.4.180.0050.03214.86
5.4.170.0070.03214.92
5.4.160.0100.02414.97
5.4.150.0030.03514.89
5.4.140.0050.03113.73
5.4.130.0080.02613.60
5.4.120.0120.02213.61
5.4.110.0100.03013.62
5.4.100.0050.03813.63
5.4.90.0080.03713.62
5.4.80.0050.04213.65
5.4.70.0050.03013.70
5.4.60.0050.03213.77
5.4.50.0050.03413.72
5.4.40.0050.02813.73
5.4.30.0100.03513.69
5.4.20.0080.03813.67
5.4.10.0110.03713.74
5.4.00.0070.03413.26
5.3.290.0060.02411.77
5.3.280.0070.03712.53
5.3.270.0050.03212.55
5.3.260.0010.03412.53
5.3.250.0100.02712.56
5.3.240.0080.03612.41
5.3.230.0140.03012.57
5.3.220.0040.02812.24
5.3.210.0050.04212.29
5.3.200.0110.02312.40
5.3.190.0090.02712.44
5.3.180.0050.04312.54
5.3.170.0120.03512.61
5.3.160.0070.03012.67
5.3.150.0070.03112.47
5.3.140.0020.03512.47
5.3.130.0030.04412.34
5.3.120.0050.03312.40
5.3.110.0100.03812.53
5.3.100.0050.03312.15
5.3.90.0110.02612.16
5.3.80.0080.03412.10
5.3.70.0050.03012.03
5.3.60.0080.03512.11
5.3.50.0070.03512.17
5.3.40.0030.03612.15
5.3.30.0100.03412.23
5.3.20.0100.03012.00
5.3.10.0090.03411.82
5.3.00.0050.03212.00
5.2.170.0080.02310.67
5.2.160.0020.03110.67
5.2.150.0000.03610.51
5.2.140.0070.03410.50
5.2.130.0050.03210.57
5.2.120.0100.02510.48
5.2.110.0070.03210.60
5.2.100.0080.03410.55
5.2.90.0060.03010.51
5.2.80.0040.03410.54
5.2.70.0050.02810.65
5.2.60.0060.02810.52
5.2.50.0050.03410.44
5.2.40.0000.03510.51
5.2.30.0070.02210.58
5.2.20.0060.02910.58
5.2.10.0070.02710.51
5.2.00.0050.03210.39
5.1.60.0050.01810.07
5.1.50.0060.01910.14
5.1.40.0050.02810.08
5.1.30.0070.02210.12
5.1.20.0070.02810.26
5.1.10.0060.02110.00
5.1.00.0020.02910.13
5.0.50.0090.0179.34
5.0.40.0050.0239.33
5.0.30.0000.0289.15
5.0.20.0000.0219.17
5.0.10.0020.0209.05
5.0.00.0020.0279.16
4.4.90.0050.0108.50
4.4.80.0050.0158.50
4.4.70.0000.0208.50
4.4.60.0020.0178.50
4.4.50.0020.0178.50
4.4.40.0020.0208.50
4.4.30.0030.0168.50
4.4.20.0070.0128.50
4.4.10.0040.0148.50
4.4.00.0020.0258.50
4.3.110.0010.0188.50
4.3.100.0020.0158.50
4.3.90.0020.0138.50
4.3.80.0000.0258.50
4.3.70.0020.0158.50
4.3.60.0050.0138.50
4.3.50.0030.0158.50
4.3.40.0020.0208.50
4.3.30.0030.0158.50
4.3.20.0020.0188.50
4.3.10.0020.0178.50
4.3.00.0070.00811.64

preferences:
39.38 ms | 401 KiB | 5 Q