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";

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.0060.00616.55
7.2.130.0080.00316.84
7.2.120.0040.00816.48
7.2.110.0120.00317.04
7.2.100.0040.00817.01
7.2.90.0040.00716.89
7.2.80.0070.01017.05
7.2.70.0070.00716.74
7.2.60.0030.01216.67
7.2.50.0040.00817.04
7.2.40.0000.01216.77
7.2.30.0000.01217.03
7.2.20.0100.00716.68
7.2.10.0040.01116.73
7.2.00.0060.00818.03
7.1.250.0000.01215.78
7.1.240.0000.01515.47
7.1.230.0040.01115.84
7.1.220.0030.00715.75
7.1.210.0030.01015.85
7.1.200.0050.00515.68
7.1.190.0030.00915.70
7.1.180.0060.00615.84
7.1.170.0120.00315.55
7.1.160.0030.01015.55
7.1.150.0080.00315.94
7.1.140.0100.00315.57
7.1.130.0000.01215.84
7.1.120.0030.00915.88
7.1.110.0090.00615.82
7.1.100.0040.00715.96
7.1.90.0080.00815.93
7.1.80.0040.00715.82
7.1.70.0050.00616.55
7.1.60.0100.00817.82
7.1.50.0100.00616.35
7.1.40.0000.00815.92
7.1.30.0070.00315.81
7.1.20.0100.00315.87
7.1.10.0100.00315.93
7.1.00.0070.05019.08
7.0.330.0030.00715.36
7.0.320.0110.00015.45
7.0.310.0070.00415.61
7.0.300.0030.00915.37
7.0.290.0030.01015.38
7.0.280.0040.00415.48
7.0.270.0090.00615.26
7.0.260.0070.00715.38
7.0.250.0030.01015.37
7.0.240.0090.00415.54
7.0.230.0060.01015.41
7.0.220.0040.01115.52
7.0.210.0070.00715.59
7.0.200.0070.00615.81
7.0.190.0060.00615.16
7.0.180.0060.00315.40
7.0.170.0000.01315.37
7.0.160.0040.01115.52
7.0.150.0030.01015.18
7.0.140.0060.04018.75
7.0.130.0070.00715.46
7.0.120.0030.01015.61
7.0.110.0070.00715.30
7.0.100.0100.01817.72
7.0.90.0020.02217.85
7.0.80.0090.03917.54
7.0.70.0070.02517.75
7.0.60.0120.03317.73
7.0.50.0080.02117.87
7.0.40.0030.04216.88
7.0.30.0100.03916.89
7.0.20.0040.03816.68
7.0.10.0110.03016.62
7.0.00.0080.02316.82
5.6.380.0040.00714.63
5.6.370.0030.00714.14
5.6.360.0060.00914.31
5.6.350.0030.00914.14
5.6.340.0050.00414.55
5.6.330.0060.00314.48
5.6.320.0080.00414.60
5.6.310.0000.01514.21
5.6.300.0000.01114.10
5.6.290.0030.01013.98
5.6.280.0100.03517.52
5.6.270.0050.01614.02
5.6.260.0090.00914.46
5.6.250.0030.02517.48
5.6.240.0090.01717.46
5.6.230.0040.02417.46
5.6.220.0050.02517.37
5.6.210.0070.04217.55
5.6.200.0050.02217.69
5.6.190.0050.03817.61
5.6.180.0120.02917.58
5.6.170.0080.05017.61
5.6.160.0110.04017.42
5.6.150.0050.02517.75
5.6.140.0100.02017.71
5.6.130.0060.02817.66
5.6.120.0080.04317.56
5.6.110.0110.03317.56
5.6.100.0130.03517.79
5.6.90.0050.04817.69
5.6.80.0130.03017.27
5.6.70.0020.03917.42
5.6.60.0070.03717.28
5.6.50.0090.02117.09
5.6.40.0060.03517.30
5.6.30.0000.04317.27
5.6.20.0050.02317.29
5.6.10.0050.02517.28
5.6.00.0110.02017.30
5.5.380.0020.02215.74
5.5.370.0070.01915.69
5.5.360.0070.02315.74
5.5.350.0040.04115.69
5.5.340.0070.04615.95
5.5.330.0030.04616.02
5.5.320.0120.04015.95
5.5.310.0050.03316.05
5.5.300.0050.02015.88
5.5.290.0060.04015.83
5.5.280.0030.04515.89
5.5.270.0050.02215.99
5.5.260.0040.02715.97
5.5.250.0050.04715.83
5.5.240.0030.03015.67
5.5.230.0050.02515.59
5.5.220.0050.04215.60
5.5.210.0050.02615.65
5.5.200.0020.03415.59
5.5.190.0070.01815.63
5.5.180.0090.03715.68
5.5.170.0040.00411.00
5.5.160.0020.04315.59
5.5.150.0030.03015.54
5.5.140.0020.03615.50
5.5.130.0050.04315.64
5.5.120.0040.04315.60
5.5.110.0080.04015.68
5.5.100.0060.03615.73
5.5.90.0020.03415.49
5.5.80.0060.01915.54
5.5.70.0070.03415.47
5.5.60.0110.03815.55
5.5.50.0080.01815.59
5.5.40.0120.03915.54
5.5.30.0030.02415.51
5.5.20.0100.01515.54
5.5.10.0090.02015.55
5.5.00.0100.02015.52
5.4.450.0080.03815.24
5.4.440.0070.01915.21
5.4.430.0040.04115.28
5.4.420.0020.02515.25
5.4.410.0060.04315.13
5.4.400.0050.03815.12
5.4.390.0050.02715.07
5.4.380.0030.02615.06
5.4.370.0020.02615.07
5.4.360.0060.02715.06
5.4.350.0020.02615.08
5.4.340.0010.02615.07
5.4.330.0040.00411.00
5.4.320.0030.04014.99
5.4.310.0060.01815.02
5.4.300.0050.02314.93
5.4.290.0050.03215.06
5.4.280.0060.02714.94
5.4.270.0080.04014.94
5.4.260.0030.02215.02
5.4.250.0080.03315.00
5.4.240.0030.04015.05
5.4.230.0070.03815.01
5.4.220.0050.02515.05
5.4.210.0020.02215.05
5.4.200.0080.02214.94
5.4.190.0050.02315.05
5.4.180.0080.03215.05
5.4.170.0030.03815.01
5.4.160.0030.02015.04
5.4.150.0050.02315.08
5.4.140.0050.01913.69
5.4.130.0030.02013.67
5.4.120.0020.02613.67
5.4.110.0050.04113.61
5.4.100.0020.02713.67
5.4.90.0120.03513.71
5.4.80.0050.02213.71
5.4.70.0070.02013.66
5.4.60.0050.02013.66
5.4.50.0060.03313.73
5.4.40.0030.02113.66
5.4.30.0060.02013.74
5.4.20.0050.02213.64
5.4.10.0010.02413.61
5.4.00.0060.02013.42
5.3.290.0060.03312.87
5.3.280.0020.02312.79
5.3.270.0050.03612.78
5.3.260.0030.03012.84
5.3.250.0050.03512.83
5.3.240.0030.02012.77
5.3.230.0030.02512.84
5.3.220.0030.02212.76
5.3.210.0030.02312.74
5.3.200.0020.03412.77
5.3.190.0030.02312.82
5.3.180.0020.02212.77
5.3.170.0050.02512.81
5.3.160.0050.03512.76
5.3.150.0060.02512.76
5.3.140.0050.01812.75
5.3.130.0050.01712.77
5.3.120.0040.02712.81
5.3.110.0030.02512.75
5.3.100.0000.04712.55
5.3.90.0070.03212.47
5.3.80.0090.03512.49
5.3.70.0020.02512.47
5.3.60.0050.02712.50
5.3.50.0030.02112.47
5.3.40.0060.03212.47
5.3.30.0090.03212.45
5.3.20.0050.01812.34
5.3.10.0030.03912.33
5.3.00.0030.02312.25
5.2.170.0020.03512.23
5.2.160.0030.03412.23
5.2.150.0070.01712.23
5.2.140.0020.03012.23
5.2.130.0030.02112.23
5.2.120.0060.02812.23
5.2.110.0040.01512.23
5.2.100.0020.02012.23
5.2.90.0000.01812.23
5.2.80.0040.02212.23
5.2.70.0030.01912.23
5.2.60.0060.03312.23
5.2.50.0030.03412.23
5.2.40.0030.03112.23
5.2.30.0050.03412.23
5.2.20.0030.02412.23
5.2.10.0020.02012.23
5.2.00.0070.01612.23
5.1.60.0030.03112.23
5.1.50.0050.03012.23
5.1.40.0000.01412.23
5.1.30.0050.02212.23
5.1.20.0050.01512.23
5.1.10.0070.01512.23
5.1.00.0040.02912.23
5.0.50.0000.01412.23
5.0.40.0060.02512.23
5.0.30.0020.03912.23
5.0.20.0070.02312.23
5.0.10.0020.03012.23
5.0.00.0020.02512.23
4.4.90.0040.00812.23
4.4.80.0020.02312.23
4.4.70.0020.01512.23
4.4.60.0080.01012.23
4.4.50.0000.01512.23
4.4.40.0020.03112.23
4.4.30.0000.01712.23
4.4.20.0040.01012.23
4.4.10.0060.01512.23
4.4.00.0020.02012.23
4.3.110.0030.01712.23
4.3.100.0060.01012.23
4.3.90.0010.02012.23
4.3.80.0020.01812.23
4.3.70.0000.02312.23
4.3.60.0010.01312.23
4.3.50.0000.02112.23
4.3.40.0050.02712.23
4.3.30.0020.01712.23
4.3.20.0040.00712.23
4.3.10.0020.01712.23
4.3.00.0020.01312.23

preferences:
33.14 ms | 400 KiB | 5 Q