3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Everything you enter here will be executed by our servers. Try it! $a = 5; $start = microtime(true); for ($j = 0; $j < 100000; $j++) { if ($a != '0') { } } $stop = microtime(true); $diff = $stop - $start; var_dump($diff); //---------------- $a = 5; $start = microtime(true); for ($i = 0; $i < 100000; $i++) { if ($a) { } } $stop = microtime(true); $diff = $stop - $start; var_dump($diff);

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.0090.01915.04
7.3.120.0100.01715.02
7.3.110.0140.01414.55
7.3.100.0030.01714.78
7.3.90.0070.01014.73
7.3.80.0110.01114.99
7.3.70.0040.01914.91
7.3.60.0090.01314.86
7.3.50.0030.02314.79
7.3.40.0060.01214.61
7.3.30.0030.01614.64
7.3.20.0100.01016.39
7.3.10.0070.01416.81
7.3.00.0080.01316.67
7.2.250.0130.01315.06
7.2.240.0100.02014.98
7.2.230.0040.01514.87
7.2.220.0090.00614.84
7.2.210.0090.01215.04
7.2.200.0000.02115.04
7.2.190.0100.01615.08
7.2.180.0040.01814.83
7.2.170.0000.01815.16
7.2.130.0060.01616.86
7.2.120.0030.01416.65
7.2.110.0060.01316.81
7.2.100.0030.02016.77
7.2.90.0060.00916.80
7.2.80.0000.02016.55
7.2.70.0070.01417.04
7.2.60.0070.01316.95
7.2.50.0060.01217.00
7.2.40.0100.01016.97
7.2.30.0030.01617.04
7.2.20.0070.01516.70
7.2.10.0000.02216.71
7.2.00.0020.01618.23
7.1.330.0000.02515.77
7.1.320.0090.01515.91
7.1.310.0100.02215.93
7.1.300.0120.01615.89
7.1.290.0100.01715.71
7.1.280.0070.01715.74
7.1.270.0060.01615.98
7.1.260.0030.02215.69
7.1.250.0070.02015.75
7.1.240.0000.02415.66
7.1.230.0070.01715.96
7.1.220.0040.02215.68
7.1.210.0100.01615.88
7.1.200.0000.02615.74
7.1.190.0070.02015.93
7.1.180.0030.02315.43
7.1.170.0060.01915.69
7.1.160.0090.01615.82
7.1.150.0120.01215.75
7.1.140.0070.01715.70
7.1.130.0070.01715.76
7.1.120.0070.01515.83
7.1.110.0030.02215.58
7.1.100.0060.01315.90
7.1.90.0060.02215.86
7.1.80.0000.03215.82
7.1.70.0030.01416.55
7.1.60.0050.02517.47
7.1.50.0050.02416.21
7.1.40.0070.01815.66
7.1.30.0000.02415.67
7.1.20.0060.01815.84
7.1.10.0030.01515.84
7.1.00.0050.05019.13
7.0.330.0070.01615.17
7.0.320.0030.02315.50
7.0.310.0030.01915.22
7.0.300.0000.02015.13
7.0.290.0040.02115.51
7.0.280.0030.02015.25
7.0.270.0000.02415.55
7.0.260.0100.01715.27
7.0.250.0030.02415.57
7.0.240.0000.02315.40
7.0.230.0070.01715.41
7.0.220.0070.01715.47
7.0.210.0030.02015.29
7.0.200.0030.01716.14
7.0.190.0030.01915.43
7.0.180.0040.02215.26
7.0.170.0030.02015.46
7.0.160.0040.01515.29
7.0.150.0060.01815.38
7.0.140.0020.05018.65
7.0.130.0070.02015.56
7.0.120.0050.03418.50
7.0.110.0070.01415.33
7.0.100.0100.02015.25
7.0.90.0060.01315.20
7.0.80.0060.01815.45
7.0.70.0070.02015.43
7.0.60.0100.05117.69
7.0.50.0080.04316.57
7.0.40.0070.05416.86
7.0.30.0180.04916.88
7.0.20.0170.04916.73
7.0.10.0130.03816.86
7.0.00.0070.04216.73
5.6.380.0100.02913.81
5.6.370.0100.03214.48
5.6.360.0070.03314.07
5.6.350.0090.03214.33
5.6.340.0000.03714.41
5.6.330.0070.03114.06
5.6.320.0030.03914.03
5.6.310.0000.03414.13
5.6.300.0070.03514.55
5.6.290.0030.03414.26
5.6.280.0050.07517.56
5.6.270.0070.03714.35
5.6.260.0070.03314.00
5.6.250.0000.04314.33
5.6.240.0000.03914.17
5.6.230.0070.03514.39
5.6.220.0030.03713.93
5.6.210.0020.06017.40
5.6.200.0030.06016.15
5.6.190.0100.06117.35
5.6.180.0160.04217.49
5.6.170.0120.04517.26
5.6.160.0100.05917.34
5.6.150.0050.06016.18
5.6.140.0080.06316.21
5.6.130.0080.06316.13
5.6.120.0080.06117.66
5.6.110.0030.04117.63
5.6.100.0080.06617.63
5.6.90.0070.06617.74
5.6.80.0080.04117.13
5.6.70.0950.03817.29
5.6.60.0030.03514.12
5.6.50.0030.04214.03
5.6.40.0030.04213.96
5.6.30.0000.04713.95
5.6.20.0070.03314.14
5.6.10.0090.03214.03
5.6.00.0060.03313.93
5.5.380.0000.04111.10
5.5.370.0060.03111.13
5.5.360.0060.03111.32
5.5.350.0200.05415.64
5.5.340.0020.06414.43
5.5.330.0000.04915.73
5.5.320.0130.06215.52
5.5.310.0100.04915.59
5.5.300.0050.06414.31
5.5.290.0080.05814.31
5.5.280.0020.06015.90
5.5.270.0050.05315.81
5.5.260.0050.06115.76
5.5.250.0120.05615.62
5.5.240.0070.06015.52
5.5.230.0030.02810.73
5.5.220.0030.03310.88
5.5.210.0000.03110.93
5.5.200.0000.04310.61
5.5.190.0000.04410.57
5.5.180.0040.02911.07
5.5.170.0000.04110.87
5.5.160.0060.02811.08
5.5.150.0000.03810.90
5.5.140.0100.02610.73
5.5.130.0070.03510.63
5.5.120.0070.03311.07
5.5.110.0030.03410.93
5.5.100.0030.03411.07
5.5.90.0070.03111.08
5.5.80.0000.03411.04
5.5.70.0030.03911.11
5.5.60.0030.03310.73
5.5.50.0000.03511.19
5.5.40.0000.04011.02
5.5.30.0000.03710.87
5.5.20.0030.03110.59
5.5.10.0060.03110.99
5.5.00.0070.03311.09
5.4.450.0020.05915.21
5.4.440.0050.04114.99
5.4.430.0150.04915.05
5.4.420.0030.04515.24
5.4.410.0070.06015.10
5.4.400.0050.05215.05
5.4.390.0070.05814.98
5.4.380.0080.05914.86
5.4.370.0020.05814.91
5.4.360.0080.04415.05
5.4.350.0030.06414.94
5.4.340.0030.05515.11
5.4.330.0090.02510.56
5.4.320.0030.05414.98
5.4.310.0070.05314.85
5.4.300.0050.03914.89
5.4.290.0020.04514.85
5.4.280.0030.06515.01
5.4.270.0000.04315.00
5.4.260.0100.05414.94
5.4.250.0070.06014.88
5.4.240.0080.05714.98
5.4.230.0080.05915.00
5.4.220.0050.06715.14
5.4.210.0030.06714.72
5.4.200.0020.04814.88
5.4.190.0070.06214.98
5.4.180.0080.05615.05
5.4.170.0070.05514.89
5.4.160.0100.03314.96
5.4.150.0050.06314.89
5.4.140.0080.05213.62
5.4.130.0050.06013.54
5.4.120.0070.06013.42
5.4.110.0030.04813.49
5.4.100.0100.06013.64
5.4.90.0080.05413.57
5.4.80.0100.05213.34
5.4.70.0050.05913.66
5.4.60.0080.05613.59
5.4.50.0070.05913.63
5.4.40.0020.06313.79
5.4.30.0080.05813.52
5.4.20.0070.04513.69
5.4.10.0080.05813.68
5.4.00.0030.06313.38
5.3.290.0030.06712.48
5.3.280.0080.04812.47
5.3.270.0050.05012.53
5.3.260.0000.04412.50
5.3.250.0070.06112.50
5.3.240.0080.06112.49
5.3.230.0070.06212.54
5.3.220.0030.04412.34
5.3.210.0100.06012.25
5.3.200.0080.05112.36
5.3.190.0030.06112.45
5.3.180.0050.06112.56
5.3.170.0050.06212.51
5.3.160.0050.06612.31
5.3.150.0100.05512.45
5.3.140.0050.04512.32
5.3.130.0080.03712.52
5.3.120.0080.03912.45
5.3.110.0080.04212.33
5.3.100.0030.06412.15
5.3.90.0050.05712.20
5.3.80.0070.05812.14
5.3.70.0100.04712.00
5.3.60.0070.06012.10
5.3.50.0030.06312.08
5.3.40.0030.06712.12
5.3.30.0050.05312.13
5.3.20.0050.04011.92
5.3.10.0050.06011.83
5.3.00.0050.04311.83
5.2.170.0070.05910.51
5.2.160.0020.06010.51
5.2.150.0070.05810.49
5.2.140.0020.03910.58
5.2.130.0020.04110.53
5.2.120.0050.05910.45
5.2.110.0000.05210.51
5.2.100.0030.03810.44
5.2.90.0030.06210.45
5.2.80.0020.05210.52
5.2.70.0030.04410.52
5.2.60.0070.04810.42
5.2.50.0050.05710.47
5.2.40.0000.06310.41
5.2.30.0070.05910.46
5.2.20.0020.05110.42
5.2.10.0030.05410.40
5.2.00.0050.04610.39
5.1.60.0050.0389.96
5.1.50.0050.0369.97
5.1.40.0060.0519.95
5.1.30.0030.04310.17
5.1.20.0030.03810.15
5.1.10.0050.05810.04
5.1.00.0070.05110.04
5.0.50.0070.0809.31
5.0.40.0050.0789.19
5.0.30.0050.0629.15
5.0.20.0050.0799.15
5.0.10.0020.0789.09
5.0.00.0070.0829.01
4.4.90.0020.0818.98
4.4.80.0000.0688.98
4.4.70.0050.0798.98
4.4.60.0020.0828.98
4.4.50.0000.0828.98
4.4.40.0000.0618.98
4.4.30.0020.0688.98
4.4.20.0020.0708.98
4.4.10.0000.0738.98
4.4.00.0050.0808.98
4.3.110.0020.0768.98
4.3.100.0020.0758.98
4.3.90.0000.0808.98
4.3.80.0030.0838.98
4.3.70.0020.0588.98
4.3.60.0030.0788.98
4.3.50.0020.0768.98
4.3.40.0020.0798.98
4.3.30.0000.0568.98
4.3.20.0050.0608.98
4.3.10.0020.0738.98
4.3.00.0020.0578.98

preferences:
40.46 ms | 400 KiB | 5 Q