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 "ratio: ", round($deltaCS * 100 / ($deltaCS + $deltaCI), 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.10.0030.01016.69
7.3.00.0030.01016.49
7.2.130.0060.00616.97
7.2.120.0030.01217.07
7.2.110.0030.01016.99
7.2.100.0060.00316.88
7.2.90.0070.00416.84
7.2.80.0040.00716.56
7.2.70.0030.01016.69
7.2.60.0040.01116.97
7.2.50.0090.00616.92
7.2.40.0030.01316.50
7.2.30.0070.00316.91
7.2.20.0080.00317.11
7.2.10.0070.00716.93
7.2.00.0060.00317.02
7.1.250.0070.00715.77
7.1.70.0070.00717.01
7.1.60.0110.01419.29
7.1.50.0030.00917.03
7.1.00.0000.07722.42
7.0.200.0000.00716.96
7.0.140.0070.07021.95
7.0.60.0100.08320.04
7.0.50.0100.07717.84
7.0.40.0030.08720.24
7.0.30.0370.05020.18
7.0.20.0300.07719.98
7.0.10.0000.08320.00
7.0.00.0130.05320.33
5.6.280.0030.07321.12
5.6.210.0070.03720.54
5.6.200.0070.07318.16
5.6.190.0070.05720.41
5.6.180.0370.05320.45
5.6.170.0200.04720.37
5.6.160.0000.04320.46
5.6.150.0270.03018.11
5.6.140.0030.08318.14
5.6.130.0030.07318.20
5.6.120.0000.04321.02
5.6.110.0030.07720.89
5.6.100.0030.08720.99
5.6.90.0070.06720.89
5.6.80.0100.07320.41
5.5.350.0130.07320.30
5.5.340.0070.04017.92
5.5.330.0100.06720.22
5.5.320.0030.08320.29
5.5.310.0270.07020.35
5.5.300.0030.05017.89
5.5.290.0030.08018.00
5.5.280.0030.06020.75
5.5.270.0200.07020.87
5.5.260.0200.07720.86
5.5.250.0130.03720.66
5.5.240.0000.08020.16
5.4.450.0630.04719.45
5.4.440.0500.06719.67
5.4.430.0700.06319.23
5.4.420.0900.05319.59
5.4.410.0070.05719.43
5.4.400.0730.05719.08
5.4.390.0800.07019.06
5.4.380.0230.04718.61
5.4.370.0300.04018.61
5.4.360.0300.04318.70
5.4.350.0170.05718.50
5.4.340.0200.05018.50
5.4.320.0050.03912.46
5.4.310.0100.03812.46
5.4.300.0060.04212.46
5.4.290.0060.03712.46
5.4.280.0080.03612.36
5.4.270.0080.04012.36
5.4.260.0100.03512.33
5.4.250.0050.04012.33
5.4.240.0050.03712.34
5.4.230.0090.03512.33
5.4.220.0060.03612.32
5.4.210.0100.03312.33
5.4.200.0050.03912.32
5.4.190.0070.03612.32
5.4.180.0080.03412.32
5.4.170.0040.04112.33
5.4.160.0070.03512.33
5.4.150.0050.03912.32
5.4.140.0050.03912.01
5.4.130.0050.04611.99
5.4.120.0050.03911.95
5.4.110.0080.03611.95
5.4.100.0070.03611.95
5.4.90.0040.04111.95
5.4.80.0080.03711.95
5.4.70.0040.03911.95
5.4.60.0060.03511.95
5.4.50.0050.04211.94
5.4.40.0050.03611.93
5.4.30.0040.03811.93
5.4.20.0060.03511.93
5.4.10.0060.03511.93
5.4.00.0050.03611.43
5.3.290.0080.04212.80
5.3.280.0070.04312.70
5.3.270.0080.07012.72
5.3.260.0050.04212.72
5.3.250.0090.03512.72
5.3.240.0080.03712.72
5.3.230.0060.03912.71
5.3.220.0060.04512.68
5.3.210.0060.04312.68
5.3.200.0060.03812.68
5.3.190.0030.04612.68
5.3.180.0070.05012.67
5.3.170.0050.03912.67
5.3.160.0050.03912.67
5.3.150.0050.05012.68
5.3.140.0050.03812.66
5.3.130.0050.04212.66
5.3.120.0080.03812.66
5.3.110.0090.03612.66
5.3.100.0060.03812.12
5.3.90.0060.03712.08
5.3.80.0040.03812.07
5.3.70.0060.03512.08
5.3.60.0090.03412.07
5.3.50.0030.04012.00
5.3.40.0040.04012.00
5.3.30.0050.03811.94
5.3.20.0060.03711.71
5.3.10.0060.03711.68
5.3.00.0030.04211.66
5.2.170.0040.0349.17
5.2.160.0070.0309.17
5.2.150.0050.0339.17
5.2.140.0050.0379.16
5.2.130.0040.0319.13
5.2.120.0060.0289.13
5.2.110.0050.0299.13
5.2.100.0060.0289.13
5.2.90.0020.0329.13
5.2.80.0040.0329.12
5.2.70.0070.0289.12
5.2.60.0050.0309.07
5.2.50.0060.0309.05
5.2.40.0030.0359.02
5.2.30.0050.0319.00
5.2.20.0070.0288.99
5.2.10.0030.0308.94
5.2.00.0040.0308.79
5.1.60.0020.0268.08
5.1.50.0050.0248.08
5.1.40.0020.0288.07
5.1.30.0060.0268.41
5.1.20.0060.0278.44
5.1.10.0020.0308.16
5.1.00.0050.0318.16
5.0.50.0030.0226.64
5.0.40.0040.0206.50
5.0.30.0050.0316.32
5.0.20.0020.0226.29
5.0.10.0060.0186.27
5.0.00.0040.0316.26
4.4.90.0040.0154.78
4.4.80.0030.0154.75
4.4.70.0020.0164.76
4.4.60.0040.0144.75
4.4.50.0020.0164.77
4.4.40.0010.0274.71
4.4.30.0020.0164.76
4.4.20.0020.0164.85
4.4.10.0030.0164.85
4.4.00.0030.0244.76
4.3.110.0030.0164.66
4.3.100.0030.0154.66
4.3.90.0030.0144.63
4.3.80.0030.0274.59
4.3.70.0070.0194.63
4.3.60.0030.0184.63
4.3.50.0020.0234.63
4.3.40.0030.0264.54
4.3.30.0020.0223.30
4.3.20.0030.0153.27
4.3.10.0030.0153.24
4.3.00.0130.0175.84

preferences:
33.19 ms | 401 KiB | 5 Q