3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 'ab';$start_time = microtime(true);for($i = 0; $i <= 1000000; $i++){ +$a;}echo '<br/>', microtime(true) - $start_time;$start_time1 = microtime(true);for($i = 0; $i <= 1000000; $i++){ intval($a);}echo '<br/>', microtime(true) - $start_time1;

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.0070.01414.67
7.3.120.0040.01614.54
7.3.110.0090.00914.75
7.3.100.0070.00714.98
7.3.90.0040.00714.61
7.3.80.0070.00714.80
7.3.70.0100.00314.80
7.3.60.0030.00914.74
7.3.50.0030.01014.72
7.3.40.0100.00714.42
7.3.30.0040.00414.74
7.3.20.0030.01016.61
7.3.10.0040.01116.62
7.3.00.0070.00716.52
7.2.250.0080.01115.04
7.2.240.0100.00714.95
7.2.230.0070.00715.05
7.2.220.0060.00615.04
7.2.210.0100.00314.92
7.2.200.0100.00314.91
7.2.190.0110.00414.71
7.2.180.0040.01115.03
7.2.170.0070.01014.96
7.2.00.0040.00719.18
7.1.330.0090.00615.84
7.1.320.0100.00715.63
7.1.310.0030.01015.96
7.1.300.0030.00615.74
7.1.290.0000.01915.75
7.1.280.0030.00715.71
7.1.270.0060.00615.76
7.1.260.0070.00015.95
7.1.70.0060.00617.07
7.1.60.0100.00719.32
7.1.50.0130.01016.72
7.1.00.0130.06722.21
7.0.200.0000.08016.89
7.0.140.0070.15022.12
7.0.60.0030.12719.92
7.0.50.0100.14717.77
7.0.40.0070.09320.06
7.0.30.0330.11320.21
7.0.20.0300.11320.19
7.0.10.0100.15320.00
7.0.00.0170.09720.08
5.6.280.0000.29020.91
5.6.210.0030.16020.46
5.6.200.0070.21718.18
5.6.190.0000.19320.61
5.6.180.0500.20020.41
5.6.170.0170.16320.47
5.6.160.0100.20320.48
5.6.150.0000.19018.11
5.6.140.0030.16018.11
5.6.130.0030.21318.19
5.6.120.0100.17320.93
5.6.110.0130.22021.04
5.6.100.0100.26020.98
5.6.90.0100.21321.02
5.6.80.0100.21720.39
5.5.350.0200.20320.40
5.5.340.0000.17018.02
5.5.330.0070.18020.19
5.5.320.0470.20020.27
5.5.310.0200.16020.31
5.5.300.0070.22317.91
5.5.290.0130.22017.90
5.5.280.0070.22720.65
5.5.270.0070.23720.85
5.5.260.0100.20720.84
5.5.250.0170.22020.79
5.5.240.0270.18020.25
5.4.450.0070.23319.24
5.4.440.0930.27019.45
5.4.430.0870.26719.59
5.4.420.3070.00019.14
5.4.410.2900.00019.14
5.4.400.3500.00019.05
5.4.390.2700.00019.07
5.4.380.0370.30718.46
5.4.370.0230.34718.63
5.4.360.0400.39018.74
5.4.350.0330.27018.64
5.4.340.0200.28718.57
5.4.320.0060.19012.46
5.4.310.0050.19712.45
5.4.300.0080.21112.46
5.4.290.0060.19212.45
5.4.280.0060.18812.35
5.4.270.0070.19212.35
5.4.260.0100.23712.35
5.4.250.0090.22512.35
5.4.240.0060.18712.35
5.4.230.0050.21612.34
5.4.220.0050.19012.34
5.4.210.0070.19112.34
5.4.200.0060.20712.34
5.4.190.0070.21112.34
5.4.180.0060.21412.34
5.4.170.0050.19012.35
5.4.160.0120.18412.35
5.4.150.0070.19612.34
5.4.140.0070.18712.03
5.4.130.0090.20212.01
5.4.120.0080.20011.97
5.4.110.0030.19711.97
5.4.100.0070.19611.97
5.4.90.0080.19411.97
5.4.80.0120.19911.97
5.4.70.0100.21911.96
5.4.60.0080.21211.96
5.4.50.0060.19111.96
5.4.40.0070.20311.95
5.4.30.0070.20911.95
5.4.20.0020.20211.95
5.4.10.0060.19311.95
5.4.00.0040.20011.44
5.3.290.0090.24912.80
5.3.280.0070.25312.71
5.3.270.0090.25212.73
5.3.260.0070.23212.72
5.3.250.0050.23512.72
5.3.240.0070.23512.72
5.3.230.0060.24812.71
5.3.220.0090.22812.68
5.3.210.0070.24512.68
5.3.200.0050.23512.68
5.3.190.0080.25212.68
5.3.180.0050.22912.67
5.3.170.0070.23612.67
5.3.160.0070.24112.67
5.3.150.0090.23012.67
5.3.140.0060.24012.66
5.3.130.0070.25112.66
5.3.120.0040.24612.65
5.3.110.0110.24512.66
5.3.100.0060.23212.12
5.3.90.0090.23712.09
5.3.80.0050.25712.08
5.3.70.0040.23612.07
5.3.60.0080.23512.07
5.3.50.0150.26612.00
5.3.40.0090.25112.00
5.3.30.0070.27911.95
5.3.20.0080.23411.72
5.3.10.0040.23811.70
5.3.00.0090.23011.69
5.2.170.0050.2429.18
5.2.160.0090.2589.18
5.2.150.0060.2459.18
5.2.140.0050.2609.18
5.2.130.0060.2649.14
5.2.120.0050.2679.14
5.2.110.0060.2509.14
5.2.100.0040.2549.14
5.2.90.0040.2699.14
5.2.80.0040.2479.14
5.2.70.0050.2569.14
5.2.60.0060.2499.09
5.2.50.0070.2509.06
5.2.40.0060.2659.04
5.2.30.0060.2639.02
5.2.20.0040.2509.00
5.2.10.0070.2808.95
5.2.00.0030.3288.81
5.1.60.0040.2908.09
5.1.50.0030.2628.09
5.1.40.0040.2788.08
5.1.30.0050.2748.43
5.1.20.0070.2728.45
5.1.10.0040.3008.17
5.1.00.0040.2618.17
5.0.50.0060.4976.64
5.0.40.0050.4786.51
5.0.30.0070.5086.32
5.0.20.0020.5256.29
5.0.10.0070.5256.27
5.0.00.0050.5326.27
4.4.90.0020.4734.78
4.4.80.0060.4664.75
4.4.70.0040.4654.76
4.4.60.0060.4704.75
4.4.50.0070.4684.77
4.4.40.0020.4854.71
4.4.30.0040.4694.76
4.4.20.0050.4814.84
4.4.10.0100.4964.85
4.4.00.0020.4914.76
4.3.110.0040.4984.66
4.3.100.0050.4834.67
4.3.90.0020.4774.64
4.3.80.0020.4754.58
4.3.70.0040.4724.63
4.3.60.0060.4734.63
4.3.50.0040.4904.63
4.3.40.0050.4814.54
4.3.30.0030.5033.33
4.3.20.0030.4583.31
4.3.10.0030.4603.27
4.3.00.0070.34715.62

preferences:
38.15 ms | 401 KiB | 5 Q