3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = microtime(true); $y = 0; for($i = 0; $i < $count; $i++) { ++$y; } printf("<br>#0 RESULT %d, DONE IN %f", $y, microtime(true) - $start); $start = microtime(true); $y = 0; for($i = 0; $i < $count; $i++) { eval('++$y;'); } printf("<br>#1 RESULT %d, DONE IN %f", $y, microtime(true) - $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.4.10.0030.01415.11
7.4.00.0060.01215.09
7.3.130.0060.01014.86
7.3.120.0090.00914.70
7.3.110.0080.00814.60
7.3.100.0040.01114.67
7.3.90.0020.01014.87
7.3.80.0020.00914.96
7.3.70.0080.00714.82
7.3.60.0110.00514.85
7.3.50.0070.00114.69
7.3.40.0090.00514.75
7.3.30.0040.00614.78
7.3.20.0020.01116.37
7.3.10.0060.00616.50
7.3.00.0000.01216.70
7.2.260.0120.00614.48
7.2.250.0110.00714.88
7.2.240.0070.00914.69
7.2.230.0040.00915.06
7.2.220.0080.00614.77
7.2.210.0020.01215.04
7.2.200.0030.01014.71
7.2.190.0050.01014.81
7.2.180.0020.01214.72
7.2.170.0060.00614.72
7.2.160.0060.00714.77
7.2.150.0020.01216.79
7.2.140.0070.00716.71
7.2.130.0070.00716.78
7.2.120.0090.00416.83
7.2.110.0100.00416.64
7.2.100.0020.01116.83
7.2.90.0050.00816.77
7.2.80.0030.01016.70
7.2.70.0040.00916.81
7.2.60.0090.00516.87
7.2.50.0080.00816.88
7.2.40.0070.00616.89
7.2.30.0020.01216.92
7.2.20.0030.01016.72
7.2.10.0030.00716.71
7.2.00.0050.00917.69
7.1.330.0040.01015.56
7.1.320.0040.00715.82
7.1.310.0040.01115.76
7.1.300.0070.00615.74
7.1.290.0030.01215.80
7.1.280.0070.00415.68
7.1.270.0030.00815.78
7.1.260.0050.01015.75
7.1.250.0080.00315.63
7.1.240.0030.01015.62
7.1.230.0030.01315.65
7.1.220.0030.00915.97
7.1.210.0030.00715.71
7.1.200.0070.00715.88
7.1.190.0000.00915.55
7.1.180.0000.01315.77
7.1.170.0040.01115.57
7.1.160.0030.00715.73
7.1.150.0000.01315.75
7.1.140.0000.00915.86
7.1.130.0070.01015.92
7.1.120.0070.00715.87
7.1.110.0130.00015.60
7.1.100.0000.01115.94
7.1.90.0090.00315.83
7.1.80.0090.00315.89
7.1.70.0040.00716.70
7.1.60.0080.00717.75
7.1.50.0080.00816.40
7.1.40.0060.00915.79
7.1.30.0070.00715.82
7.1.20.0030.01315.79
7.1.10.0050.00315.95
7.1.00.0010.04619.16
7.0.330.0040.01215.32
7.0.320.0080.00315.27
7.0.310.0040.01215.59
7.0.300.0060.00615.45
7.0.290.0080.00315.39
7.0.280.0000.01515.17
7.0.270.0060.00615.55
7.0.260.0070.00715.48
7.0.250.0070.00715.50
7.0.240.0040.00815.57
7.0.230.0060.00615.42
7.0.220.0030.01015.11
7.0.210.0030.01015.44
7.0.200.0080.00315.97
7.0.190.0030.00715.45
7.0.180.0060.00915.57
7.0.170.0000.01615.53
7.0.160.0000.00915.53
7.0.150.0030.00715.55
7.0.140.0040.04118.74
7.0.130.0040.00715.59
7.0.120.0000.01015.20
7.0.110.0110.00015.30
7.0.100.0060.00615.44
7.0.90.0040.01115.45
7.0.80.0110.00415.29
7.0.70.0050.04318.54
7.0.60.0030.04818.66
7.0.50.0070.03718.92
7.0.40.0030.04416.92
7.0.30.0020.05016.84
7.0.20.0030.04516.79
7.0.10.0050.03916.69
7.0.00.0090.04116.90
5.6.400.0030.00914.18
5.6.390.0030.00714.09
5.6.380.0000.01314.50
5.6.370.0030.01014.48
5.6.360.0090.00014.15
5.6.350.0090.00014.16
5.6.340.0030.00914.45
5.6.330.0070.00714.21
5.6.320.0000.01213.91
5.6.310.0060.00614.48
5.6.300.0090.00314.25
5.6.290.0030.01014.21
5.6.280.0030.04117.57
5.6.270.0030.01314.04
5.6.260.0030.00914.05
5.6.250.0050.00314.26
5.6.240.0030.01314.15
5.6.230.0060.00614.30
5.6.220.0050.04717.52
5.6.210.0030.03917.46
5.6.200.0070.03517.55
5.6.190.0060.02917.61
5.6.180.0060.04517.53
5.6.170.0070.04317.66
5.6.160.0050.03517.71
5.6.150.0050.04517.63
5.6.140.0040.04617.70
5.6.130.0070.04317.55
5.6.120.0100.03317.56
5.6.110.0060.04117.57
5.6.100.0120.03317.58
5.6.90.0070.04317.64
5.6.80.0000.04717.46
5.6.70.0050.03717.35
5.6.60.0080.03817.29
5.6.50.0090.03417.34
5.6.40.0040.03917.21
5.6.30.0120.03817.20
5.6.20.0030.04517.29
5.6.10.0100.04017.42
5.6.00.0030.04317.20
5.5.380.0000.00814.31
5.5.370.0040.00414.12
5.5.360.0050.03817.46
5.5.350.0050.04517.30
5.5.340.0020.05017.36
5.5.330.0030.04517.29
5.5.320.0030.03417.53
5.5.310.0050.03717.27
5.5.300.0070.04017.67
5.5.290.0030.04217.23
5.5.280.0080.03817.40
5.5.270.0030.04317.45
5.5.260.0080.02817.51
5.5.250.0050.04217.32
5.5.240.0020.04616.99
5.5.230.0050.02916.88
5.5.220.0050.04017.09
5.5.210.0130.03717.17
5.5.200.0140.03717.11
5.5.190.0050.04517.24
5.5.180.0100.04217.11
5.5.170.0110.00314.01
5.5.160.0030.04717.10
5.5.150.0030.04017.15
5.5.140.0100.04016.88
5.5.130.0080.03917.12
5.5.120.0020.04417.22
5.5.110.0020.04817.10
5.5.100.0070.03316.96
5.5.90.0100.03516.97
5.5.80.0020.03917.15
5.5.70.0090.03816.83
5.5.60.0050.04217.03
5.5.50.0030.04317.04
5.5.40.0060.03917.15
5.5.30.0040.04217.06
5.5.20.0090.04017.21
5.5.10.0050.03417.00
5.5.00.0070.03717.02
5.4.450.0050.04215.38
5.4.440.0030.04515.34
5.4.430.0030.04315.35
5.4.420.0070.04215.28
5.4.410.0050.04115.29
5.4.400.0020.03915.20
5.4.390.0050.04115.10
5.4.380.0090.03515.10
5.4.370.0030.04115.22
5.4.360.0060.03215.18
5.4.350.0020.04315.21
5.4.340.0070.03315.23
5.4.330.0030.00311.43
5.4.320.0070.03815.27
5.4.310.0040.04215.20
5.4.300.0050.04115.20
5.4.290.0050.03915.16
5.4.280.0030.04115.20
5.4.270.0060.03715.23
5.4.260.0010.03815.27
5.4.250.0080.02815.16
5.4.240.0030.04015.27
5.4.230.0040.03815.26
5.4.220.0050.04515.24
5.4.210.0000.04115.27
5.4.200.0030.04015.11
5.4.190.0040.03815.23
5.4.180.0060.03015.19
5.4.170.0060.04015.11
5.4.160.0060.03215.10
5.4.150.0030.04315.27
5.4.140.0020.04113.90
5.4.130.0050.03213.86
5.4.120.0030.02513.84
5.4.110.0030.03013.93
5.4.100.0040.03813.92
5.4.90.0050.03813.88
5.4.80.0050.04113.86
5.4.70.0050.03513.92
5.4.60.0050.03913.83
5.4.50.0090.03313.93
5.4.40.0020.04213.93
5.4.30.0070.03513.81
5.4.20.0030.03813.81
5.4.10.0070.04013.90
5.4.00.0000.03613.61
5.3.290.0040.04213.04
5.3.280.0050.03513.02
5.3.270.0020.04212.99
5.3.260.0050.04013.01
5.3.250.0030.04313.02
5.3.240.0040.03013.02
5.3.230.0020.03612.97
5.3.220.0030.04112.97
5.3.210.0040.03512.92
5.3.200.0050.04213.00
5.3.190.0060.04012.97
5.3.180.0020.03912.99
5.3.170.0070.03712.99
5.3.160.0090.02612.99
5.3.150.0010.04112.96
5.3.140.0050.03412.96
5.3.130.0090.04012.97
5.3.120.0050.03912.92
5.3.110.0080.01812.97
5.3.100.0040.02812.73
5.3.90.0030.03412.72
5.3.80.0060.03712.65
5.3.70.0050.02912.65
5.3.60.0030.04012.72
5.3.50.0060.02512.61
5.3.40.0060.03812.61
5.3.30.0040.04012.65
5.3.20.0030.03712.55
5.3.10.0050.03512.54
5.3.00.0020.02312.42
5.2.170.0100.05012.20
5.2.160.0030.04712.20
5.2.150.0070.06012.20
5.2.140.0000.06712.20
5.2.130.0070.04712.20
5.2.120.0000.06312.20
5.2.110.0030.03712.20
5.2.100.0000.04012.20
5.2.90.0030.02712.20
5.2.80.0000.03312.20
5.2.70.0000.03012.20
5.2.60.0030.02712.20
5.2.50.0000.03312.20
5.2.40.0000.03012.20
5.2.30.0000.03012.20
5.2.20.0000.03012.20
5.2.10.0000.03312.20
5.2.00.0000.03012.20
5.1.60.0000.02012.20
5.1.50.0000.02012.20
5.1.40.0000.02312.20
5.1.30.0000.02312.20
5.1.20.0030.02312.20
5.1.10.0000.02312.20
5.1.00.0000.02712.20
5.0.50.0030.01312.20
5.0.40.0000.04312.20
5.0.30.0000.03312.20
5.0.20.0000.02712.20
5.0.10.0000.01712.20
5.0.00.0030.05012.20
4.4.90.0030.02012.20
4.4.80.0070.01012.20
4.4.70.0000.01712.20
4.4.60.0000.01712.20
4.4.50.0030.01012.20
4.4.40.0000.02712.20
4.4.30.0000.01312.20
4.4.20.0000.01312.20
4.4.10.0000.01312.20
4.4.00.0000.03712.20
4.3.110.0000.02012.20
4.3.100.0000.01712.20
4.3.90.0000.01312.20
4.3.80.0000.02312.20
4.3.70.0000.03312.20
4.3.60.0070.01012.20
4.3.50.0000.01712.20
4.3.40.0030.03012.20
4.3.30.0030.01012.20
4.3.20.0000.01712.20
4.3.10.0000.01712.20
4.3.00.0000.01312.20

preferences:
36.06 ms | 401 KiB | 5 Q